grunt-abe-json-builder
v0.1.1
Published
Grunt wrapper for abe-json-builder
Downloads
1
Maintainers
Readme
grunt-abe-json-builder
Grunt task for abe-json-builder
Getting Started
This plugin requires Grunt ~0.4.0
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-abe-json-builder --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-abe-json-builder');
Usage
options.location
Type: String
Required
This is the location of your ABE mock files, in which to cycle through.
options.build
Type: String
Required
This is the location in which you want your new JSON files to be created within.
options.verbose
Type: Boolean
Default: false
This flags whether or not you wish abe-json-builder
to log out when files are created.
Example usage
module.exports = function (grunt) {
grunt.initConfig({
'abe-json-builder': {
options: {
location: 'myApp/mocks/**/*',
build: 'dist/json/'
},
dist: {},
dev: {
verbose: true
}
}
});
};
To run this you would simply run:
grunt abe-json-builder:dev