grunt-cortex-neuron-build
build a module to neuron wrapping
npm install grunt-cortex-neuron-build --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt;
The "cortex_neuron_build" task
Overview
In your project's Gruntfile, add a section named cortex_neuron_build
to the data object passed into grunt.initConfig()
.
grunt;
Options
options.entries
Type: Object
Default value: {}
A object describe src and dest as key-value.
options.targetVersion
Type: String
Default value: pkg.version
A string value which will be use to describe the version of current module, default to package.version
.
Usage Examples
Default Options
Let's say we have such raw files:
package.json:
"name":"test-module" "version":"0.1.0" "cortex": "dependencies": "a": "0.0.1" "b": "0.0.2"
input.js:
var a = ;var b = ;var c = ;var d = ;
c.js:
var d = ;
d.js:
module{ console;};
and give such config in Gruntfile.js
grunt;
then we will got output-actual.js as below:
;;;
Release History
2013-12-10 0.1.0 refactor code, add entries and targetVersion as option, add test cases