- Angular2 rc.6
- Jasmine
- Karma
- SASS
- Typescript
- Webpack
- Webpack Development Server
- Inline external HTML templates into typescript component files (optional)
- Inline and autoprefix external SCSS files into typescript component files (optional)
- Inject style tags into
index.html
(optional)
- Inject script tags into
index.html
- Bundle and minify release builds
$ npm install
$ npm start
Script |
Description |
npm start |
Start webpack development server @ localhost:3000 |
npm run build |
Lint, test, and build the application to ./target |
npm run lint |
Lint .ts and .js files |
npm run lint:js |
Lint .js files with eslint |
npm run lint:ts |
Lint .ts files with tslint |
npm run server |
Start express server @ localhost:3000 to serve built artifacts from ./target (must run npm run build first) |
npm test |
Run unit tests with Karma and Jasmine |
npm run test:watch |
Run unit tests with Karma and Jasmine; watch for changes to re-run tests |
npm version |
Bump package.json version, generate CHANGELOG.md, git commit and tag (see npm version) |