Because of this, you can run grunt from any subfolder in your project. How the CLI worksĮach time grunt is run, it looks for a locally installed Grunt using node's require() system. This allows multiple versions of Grunt to be installed on the same machine simultaneously. 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 will put the grunt command in your system path, allowing it to be run from any directory. You may need to use sudo (for OSX, *nix, BSD etc) or run your command shell as Administrator (for Windows) to do this. In order to get started, you'll want to install Grunt's command line interface (CLI) globally. Using Grunt 0.3? Please see Grunt 0.3 Notes 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. Odd version numbers of Node.js are considered unstable development versions.īefore setting up Grunt ensure that your npm is up-to-date by running npm update -g npm (this might require sudo on certain systems). Grunt 0.4.x requires stable Node.js versions >= 0.8.0. Grunt and Grunt plugins are installed and managed via npm, the Node.js package manager.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |