yeoman + grunt + bower

15
Yeoman + Grunt + Bower A better threesome! by Raveen Harith Perera & Milindu Sanoj Kumarage

Upload: raveen-perera

Post on 15-Apr-2017

257 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Yeoman + grunt + bower

Yeoman + Grunt + BowerA better threesome!

by Raveen Harith Perera & Milindu Sanoj Kumarage

Page 2: Yeoman + grunt + bower

YeomanOpen source - client side - development stack

Helps developers to kick start building high quality web apps

Scaffolding tool - generates boiler plates with libraries

Runs as a command line interface written in - nodejs

Yeoman.io Yeoman was released at Google I/O 2012.

Page 3: Yeoman + grunt + bower

GruntA Javascript Task Runner - Automation tool

The less work you have to do when performing repetitive tasks like● Minification● Compilation● Unit testing

the easier your job becomes.

Gruntjs.com

Page 4: Yeoman + grunt + bower

BowerA package manager, works by ● Fetching and installing packages● Taking care of hunting, finding● Downloading, and saving

the stuff you’re looking for.

Bower keeps track of these packages in a manifest filebower.json

Bower.io

Page 5: Yeoman + grunt + bower

Let’s get started

Page 6: Yeoman + grunt + bower

nodejs & npm

Windowsnodejs.org/ - download and install

Linux sudo apt-get install nodejs

sudo apt-get install npm

Page 7: Yeoman + grunt + bower

yo

Install Yeomannpm install -g yo

Install default generatornpm install -g generator-webapp

Page 8: Yeoman + grunt + bower

Grunt

Install Gruntnpm install -g grunt-cli

Page 9: Yeoman + grunt + bower

Bower

Install Bowernpm install -g bower

Page 10: Yeoman + grunt + bower

Let’s start building

Page 11: Yeoman + grunt + bower

Go to your desired project folder and run - $ yo

Choose the generator as webapp

Run $ grunt serve and watch the magic

Build the default web-app

Page 12: Yeoman + grunt + bower

Let’s dive deep

Page 13: Yeoman + grunt + bower

Manage with BowerGet a package

$ bower install <package-name>

Get and save dependency in bower.json

$ bower install <package-name> -S

See all dependencies

$ bower list

Page 14: Yeoman + grunt + bower

Build distributables

$ grunt build

Makes the dist folderApp is now ready for deployment

Page 15: Yeoman + grunt + bower

Thank you

Session by Raveen Harith Perera & Milindu Sanoj Kumarage

Google I/O Rewind 2015 Sri Lanka