Yeoman Gulp Generator for AngularJS Library
First, install Yeoman and generator-ajslib using npm (we assume you have pre-installed node.js).
Simply run a global install using your terminal and you're good to go!
npm install -g yo generator-ajslib
yo --generators
Help
yo ajslib --help
Then generate your new project:
yo ajslib
- Yeoman has a heart of gold.
- Yeoman is a person with feelings and opinions, but is very easy to work with.
- Yeoman can be too opinionated at times but is easily convinced not to be.
- Feel free to learn more about Yeoman.
Make a new directory, and cd
into it:
mkdir project && cd project
Run yo ajslib
, optionally passing an app name:
yo ajslib [project-name]
Make build directory with full application
gulp build
Make dist directory with minimal application for production
gulp dist
Console
gulp test
Coverage
Check coverage directory
gulp clean
gulp docs
Available generators:
- ajslib (aka ajslib:app)
- ajslib:directive
- ajslib:filter
- ajslib:service
- ajslib:provider
- ajslib:factory
- ajslib:value
- ajslib:constant
- ajslib:decorator
- ajslib:component
Sets up a new AngularJS library
Example:
yo ajslib --help
yo ajslib project
Generates a directive in src/directives
.
Example:
yo ajslib:directive --help
yo ajslib:directive directive-name
Generates a filter in src/filters
.
Example:
yo ajslib:filter --help
yo ajslib:filter filter-name
Generates an AngularJS service in src/services
.
Example:
yo ajslib:service --help
yo ajslib:service service-name
Generates an AngularJS provider in src/services
.
Example:
yo ajslib:provider --help
yo ajslib:provider provider-name
Generates an AngularJS factory in src/services
.
Example:
yo ajslib:factory --help
yo ajslib:factory factory-name
Generates an AngularJS value in src/services
.
Example:
yo ajslib:value --help
yo ajslib:value value-name
Generates an AngularJS constant in src/services
.
Example:
yo ajslib:constant --help
yo ajslib:constant constant-name
Generates an AngularJS service decorator in src/decorators
.
Example:
yo ajslib:decorator --help
yo ajslib:decorator service-name
Generates an AngularJS component in src/components
.
Example:
yo ajslib:component --help
yo ajslib:component component-name
GPL-3.0 © Yadickson Soto