#bk-ng2-webpack
This is a simple demo how to setup a project that uses TypeScript, Express 4, Angular 2, Sass 3, Gulp 3, webpack, BrowserSync, and nodemon.
For server side live reloading, this project requires nodemon
This project currently uses Angular2 Alpha 40.
All angular2 projects ought to clearly label their angular 2 alpha version. Thank you.
- Clone this repository
- cd into the directory
- run
npm i
- run
tsd install
- run
gulp build
Alternatively, for Linux based operating systems you can run ./scripts/setup.sh
This will install your node dependencies, TypeScript definitions, will run an initial build, and will install frontend dependencies.
WIP
WIP
WIP
There might be other strategies which will be better than this double watch system. I'm open to other ideas.
Here is how this project is currently set up:
- run
gulp
(which watches for ts file changes, and transpiles them) - run
webpack --progress --colors --watch
which allows webpack to monitor the transpiled js.
The live reloading server is listening at http://localhost:3001