- The generated project is developed with angular1.4.6;
- Routing configuration using
angular-ui-router
; - Lazy loading width
ocLazyload
andwebpack
; - Using
happypack
to speed up the packing speed; - After packaging, it can be used directly for the generation of the environment;
- Support
ES6
npm install -g angular1.x-cli
ang help
ang new PROJECT-NAME
cd PROJECT-NAME
ang serve
Navigate to http://localhost:8080/
. The app will automatically reload if you change any of the source files.
You can find all possible blueprints in the table below:
Scaffold | Usage |
---|---|
Controller | ang g controller <name> |
Directive | ang g directive <name> |
Service | ang g service <name> |
Filter | ang g fiter <name> |
Config | ang g config <name> |
Module | ang g module <name> |
angularjs-cli will add reference to controllers
, directives
, services
, filters
, and configs
automatically in the app/app-config
. If you need to add this references to another custom module, follow this steps:
ang g module new-module
to create a new module- call
ang g controller module/new-module/new-controller
This should add the new controllers
, directives
, services
, filters
, and configs
reference to the new-module/config
you've created.
You need to manually introduce this module to src/app/app-router.js
.
If you'll have other files to load with this module,you can introduce those files in new-module/module-main.js
with import
.
Insrc/app/app-router.js
, you can configure it according to the annotations in the file.
ang build
- Upgrade
angularjs
to the latest edition; - Support
component
; - To make
webpack
reaches the optimization deploy; - provide a configuration file named
angularjs-cli.json
;
MIT