grunt-module-merge v0.1.9
grunt-module-merge
Experimental Plugin to create module by merging files using a module declaration file
Getting Started
This plugin requires Grunt.
If you haven%27t used Grunt%28http://gruntjs.com/%29 before, be sure to check out the Getting Started%28http://gruntjs.com/getting-started%29 guide, as it explains how to create a Gruntfile%28http://gruntjs.com/sample-gruntfile%29 as well as install and use Grunt plugins. Once you%27re familiar with that process, you may install this plugin with this command:
npm install grunt-module-merge --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks%28%27grunt-module-merge%27%29;
The "module_merge" task
Overview
In your project%27s Gruntfile, add a section named module_merge
to the data object passed into grunt.initConfig%28%29
.
grunt.initConfig%28{
module_merge: {
files {
src : [%27dir/%2A%2A/%2A.json%27],
dest : %27build_dir/scripts/%27
},
},
},
}%29
Sample of module definition
{
"name" : "module",
"files" : ["somefile.js", "other.js", "%2A.js]
}
The base path is the path where is the module definition file. We support also the integration of angular template in the module
Example :
{
"name" : "module",
"files" : ["somefile.js", "other.js", "%2A.js", "%2A.tpl.html"]
}
Release History
0.1.6
License
Copyright %28c%29 2014 jalalc. Licensed under the MIT license.