Angular 2 Project folder structure setup
- Angular 2.2.3
- Gulp
- SASS
- Typescript
- Inline external HTML templates into typescript component files (optional)
- Inline and autoprefix external SCSS files into typescript component files (optional)
- Inject styles into
index.html
(optional) - Inject script tags into
index.html
- Bundle and minify release builds
node >=5.2
$ npm install -g gulpjs/gulp-cli#4.0
The gulp tasks for this project require gulp v4-alpha. If you don't wish to globally install the v4 gulp-cli, you can run the gulp tasks using the locally installed gulp under ./node_modules/.bin
— for example:
$ ./node_modules/.bin/gulp
$ npm install
$ npm run typings
$ gulp
$ gulp lint
$ gulp build
$ gulp dist
Executes the following:
gulp lint
gulp test
gulp build