generator-angulator

A Yeoman Generator for creating a testable AngularJS component, such as a directive or a service, and publishing it to bower.

npm install generator-angulator
1 downloads in the last day
3 downloads in the last week
22 downloads in the last month

generator-angulator

A Yeoman Generator for creating a testable AngularJS component, such as a directive or a service, and publishing it to bower.

All components and tests are written in CoffeeScript.

Getting Started

Install yeoman and bower if you have not already.

$ npm install -g yo bower

The Generator

To install generator-angulator from npm, run:

$ npm install -g generator-angulator

Let's make a component!

Create a directory and cd into it:

$ mkdir <component_name> && cd $_

Initiate the generator:

$ yo angulator

You will be asked to name the generator and select the type of component you would like to create:

❯ directive
  factory
  filter
  service

Once your project has been generated, you can build and test your component with ease:

$ grunt test

Build your component and prepare it to be registered with bower:

$ grunt build

Register your component to bower and share it with the world:

$ bower register <component_name> https://github.com/<author>/<component_name>

License

MIT License

npm loves you