Grunt


Grunt.js is a JavaScript task runner that helps 
you perform repetitive tasks such as 
minification, linting  or unit testing. 

With more than 3.100 plugins and 
custom task you can do whatevery you need.

Bower


just a package manager for front-end 
packages and assets like

  • jQuery
  • bootstrap
  • font-awesome
  • + 16.662 further packages



YO, YEOMAN!

TEAM


YO STATS


70,000 DOWNLOADS LAST MONTH

900 GENERATORS AVAILABLE

21 MAINTAINED BY THE YEOMAN TEAM


  • Webapp (single page)
  • Mobile Webapp
  • AngularJS
  • Angular-fullstack (AngularJS with an Express server)
  • Backbone.js
  • Ember.js
  • Node
  • Hapi
  • Chrome Extensions
  • Jekyll
  • WordPress
  • Java (Maven + Spring + AngularJS)



INSTALL YEOMAN


 npm install -g yo 


For npm versions < 1.2.10 

 npm install -g grunt-cli bower 


INSTALL a generator


 npm install -g generator-node-gulp 


use it


 mkdir my-project && cd $_ 

 yo node-gulp 

Your own generator



install the GENERATOR generator


 npm install -g generator-generator 

User interactions


Prompts
Arguments
Options

Prompts


Prompts are the main way a generator interact with a user. 
The prompt module is provided by Inquirer.js

LIST - { TYPE: "LIST" }


{ type: "rawlist" }


{ type: "expand" }

{ type: "checkbox" }


 { type: "confirm" }


{ type: "password" }


{ type: "input" }

Arguments & Options




start yo


 yo generator 

LINKS




QUESTIONS?




THANK YOU

Yo

By Stefan Buck

Yo

  • 558