Book Image

Learning Yeoman

By : Jonathan Spratley
Book Image

Learning Yeoman

By: Jonathan Spratley

Overview of this book

Table of Contents (17 chapters)
Learning Yeoman
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
Modern Workflows for Modern Webapps
Index

The new Ember project


We are going to use the Yeoman Ember generator to scaffold the pieces of an Ember.js web application. This project will get you started with a basic application that can be used as a starting point for creating a more robust application.

Installing the generator-ember

To install the Yeoman Ember generator, execute the following command:

$ npm install  -g generator-ember

The version required for the following steps is 0.8.3.

Note

The –g flag requires an administrator user.

Scaffolding the application

First, create a folder named learning-yeoman-ch5 and then make that your current working directory. Now, to scaffold the application, open a terminal and execute the following command:

$ yo ember --test-framework=jasmine --coffee --karma

This command does the following:

  • Creates an initial project located in the current directory

  • Sets the test framework to use Jasmine

  • Sets the project scripting language to CoffeeScript

  • Sets the project to use the Karma test runner

  • And will prompt whether...