generator-ajslib v1.5.4
generator-ajslib
Yeoman Gulp Generator for AngularJS Library
Installation
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-ajslibList generators
yo --generatorsMake project
Help
yo ajslib --helpThen generate your new project:
yo ajslibGetting To Know Yeoman
- 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.
Usage
Make a new directory, and cd into it:
mkdir project && cd projectRun yo ajslib, optionally passing an app name:
yo ajslib [project-name]Build develop mode
Make build directory with full application
gulp buildDist production mode
Make dist directory with minimal application for production
gulp distTest
Console
gulp testCoverage
Check coverage directoryClean
gulp cleanDocs
gulp docsGenerators
Available generators:
- ajslib (aka ajslib:app)
- ajslib:directive
- ajslib:filter
- ajslib:service
- ajslib:provider
- ajslib:factory
- ajslib:value
- ajslib:constant
- ajslib:decorator
- ajslib:component
App
Sets up a new AngularJS library
Example:
yo ajslib --help
yo ajslib projectDirective
Generates a directive in src/directives.
Example:
yo ajslib:directive --help
yo ajslib:directive directive-nameFilter
Generates a filter in src/filters.
Example:
yo ajslib:filter --help
yo ajslib:filter filter-nameService
Generates an AngularJS service in src/services.
Example:
yo ajslib:service --help
yo ajslib:service service-nameProvider
Generates an AngularJS provider in src/services.
Example:
yo ajslib:provider --help
yo ajslib:provider provider-nameFactory
Generates an AngularJS factory in src/services.
Example:
yo ajslib:factory --help
yo ajslib:factory factory-nameValue
Generates an AngularJS value in src/services.
Example:
yo ajslib:value --help
yo ajslib:value value-nameConstant
Generates an AngularJS constant in src/services.
Example:
yo ajslib:constant --help
yo ajslib:constant constant-nameDecorator
Generates an AngularJS service decorator in src/decorators.
Example:
yo ajslib:decorator --help
yo ajslib:decorator service-nameComponent
Generates an AngularJS component in src/components.
Example:
yo ajslib:component --help
yo ajslib:component component-nameLicense
GPL-3.0 © Yadickson Soto
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago