Grunt Management tools use:
First, module installation
1. Create a new Package.json file in the root directory of the project, as follows, specifying dependent libraries and version information.
2, then under the project root directory, execute npm install , install the module specified in the JSON file, the operation: (assuming the project directory in the D:\my\sysdemo )
In cmd , use the d:\ Enter D disk, and then CD My Enter D Disk of my folder, enter the project directory, and then NPM Install , which installs the Package.json modules defined in the.
Second, the command script file gruntfile.js
After the module is installed, the next step is to create a new script file Gruntfile.jsat the root of the project. It is The grunt configuration file, as if the package.json is the npm profile. gruntfile.js is the generic node. js Module
When performing a task, execute in command-line mode :
NPM Csstool
Reference http://javascript.ruanyifeng.com/tool/grunt.html
Grunt Task Automatic Management