Grunt Task Automatic Management

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.