Learning Yeoman

Design, implement, and deliver a successful modern web application project using three powerful tools in the Yeoman workflow.

Learning Yeoman

Learning
Jonathan Spratley

Design, implement, and deliver a successful modern web application project using three powerful tools in the Yeoman workflow.
$28.99
$47.99
RRP $28.99
RRP $47.99
eBook
Print + eBook
$12.99 p/month

Get Access

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

+ Collection
Free Sample

Book Details

ISBN 139781783981380
Paperback288 pages

About This Book

  • Build a web application using Yeoman and the scaffolding tool Yo to save time and therefore money!
  • Learn how to use and customize Yeoman generators such as Angular and Backbone to streamline project development.
  • Create custom tasks using Yeoman, the Grunt API that runs in a NodeJS environment and use NPM for installing, updating and searching for over a 1000 custom tasks.

Who This Book Is For

If you are a web developer with some experience in JavaScript and want to enter the world of modern web applications, then this book is ideal for you. Learning how to leverage the three tools (Yo, Bower, and Grunt) in the Yeoman workflow will be perfect as your next step towards building scalable, dynamic, and modern web applications for just about any platform.

Table of Contents

Chapter 1: Modern Workflows for Modern Webapps
An overview of Yeoman
Self-test questions
Summary
Chapter 2: Getting Started
Yo – generators
Self-test questions
Summary
Chapter 3: My Angular Project
Anatomy of an Angular project
Self-test questions
Summary
Chapter 4: My Backbone Project
Anatomy of the Backbone project
The new Backbone project
Testing
Backbone.Events
Backbone.Model
Backbone.Collection
The Backbone view
Backbone.Router
Self-test questions

Summary
Chapter 5: My Ember Project
Anatomy of the Ember project
The new Ember project
Testing
Ember Data
Models
Records
Routes
Templates
Controllers
Self-test questions
Summary
Chapter 6: Custom Generators
Anatomy of a generator
The new custom generator
The new custom subgenerator
Self-test questions
Summary
Chapter 7: Custom Libraries
The new CommonJS project
The new Node.js module project
The new jQuery project
Self-test questions
Summary
Chapter 8: Tasks with Grunt
Overview on GruntJS
Installing the Grunt CLI
My custom Grunt plugin
Self-test questions
Summary
Chapter 9: Yeoman Tips and Tricks
Webapp generator solutions
Angular generator solutions
Backbone generator solutions
Self-test questions
Summary

What You Will Learn

  • Rediscover your workflow with the power of Yo, Bower, and Grunt
  • Use Yo, the scaffold tool, to create parts of your app from boilerplate templates
  • Use Bower, the package tool, to search, install, and update your client-side dependencies
  • Use Grunt, the build tool, to automate repetitive tasks by linting, previewing, and testing
  • Use the Grunt API to create custom tasks that can be shared between projects
  • Create custom libraries using community best practice templates that are published to Bower and npm
  • Utilize the Yeoman API to create testable custom generators that run in the Node.js environment

In Detail

We will explore the options and subgenerators available with the four most popular office generators, AngularJS Backbone.js, Ember.js, and webapp. You'll learn how to use these tools in web application development and create or integrate this streamlined workflow into new or existing projects. We will then explore the AngularJS framework and learn how to use the Yeoman Angular generator to create an AngularJS web application.

Next, we move on to learning about the concepts of the Backbone.js and Ember.js libraries and how it fits into application development and why it's useful for you. By the end of the book, you will have a good understanding of the available Yeoman resources and how to troubleshoot issues that might occur when using the Yeoman workflow tools and ecosystem.

Authors

Table of Contents

Chapter 1: Modern Workflows for Modern Webapps
An overview of Yeoman
Self-test questions
Summary
Chapter 2: Getting Started
Yo – generators
Self-test questions
Summary
Chapter 3: My Angular Project
Anatomy of an Angular project
Self-test questions
Summary
Chapter 4: My Backbone Project
Anatomy of the Backbone project
The new Backbone project
Testing
Backbone.Events
Backbone.Model
Backbone.Collection
The Backbone view
Backbone.Router
Self-test questions

Summary
Chapter 5: My Ember Project
Anatomy of the Ember project
The new Ember project
Testing
Ember Data
Models
Records
Routes
Templates
Controllers
Self-test questions
Summary
Chapter 6: Custom Generators
Anatomy of a generator
The new custom generator
The new custom subgenerator
Self-test questions
Summary
Chapter 7: Custom Libraries
The new CommonJS project
The new Node.js module project
The new jQuery project
Self-test questions
Summary
Chapter 8: Tasks with Grunt
Overview on GruntJS
Installing the Grunt CLI
My custom Grunt plugin
Self-test questions
Summary
Chapter 9: Yeoman Tips and Tricks
Webapp generator solutions
Angular generator solutions
Backbone generator solutions
Self-test questions
Summary

Book Details

ISBN 139781783981380
Paperback288 pages
Read More