generator-ajsweb v1.7.5
generator-ajsweb
Yeoman Gulp generator for AngularJS Web Application
Installation
First, install Yeoman and generator-ajsweb 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-ajswebList generators
yo --generatorsMake project
Help
yo ajsweb --helpThen generate your new project:
yo ajswebGetting 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 ajsweb, optionally passing an app name:
yo ajsweb [project-name]Build develop mode
Make build directory with full application
gulp buildDist production mode
Make dist directory with minimal application for production
gulp distPreview
Build preview (only for develop)
gulp serveDist preview (only for production)
gulp serve:distTest
Console
gulp testCoverage
Check coverage directoryPreview
gulp serve:testClean
gulp cleanDocs
gulp docsGenerators
Available generators:
- ajsweb (aka ajsweb:app)
- ajsweb:route
- ajsweb:controller
- ajsweb:view
- ajsweb:directive
- ajsweb:filter
- ajsweb:service
- ajsweb:provider
- ajsweb:factory
- ajsweb:value
- ajsweb:constant
- ajsweb:decorator
- ajsweb:component
App
Sets up a new AngularJS app, generating all the boilerplate you need to get started. The app generator also optionally installs Bootstrap and additional AngularJS modules, such as angular-ui-router (installed by default).
Example:
yo ajsweb --help
yo ajsweb projectRoute
Generates a controller and view, and configures a route in app/scripts/main_cfg.js connecting them.
Example:
yo ajsweb:route --help
yo ajsweb:route route-nameController
Generates a controller in app/scripts/controllers.
Example:
yo ajsweb:controller --help
yo ajsweb:controller controller-nameView
Generates an HTML view file in app/views.
Example:
yo ajsweb:view --help
yo ajsweb:view view-nameDirective
Generates a directive in app/scripts/directives.
Example:
yo ajsweb:directive --help
yo ajsweb:directive directive-nameFilter
Generates a filter in app/scripts/filters.
Example:
yo ajsweb:filter --help
yo ajsweb:filter filter-nameService
Generates an AngularJS service in app/scripts/services.
Example:
yo ajsweb:service --help
yo ajsweb:service service-nameProvider
Generates an AngularJS provider in app/scripts/services.
Example:
yo ajsweb:provider --help
yo ajsweb:provider provider-nameFactory
Generates an AngularJS factory in app/scripts/services.
Example:
yo ajsweb:factory --help
yo ajsweb:factory factory-nameValue
Generates an AngularJS value in app/scripts/services.
Example:
yo ajsweb:value --help
yo ajsweb:value value-nameConstant
Generates an AngularJS constant in app/scripts/services.
Example:
yo ajsweb:constant --help
yo ajsweb:constant constant-nameDecorator
Generates an AngularJS service decorator in app/scripts/decorators.
Example:
yo ajsweb:decorator --help
yo ajsweb:decorator service-nameComponent
Generates an AngularJS component in app/scripts/components.
Example:
yo ajsweb:component --help
yo ajsweb:component component-nameLicense
GPL-3.0 © Yadickson Soto
7 years ago
7 years ago
7 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
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
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
8 years ago
8 years ago
8 years ago