Narcoleptic's Patch Mangler

    grunt-mangony

    1.1.0 • Public • Published

    grunt-mangony

    This is a grunt wrapper for Mangony.

    Installation

    npm install grunt-mangony

    Options

    All options of Mangony are available.

    Usage

    You can enable this plugin in the Gruntfile.js of your project like that:

    grunt.loadNpmTasks('grunt-mangony');

    Example

    To use a development server and a build task you can add the following configuration:

    mangony: {
        options: {
            cwd: 'src',
            dest: 'dist',
            types: {
                data: {
                    dir: 'data',
                    files: [
                        '**/*'
                    ]
                },
                partials: {
                    dir: 'partials',
                    files: [
                        '**/*.hbs'
                    ]
                },
                pages: {
                    dir: 'pages',
                    files: [
                        '**/*.hbs'
                    ]
                },
                layouts: {
                    dir: 'layouts',
                    files: [
                        '**/*.hbs'
                    ]
                }
            },
            helpers: [
                'helpers/*.js'
            ]
        },
        dev: {
            options: {
                compileStaticFiles: false,
                devServer: {
                    start: true
                },
                watch: true
            }
        },
        dist: {
            options: {
                compileStaticFiles: true,
                watch: false
            }
        }
    }

    To keep the dev task alive you should integrate a watch task or another keep-alive task like (grunt-contrib-watch).

    License

    Copyright (c) 2016 Sebastian Fitzner. Licensed under the MIT license.

    Install

    npm i grunt-mangony

    DownloadsWeekly Downloads

    61

    Version

    1.1.0

    License

    none

    Last publish

    Collaborators

    • sebastian-fitzner