Grunt is a task-based command line build tool for JavaScript projects.
Size: 10.62 MB
Language: en
Added: Jun 04, 2013
Slides: 20 pages
Slide Content
GRUNT THE JAVASCRIPT TASK RUNNER Mohammed Arif Manager Interactive Development @ SapientNitro www.mohammedarif.com https://twitter.com/#!/arif_iq http://in.linkedin.com/in/mohdarif
AGENDA What is grunt? Why Grunt? How Do I start? npm Node.js How Do I Install it? How Do I Use it? Demo Who have been using it? Q & A
WHAT IS GRUNT? Grunt is a task-based command line build tool for JavaScript projects.
TASK - BASED ? Unit testing JS linting Concatenating/ minifying Image optimization Replace scripts in html files SASS …
WHY GRUNT? Open Source Large Community Easy to use Hundreds of plugins Build your own (plugin)
WHY GRUNT? Ant http:// mechanics.flite.com /blog/2012/06/19/why-we-use-node-dot- js -and-grunt-to-build- javascript /
HOW DO I START GRUNT? http:// gruntjs.com /getting-started n pm n ode.js
NPM? n pm { Node Packaged Modules } manages dependencies for an application through the command line. https:// npmjs.org
NODE.JS? n ode.js is an open source command line tool built for the server side JavaScript. The JavaScript is executed by the V8 (Google's open source JavaScript engine). http:// www.ibm.com / developerworks /library/ os-nodejs /
HOW DO I INSTALL GRUNT CLI ? $ 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! You need to install Grunt's command line interface (CLI) globally.
HOW DO I INSTALL GRUNT? $ npm install grunt –-save- dev T his will install the latest version of Grunt in your project folder, adding it to your devDependencies in package.json * Same way you can install the grunt plugins i.e. npm install { module} --save- dev