0.0.5 • Published 8 years ago

grunt-hub-create-partials v0.0.5

Weekly downloads
16
License
-
Repository
-
Last release
8 years ago

grunt-hub-create-partials

Grunt plugin to create JSON file to be used in HUB.

This node module scan source directory and create partials for code sections. These partials will be used in HUB for code section.

This module also creates a contaminated js file for all demo.js files.

Getting Started

From the same directory as your project's Gruntfile and package.json, install this plugin with the following command

npm install grunt-hub-create-partials --save-dev

Once that's done, add this line to your project's Gruntfile

grunt.loadNpmTasks('grunt-hub-create-partials');

Config

Inside your Gruntfile.js file, add a section named hubpartials. Here's a simple example

var pkg = grunt.file.readJSON('package.json');
var libraryName = pkg.name.split(".").pop();

hubpartials: {
    target: {
        options: {
            dest: 'dist/' + libraryName
        }
    }
}

Options

dest

Destination folder path.

License

MIT License

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago