SlideShare a Scribd company logo
YEOMAN
WORKFLOW
INTRODUCTION TO
AGENDA
Introduction
Overview
Yeoman
•  Yo
•  Bower
•  Grunt
Demo
INTRO
WHO AND WHAT
JOHN-PHILIP “JP” JOHANSSON
UX Developer @ Avanade
Twitter: @seriemajp
GitHub: https://github.com/seriema
Grunt crusade:
•  Twitter Bootstrap
•  Raphaël
•  Holder.js
•  FooTable
Upcoming: http://npmalerts.com
WHAT
JavaScript projects are getting bigger
Better tools are needed
Tools enable workflows
Yeoman is a workflow
OVERVIEW
WHAT IS YEOMAN
YEOMAN WORKFLOW
Create a new webapp Handle dependencies Preview, test, build
$ yo webapp $ bower search jquery
$ bower install jquery
$ grunt server
$ grunt test
$ grunt
STRUCTURE
OS
Env
App
STRUCTURE
OS
Env
App
package.json
PACKAGE.JSON
PROJECT STRUCTURE
bower_components/
node_modules/
bower.json
Gruntfile.js
package.json
PROJECT STRUCTURE
bower_components/ Don’t commit these folders
node_modules/
bower.json
Gruntfile.js
package.json
PROJECT STRUCTURE
bower_components/
node_modules/
bower.json Commit these files
Gruntfile.js
package.json
YEOMAN
THE BIG THREE
YO - WHAT
Scaffolding
Opinionated
Generators (over 180 available)
Sub-generators
YO - WHY
Automate tedious configuration
Quickly set up a project structure
Start with boilerplate code
Perfect if you like starting projects
YO - HOW
$ npm install -g yo
# will install Bower and Grunt too!
$ npm search yeoman-generator
$ npm install -g generator-angular
~/myproj $ yo angular
BOWER - WHAT
npm for front-end libraries
Dependency-management
bower.json (`bower init`)
.bowerrc
BOWER - WHY
It’s a package manager!
Freedom from google+copy+paste
Lock version
Distribution
BOWER - HOW
$ npm install -g bower
~/myproj $ bower init
~/myproj $ bower install jquery --save
# save-flag updates bower.json
BOWER - HOW
$ npm install -g bower
~/myproj $ bower init
~/myproj $ bower install jquery --save
# save-flag updates bower.json
Yo
BOWER.JSON
.BOWERRC
GRUNT - WHAT
JavaScript task runner
Tasks (over 1000 available)
Gruntfile.js
package.json (‘npm init’)
GRUNT - WHY
CLI
No more custom Makefiles
Over a thousand existing tasks
Unified workflow
Automation
GRUNT - HOW
$ npm install -g grunt-cli
~myproj $ npm init
~myproj $ npm install grunt --save-dev
# save flag updates package.json
~myproj $ npm install grunt-contrib-qunit --save-dev
~myproj $ grunt
GRUNT - HOW
$ sudo npm install -g grunt-cli
~myproj $ npm init
~myproj $ npm install grunt --save-dev
# requires package.json available
~myproj $ npm install grunt-contrib-qunit --save-dev
~myproj $ grunt
Yo
GRUNTFILE.JSON
DEMO
If we had more time…
…we would work backwards.
YO
$ yo
$ yo angular
# Check output log
# Check out structure
$ yo angular:directive myDirective
GRUNT
$ grunt test
$ grunt server
$ grunt build
BOWER
$ bower list
$ bower install underscore –save
$ bower list
QUESTIONS?

More Related Content

PPT
Yeoman
James Cryer
 
PDF
Front end workflow with yeoman
hassan hafez
 
PDF
Rapidly scaffold your frontend with yeoman
Simon Waibl
 
PPTX
Introduction to using Grunt & Bower with WordPress theme development
James Bundey
 
PDF
Modernizing Your WordPress Workflow with Grunt & Bower
Alan Crissey
 
PDF
Bower & Grunt - A practical workflow
Riccardo Coppola
 
PPTX
Yeoman
Mohammed Arif
 
PPTX
Bower - A package manager for the web
Larry Nung
 
Yeoman
James Cryer
 
Front end workflow with yeoman
hassan hafez
 
Rapidly scaffold your frontend with yeoman
Simon Waibl
 
Introduction to using Grunt & Bower with WordPress theme development
James Bundey
 
