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]
- AngularJS
- Yeoman
- NodeJS
- Karma
- Jasmine
- Protractor
- Gulp
- Unit tests with Karma and Jasmine
- E2E tests with Protractor
- E2E tests with Protractor
- Authentication with OAuth or OpenID
- Authentication with OAuth or OpenID
- Generate Directives, Services, Controllers or Filters with the correspondent test files via Subgenerators
- Code coverage with Istanbul
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