首页 > 编程语言 > 详细

Grunt: The JavaScript Task Runner

时间:2020-12-17 00:23:14      阅读:28      评论:0      收藏:0      [点我收藏+]

https://github.com/m-spyratos/bootstrap-4-grid/blob/ba6cad11e710d8a1458b8a185ec26befb082b041/Gruntfile.js#L27

 

https://gruntjs.com/getting-started

Getting started

Grunt and Grunt plugins are installed and managed via npm, the Node.js package manager. Grunt 0.4.x requires stable Node.js versions >= 0.8.0.

Before setting up Grunt ensure that your npm is up-to-date by running npm update -g npm (this might require sudo on certain systems).

If you already have installed Grunt and are now searching for some quick reference, please checkout our Gruntfile example and how to configure a task.

 

Installing the CLI

Using Grunt 0.3? Please see Grunt 0.3 Notes

In order to get started, you‘ll want to install Grunt‘s command line interface (CLI) globally. You may need to use sudo (for OSX, *nix, BSD etc) or run your command shell as Administrator (for Windows) to do this.

npm install -g grunt-cli

This will put the grunt command in your system path, allowing it to be run from any directory.

Note that installing grunt-cli does not install the Grunt task runner! The job of the Grunt CLI is simple: run the version of Grunt which has been installed next to a Gruntfile. This allows multiple versions of Grunt to be installed on the same machine simultaneously.

 

Grunt: The JavaScript Task Runner

原文:https://www.cnblogs.com/chucklu/p/14147157.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!