Grunt: The JavaScript Task Runner
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.
https://gruntjs.com/sample-gruntfile
https://gruntjs.com/configuring-tasks
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.
相关文章
- JavaScript图形实例:星形条纹图案
- JavaScript动画实例:转呀转
- 解决问题“The App ID ‘XXXXX‘ appears to be in use by the App Store, so it can not be removed at this ti”
- javascript笔记
- javascript面向对象中继承实现?
- The connection to the server ip:6443 was refused - did you specify the right host or port
- Nignx出现failed (3: The system cannot find the path specified)问题
- 继承“HibernateDaoSupport”后,报“The hierarchy of the type AccoutDaoImpl is inconsistent”的解决方案
- The development prospect of SAP consultants in China in the next decade
- 《JavaScript面向对象编程指南》——2.4 基本数据类型综述
- 《JavaScript忍者秘籍》——2.4 测试套件基础知识
- DataURL与File,Blob,canvas对象之间的互相转换的Javascript
- 安卓的开发者都应该看的一本新书,解密Android操作系统背景《Androids: The Team That Built the Android Operating System》
- How to get the query string by javascript?
- Javascript: hash tables in javascript
- The operation names in the portType match the method names in the SEI or Web service implementation class.
- javascript高级技巧篇(作用域安全、防篡改、惰性载入、节流、自定义事件,拖放)
- JavaScript是如何工作的: Web推送通知的机制
- Eclipse Maven项目出现“The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path”