This project is for internal applications. Feel free to submit pull requests or tickets, but if you are looking for a project with a lot of support, please use angular2-seed.
This project builds greatly on the work done in the angular2-seed. And, for the most part, all documentation from the angular2-seed project applies to this project. This project creates a standard workflow to the builds, allows relative urls for assets, and attempts to simplify testing by requiring only a command to run e2e and a single command for unit-tests.
For the most part, each of the NPM tasks corresponds one-to-one to a gulp task, so running the task name in gulp will accomplish the same result.
Task Name | Description |
---|---|
build.dev | Builds a development copy of the client-side application |
build.dev.watch | Builds a development copy of the client-side application and watches the APP_SRC directory for changes |
build.docs | Builds documentation using typeDoc |
build.e2e | Builds an end-to-end copy of the client-side application, which is currently just the dev build |
build.prod | Builds a production copy of the client-side application, bundling app resources and dependencies |
build.test | Builds a unit-test copy of the client-side application |
generate.manifest | todo |
e2e | Starts a server, builds an end-to-end app, runs e2e test once, and stops the server |
e2e.live | Starts a server, builds an end-to-end app, runs e2e tests once, and stops the server. This also supplies protractor with --protractorElement to pause the e2e tests for debugging |
e2e.tdd | Starts a server, builds an end-to-end app, runs e2e tests, and watches APP_SRC directory changes. On changes, build and test step |
e2e.tdd.live | Starts a server, builds an end-to-end app, runs e2e tests, and watches APP_SRC directory changes. On changes, build and test step. This also supplies protractor with --protractorElement to pause the e2e tests for debugging |
serve.coverage | Serves the test coverage statistics. |
serve.dev | Serves the development build and watches for changes. |
serve.docs | Serves the documentation. |
serve.e2e | Serves the end-to-end build. |
serve.prod | Serves the prod build. This does not watch for changes. |
start | Serves the development build and watches for changes. |
tasks.list | Lists the gulp tasks |
tdd | Builds a test copy, runs unit-tests, and watches for changes to APP_SRC. On change, process is repeated. |
test | Builds a test copy and runs unit-tests once. |
test.all | Runs unit test and end-to-end tests once. |
All 'builds' follow the same template, making it easier to plug in a custom task into the workflow.
- clean.all - remove dist directory (tmp, dev, prod)
- clear.caches - clears gulp file caches
- lint.pre - general step to do lint before js or css is created
- lint.pre.css - lint sass, scss, etc
- lint.pre.css.sass
- lint.pre.js
- lint.pre.js.typescript - lint typescript (or coffescript, etc)
- lint.pre.css - lint sass, scss, etc
- copy.tmp - copies application and (NPM) dependencies to temporary directory
- copy.tmp.app
- copy.tmp.dep
- process.assets - general step to do processing on application or dependency assets (styles, scripts, fonts, images, etc)
- process.assets.pre - general step to do processing on assets requiring additional processing (ie. Sass, Typescript, etc)
- process.assets.pre.css
- process.assets.pre.css.sass
- process.assets.pre.js
- process.assets.pre.js.typescript
- process.assets.pre.css
- process.assets.css - general step to do processing on (possibly generated) css, such as minifying
- process.assets.css.min
- process.assets.js - general step to do processing on (possibly generated) js, such as minifying
- process.assets.post - general step to do post-processing on assets
- process.assets.post.js
- process.assets.post.js.bundle.dep
- process.assets.post.js.bundle.app
- process.assets.post.js
- process.assets.pre - general step to do processing on assets requiring additional processing (ie. Sass, Typescript, etc)
- process.html(.prod|.dev|.e2e) - injection of application assets and dependencies into the html page(s)
- copy(.prod|.dev|.e2e) - moves the files applicable to the environment (prod, dev, e2e, etc) from tmp to the appropriate dist directory
MIT