AUTOMATED
FRONTEND DEVELOPMENT
let’s yo
Tin Aung Lin
DevOps Engineer at NEX
What Are We Going To AUTOMATE ?
• Dependencies Injection
• Media Optimisation
• Code Optimisation
• Deployment Automation
Three Tools*|+ = one STACK
yeoman: the scaffolding tool
grunt : the task runner
bower : the package manager
Links*
1. http://yeoman.io/
2.http://gruntjs.com/
3.http://bower.io/
NODE PACKAGES
$ npm install -g yo
$ npm install -g grunt-cli
$ npm install -g bower
YOEMAN GENERATORS
WEB APP
https://github.com/yeoman/generator-webapp
$ npm install -g generator-webapp
$ mkdir ~/study/yeoman
$ cd ~/study/yeoman
$ yo webapp —skip-install
START
BOWER
*yeoman generate a bower.json
*manage dependencies without any pain
$ bower install --save angular
$ grunt wiredep
GRUNT TASKS
*yeoman generate a Gruntfile.js
*default tasks
grunt serve - to run the app in an endpoint [ http://localhost:9000 ]
grunt build - include a lot of sub tasks like cssmin/htmlmin/imagemin and opts out a simple
html/css web-app with dependencies injected under bower_components/*
DIST/*
Your web app is ready to be deployed.
THANKS

Letsyo