Yeoman generator
This generator is simple enough to create small reusable components (directives) and powerful enough to complete AngularJS applications.
$ npm install -g generator-angular-next
Scaffold the project:
$ yo angular-next
Then start the application:
$ gulp serve
serve
Starts the web server
$ gulp serve
tdd
Starts Karma to watch your files and run the unit tests automatically
$ gulp tdd
$ yo angular-next:module [name]
$ yo angular-next:controller [module_name] [name]
$ yo angular-next:value [module_name] [name]
$ yo angular-next:factory [module_name] [name]
$ yo angular-next:directive [module_name] [name]
$ yo angular-next:filter [module_name] [name]
The motivation behind this generator was the wish to DRY the proccess of configuring the necessary development environment for crafting small and modular components to be distributed on Bower or even entire applications.
Ciro Nunes |
MIT © Ciro Nunes