grunt-hub-create-partials
v0.0.5
Published
Grunt plugin to create JSON file to be used in HUB.
Downloads
5
Readme
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