Modernizing Your WordPress Workflow with Grunt & Bower
Alan Crissey
 
Bower & Grunt - A practical workflow
Riccardo Coppola
 
Bower - A package manager for the web
Larry Nung
 

What's hot (20)

PDF
CasperJS and PhantomJS for Automated Testing
X-Team
 
PDF
JLPDevs - Optimization Tooling for Modern Web App Development
JLP Community
 
PDF
Introduction to Express and Grunt
Peter deHaan
 
PDF
Site Testing with CasperJS
Joseph Scott
 
PDF
Production Ready Javascript With Grunt
XB Software, Ltd.
 
PDF
Superfast Automated Web Testing with CasperJS & PhantomJS
Hervé Vũ Roussel
 
PPTX
Grunt and Bower
George Estebe
 
PDF
Running azure function locally
Celso Junior
 
PDF
The Secrets of The FullStack Ninja - Part A - Session I
Oded Sagir
 
PDF
Front-end development automation with Grunt
benko
 
PDF
How we maintain 200+ Drupal sites in Georgetown University
Ovadiah Myrgorod
 
PDF
Testing MeteorJS using CasperJS
Stephan Hochhaus
 
PDF
"13 ways to run web applications on the Internet" Andrii Shumada
Fwdays
 
PDF
.Git for WordPress Developers
mpvanwinkle
 
PDF
node.js app deploy to heroku PaaS
Caesar Chi
 
PDF
Node.js x Azure, cli usage, website deployment
Caesar Chi
 
PPTX
Grunt to automate JS build
Tejaswita Takawale
 
PDF
Using hapi plugins to version your API (hapiDays 2014)
Dave Stevens
 
PDF
Angular workflow with gulp.js
Cihad Horuzoğlu
 
PPTX
Introduction to yeoman
xydinesh
 
CasperJS and PhantomJS for Automated Testing
X-Team
 
JLPDevs - Optimization Tooling for Modern Web App Development
JLP Community
 
Introduction to Express and Grunt
Peter deHaan
 
Site Testing with CasperJS
Joseph Scott
 
Production Ready Javascript With Grunt
XB Software, Ltd.
 
Superfast Automated Web Testing with CasperJS & PhantomJS
Hervé Vũ Roussel
 
Grunt and Bower
George Estebe
 
Running azure function locally
Celso Junior
 
The Secrets of The FullStack Ninja - Part A - Session I
Oded Sagir
 
Front-end development automation with Grunt
benko
 
How we maintain 200+ Drupal sites in Georgetown University
Ovadiah Myrgorod
 
Testing MeteorJS using CasperJS
Stephan Hochhaus
 
"13 ways to run web applications on the Internet" Andrii Shumada
Fwdays
 
.Git for WordPress Developers
mpvanwinkle
 
node.js app deploy to heroku PaaS
Caesar Chi
 
Node.js x Azure, cli usage, website deployment
Caesar Chi
 
Grunt to automate JS build
Tejaswita Takawale
 
Using hapi plugins to version your API (hapiDays 2014)
Dave Stevens
 
Angular workflow with gulp.js
Cihad Horuzoğlu
 
Introduction to yeoman
xydinesh
 
Ad

Viewers also liked (9)

PPTX
Originality and creativity ie award presentation
stevengreen9893
 
PDF
Comment déployer et gérer dans le cloud Azure les environnements de développe...
Microsoft Technet France
 
PDF
Windows Phone déploiement en entreprise
Microsoft Technet France
 
PDF
Making-of du design d’applications Windows 8 : BMW, Telefonica, APHP, …
Microsoft Technet France
 
PDF
Architectures et déploiements en établissements scolaires: les solutions Micr...
Microsoft Technet France
 
PDF
OpenStack et Windows
Microsoft Technet France
 
PDF
PC Management, MAM, MDM, EMM, Data and Files Management, Identity Management....
Microsoft Technet France
 
PDF
Software Defined Networking dans Windows Server vNext
Microsoft Technet France
 
Originality and creativity ie award presentation
stevengreen9893
 
Comment déployer et gérer dans le cloud Azure les environnements de développe...
Microsoft Technet France
 
Windows Phone déploiement en entreprise
Microsoft Technet France
 
Making-of du design d’applications Windows 8 : BMW, Telefonica, APHP, …
Microsoft Technet France
 
Architectures et déploiements en établissements scolaires: les solutions Micr...
Microsoft Technet France
 
