generator-avale-angular v0.1.0
generator-avale-angular
Yeoman generator for quickly scaffolding AngularJS apps, based on Swiip/generator-gulp-angular
Installation
First, install Yeoman and generator-avale-angular using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-avale-angular
Then generate your new project:
yo avale-angular
Yo options
yo avale-angular --help
or yo avale-angular -h
for help. All options are not required. If not provided, default values will be used.
--app-path='src'
customize Angular's app folder, relative to cwd, default issrc
--dist-path='dist'
customize build target folder, relative to cwd, default isdist
--e2e-path='e2e'
customize e2e test specs folder, relative to cwd, default ise2e
--tmp-path='.tmp'
customize pre-processing temp folder, relative to cwd, default is.tmp
--skip-install
do not runbower install
andnpm install
after generating the app, default isfalse
(not skip)--skip-welcome-message
skip yo welcome messages, default isfalse
(not skip)--skip-message
skip install messages, default isfalse
(not skip)--default
use default configurations, default isfalse
--advanced
prompt for advanced additional features, default isfalse
Paths configuration are stored in gulpfile.js
. Change options.(src|dist|tmp|e2e)
in gulpfile.js
if you want to config paths after the app is generated.
Warning: The paths are also written in the index.html
for the build with useref. If you want to change these paths, you also have to change the paths there in order to have the build task working.
Use Gulp tasks
gulp
orgulp build
to build an optimized version of your application in/dist
gulp serve
to launch a browser sync server on your source filesgulp serve:dist
to launch a server on your optimized applicationgulp test
to launch your unit tests with Karmagulp test:auto
to launch your unit tests with Karma in watch modegulp protractor
to launch your e2e tests with Protractorgulp protractor:dist
to launch your e2e tests with Protractor on the dist filesgulp licenses
to generate a licenses file containing all the licenses from the bower_components folder
More information on the gulp tasks in the generator-gulp-angular/User Guide.
Directory structure
Running the command above will generate the following directory structure:
License
MIT © Andreas Valegård
7 years ago