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.
Install yeoman and bower if you have not already.
$ npm install -g yo bower
To install generator-angulator from npm, run:
$ npm install -g generator-angulator
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>