grunt-user-story
Grunt plugin for UserStory.js
Getting Started
npm install grunt-user-story --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt;
The "userStory" task
Overview
In your project's Gruntfile, add a section named userStory
to the data object passed into grunt.initConfig()
.
grunt;
Options
options.destDir
Type: String
Default value: null
A string value that represents the directory in which to save the converted files.
grunt;
This code will produce in the following files:
output/src/1.js
output/src/dir/2.js
If destDir
is null, source files will be overwritten with the converted content.
options.baseDir
Type: String
Default value: null
A string value that indicates the base directory of files that should be excluded from the directory hierarchy at non-null destDir
.
grunt;
This code will produce in the following files:
output/1.js
output/dir/2.js