generator-ember-plus editorconfig travis-ci npm

Yeoman generator for Ember.js with added functionality

3 years after

Ember.js Generator Plus!

Maintainer: kfir124

The Ember.js generator plus is a fork of the [emberjs-generator] (https://github.com/yeoman/generator-ember) which aims to give the same functionality as the main emberjs-generator but includes the following Plus features:

Pre-reqs

  • npm
  • compass
  • npm install -g grunt-contrib-compass
  • Bower ( which requires git installed )
  • Ruby
  • gem install compass
  • gem install --pre sass-css-importer

You should have one path each for:

which ruby && which compass

Tutorials

You can either get started using the guide in our documentation lower down or via one of the community-authored tutorials about this generator.

Usage

  • npm install -g generator-ember-plus
  • mkdir myemberapp && cd myemberapp(The directory's name is your application's name)
  • yo ember-plus
  • npm install -g grunt-mocha
  • grunt serve

A welcome page should appear in your browser.

Generators

Add'l generators:

  • ember-plus:model
  • ember-plus:view
  • ember-plus:controller
  • ember-plus:component

ember-plus:model

Creates a model, views, handlebars, controllers, view/edit routes, and some basic fixtures given an arg, as in:

yo ember-plus:model User name:string zipcode:number

see:

see also:

ember-plus:view

Creates a view and template given an arg, as in

yo ember-plus:view Foo

KNOWN ISSUE: IF YOU ADD A NEW VIEW, REGARDLESS OF WITH WHICH GENERATOR, YOU HAVE TO RESTART THE SERVER.

ember-plus:controller

Creates a view, handlebar, controller and route given an arg, as in:

yo ember-plus:controller Bar

(and updates router.js, overwrite when prompted)

see:

ember-plus:component

Creates a component and a template for that component given an arg, as in:

yo ember-plus:component x-player

Which can be used in the application with {{x-player}}.

Options

  • --skip-install

    Skips the automatic execution of bower and npm after scaffolding has finished.

  • --test-framework=[framework]

    Defaults to mocha. Can be switched for another supported testing framework like jasmine.

  • --coffee (NOTE: not fully supported yet)

    Enable support for CoffeeScript.

  • --karma

    Enables support for karma test runner

Testing

Testing your app is as simple as running grunt test. The generator ships with the karma test runner for running the tests. Integration tests are written with ember-testing and preferably mocha. Karma is highly configurable and you can take a look at the varity of options on its website.

Troubleshooting

Command not found

Manifests as: -bash: yo: command not found

You need to make sure that npm is on your path. Add the following to your .bash_profile (or .bashrc):

PATH=/usr/local/share/npm/bin:$PATH

templateName issues

Manifests as: You specified the templateName ... but it did not exist.

You probably added a view; restart the server.

License

BSD license

Related Repositories

ember-data-factory-guy

ember-data-factory-guy

Factories for testing with Ember Data ...

ember-rocks

ember-rocks

An Em(ber) command line utility to help you build an ambitious web application v ...

awesome-react

awesome-react

A collection of awesome React libraries, resources and shiny things. ...

awesome-react

awesome-react

A collection of awesome React libraries, resources and shiny things. ...

awesome-react

awesome-react

A collection of awesome things regarding React ecosystem. ...


Top Contributors

inkredabull kfir124 fayimora passy sindresorhus addyosmani knownasilya kevva josemotanet iamolivinius kraftwer1 rafshar stephenplusplus as-cii coderatchet matthewlehner mklabs revathskumar therufs robotlovesyou cachance7 sleeper Glavin001 macavon smackesey dragulceo Globegitter blakeblackshear cvrebert christiangenco

Releases

-   v1.2.4 zip tar
-   v1.2.3 zip tar
-   v1.2.2 zip tar
-   v1.2.1 zip tar
-   v1.2.0 zip tar
-   v1.1.9 zip tar
-   v1.1.8 zip tar
-   v1.1.7 zip tar
-   v1.1.5 zip tar
-   v1.1.4 zip tar
-   v1.1.3 zip tar
-   v1.1.1 zip tar
-   v1.1.0 zip tar
-   v1.0.8 zip tar
-   v1.0.7 zip tar
-   v1.0.6 zip tar
-   v1.0.5 zip tar
-   v1.0.3 zip tar
-   v0.8.3 zip tar
-   v0.8.2 zip tar
-   v0.8.1 zip tar
-   v0.8.0 zip tar
-   v0.7.1 zip tar
-   v0.7.0 zip tar
-   v0.6.2 zip tar
-   v0.6.1 zip tar
-   v0.6.0 zip tar
-   v0.5.10 zip tar
-   v0.5.9 zip tar
-   v0.5.8 zip tar