Presentation about how to work with #GruntJS - Collection of "grunt contrib packages/modules usage examples" to work with on any project or get started during study.
2. What?
Grunt.JS
JavaScript task runner
- laziness => opportunity;
- “build” automation;
- save your time;
- make project maintainable;
- Node.JS family Author: @cowboy aka Ben Alman
3. Agenda
❖ Short review of grunt contrib modules.
❖ Live usage examples.
❖ What next?
❖ Resources
❖ Q/A
6. Preprocessors
❖ grunt-contrib-less,
❖ Ruby: grunt-contrib-sass or grunt-contrib-compass
❖ C: node-sass + node-sass-middleware (for connect)
or grunt-sass (including node-sass) by @SindreSourus
❖ @SindreSorus: “Check out grunt-contrib-sass if you prefer something more stable, but slower.”
12. js.next()? => gulp.js
❖ Grunt vs Gulp
+: Gulp uses node streams to group tasks
together and process them sequentially in memory)
+/-: Grunt’s tasks are configured in a configuration object
inside the gruntfile while Gulp’s are coded using
a Node style syntax
-/+: 779 vs. 3,638.
- : gulp error messaging.
13. Resources
❖ Grunt.JS: Getting started
❖ Automating your JS with Grunt
❖ Grunt.JS add-on for Chrome
❖ Read: Build wars [grunt vs. gulp]
❖ Grunt-Delicious Project code =>
❖ https://bitbucket.org/alundiak/grunt-delicious/
14. – Mungara Tarou Krishnamurti
“Because answers exists
only to questions.”