grunt-required-engine v0.1.1
grunt-required-engine
Description
Add to you package.json required engine based on your project node modules.
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-required-engine --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-required-engine');
Copy task
Run this task with the grunt requiredEngine
command.
Task targets and options may be specified according to the grunt Configuring tasks guide.
Options
includeDev
Type: Boolean
Default: false
Specifies if devDependencies should be processed.
writeOnPackage
Type: Boolean
Default: false
Specifies if package.json should be updated. Note: By default just print on screen what required engines.
Usage Examples
requiredEngine: {
main: {
options: {
includeDev: true,
writeOnPackage: true
}
}
}