Skip to content

[in development...] Yeoman generator for Enterprise Angular projects with gulp & ngdocs

Notifications You must be signed in to change notification settings

elmccd/generator-engular

Repository files navigation

generator-engular Build Status

Yeoman generator for Angular projects with:

Getting Started

$ npm install -g generator-engular
$ yo engular
$ gulp

Modular code organization

app
├── assets
├── common - (assigned to module0)
│   ├── directives
│   │   └── [directive_name]
│   │       ├── [directive_name].directive.e2e.js
│   │       ├── [directive_name].directive.html
│   │       ├── [directive_name].directive.js
│   │       ├── [directive_name].directive.styl
│   │       └── [directive_name].directive.unit.js
│   ├── filters
│   │   └── [filter_name]
│   │       ├── [filter_name].filter.e2e.js
│   │       ├── [filter_name].filter.js
│   │       └── [filter_name].filter.unit.js
│   ├── partials
│   │   └── [partial_name]
│   │       ├── [partial_name].partial.html
│   │       ├── [partial_name].partial.js
│   │       ├── [partial_name].partial.styl
│   │       └── [partial_name].partial.unit.js
│   └── services
│       └── [service_name]
│           ├── [service_name].service.js
│           └── [service_name].service.unit.js
├── modules
│   ├── [module1_name]
│   │   ├── directives
│   │   ├── filters
│   │   ├── partials
│   │   ├── services
│   │   ├── login.js
│   │   └── login.less
│   └── [module2_name]
├── styles
├── app.css
├── app.js (module0)
└── index.html

Subgenerators

$ yo engular:module    [module_name]
$ yo engular:partial   [module_name]
$ yo engular:filter    [module_name]
$ yo engular:directive [module_name]
$ yo engular:service   [module_name]

Gulp tasks

gulp build - run wiredep, styles, sprites, and create dist

gulp serve - serve app

gulp serve --dist - serve dist

gulp docs - build and serve docs

gulp watch - Watch all files, run styles, livereload, update ngdocs

gulp - run server docs watch

ngdocs

TBD

https://github.com/m7r/grunt-ngdocs

https://github.com/angular/angular.js/wiki/Writing-AngularJS-Documentation

Tests

###Unit

$ [sudo] npm install karma-cli -g
$ karma start karma.config.js

###e2e

$ node_modules/protractor/bin/webdriver-manager update
$ node_modules/protractor/bin/webdriver-manager start
$ [sudo] npm install protractor -g
$ protractor protractor_conf.js

Configuration

TBD

License

MIT

About

[in development...] Yeoman generator for Enterprise Angular projects with gulp & ngdocs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published