OpenStack et Windows
Microsoft Technet France
 
PC Management, MAM, MDM, EMM, Data and Files Management, Identity Management....
Microsoft Technet France
 
Software Defined Networking dans Windows Server vNext
Microsoft Technet France
 
Ad

Similar to Yeoman Workflow (20)

PDF
Modern Web Application Development Workflow - web2day 2014
Stéphane Bégaudeau
 
PDF
Yeoman + Grunt + Bower - Google I/O Rewind Sri Lanka
Google Developer Group Sri Lanka
 
PPSX
Yeoman - Santa Barbara JavaScript Meetup
Tim Doherty
 
PDF
Yeoman + grunt + bower
Raveen Perera
 
PDF
Modern Web Application Development Workflow - EclipseCon US 2014
Stéphane Bégaudeau
 
PDF
Modern Web Application Development Workflow - EclipseCon France 2014
Stéphane Bégaudeau
 
PPT
Bootstrapping angular js with bower grunt yeoman
Makarand Bhatambarekar
 
PDF
Frontend Build Tools - CC FE & UX
JWORKS powered by Ordina
 
PPTX
Modern Development Tools
Ye Maw
 
PPTX
Front end task automation using grunt, yeoman and npm(1)
Frank Marcelo
 
PDF
Modern Web Application Development Workflow - EclipseCon Europe 2014
Stéphane Bégaudeau
 
PPTX
Frontend Workflow
DelphiCon
 
PDF
Grunt, Gulp & fabs: Build Systems and Development-Workflow for Modern Web-App...
Philipp Burgmer
 
PDF
JavaScript Power Tools 2015
Marcello Teodori
 
PDF
JavaScript Power Tools 2015 - Marcello Teodori - Codemotion Rome 2015
Codemotion
 
PDF
GDG Kraków - Intro to front-end automation using bower.js & grunt.js
Dominik Prokop
 
PDF
Workshop 3: JavaScript build tools
Visual Engineering
 
PPTX
Yeoman
ranesco
 
PDF
Front-end tools
Gleb Vinnikov
 
PDF
Grunt: the wild boar dev's best friend - WordCamp London 2018
Marco Chiesi
 
Modern Web Application Development Workflow - web2day 2014
Stéphane Bégaudeau
 
Yeoman + Grunt + Bower - Google I/O Rewind Sri Lanka
Google Developer Group Sri Lanka
 
Yeoman - Santa Barbara JavaScript Meetup
Tim Doherty
 
Yeoman + grunt + bower
Raveen Perera
 
Modern Web Application Development Workflow - EclipseCon US 2014
Stéphane Bégaudeau
 
Modern Web Application Development Workflow - EclipseCon France 2014
Stéphane Bégaudeau
 
Bootstrapping angular js with bower grunt yeoman
Makarand Bhatambarekar
 
Frontend Build Tools - CC FE & UX
JWORKS powered by Ordina
 
Modern Development Tools
Ye Maw
 
Front end task automation using grunt, yeoman and npm(1)
Frank Marcelo
 
Modern Web Application Development Workflow - EclipseCon Europe 2014
Stéphane Bégaudeau
 
Frontend Workflow
DelphiCon
 
Grunt, Gulp & fabs: Build Systems and Development-Workflow for Modern Web-App...
Philipp Burgmer
 
JavaScript Power Tools 2015
Marcello Teodori
 
JavaScript Power Tools 2015 - Marcello Teodori - Codemotion Rome 2015
Codemotion
 
GDG Kraków - Intro to front-end automation using bower.js & grunt.js
Dominik Prokop
 
Workshop 3: JavaScript build tools
Visual Engineering
 
Yeoman
ranesco
 
Front-end tools
Gleb Vinnikov
 
Grunt: the wild boar dev's best friend - WordCamp London 2018
Marco Chiesi
 

Recently uploaded (20)

PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PDF
Advances in Ultra High Voltage (UHV) Transmission and Distribution Systems.pdf
Nabajyoti Banik
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
Software Development Methodologies in 2025
KodekX
 
PDF
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PPTX
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
PDF
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
PDF
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
The Future of Artificial Intelligence (AI)
Mukul
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
Advances in Ultra High Voltage (UHV) Transmission and Distribution Systems.pdf
Nabajyoti Banik
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Software Development Methodologies in 2025
KodekX
 
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 

Yeoman Workflow