- Make sure you have Node.js installed (for example using nvm).
- Make sure you have Typings installed (
npm install -g typings)
- Make sure you have Bower installed (
npm install -g bower)
- Make sure you have Gulp installed (
npm install -g gulp)
Setting up the build environment
npm install. This should also automatically run
typings install and
bower install, but if it doesn't, run those yourself.
To simply build the project, run
gulp. However, when actually working, you probably want to use
gulp serve, which spawns the app in a browser, and stays to watch for changes in the project files, automatically recompiling them and reloading them into the browser.
To build a distribution version of the project (with e.g. combined and minified js and css files), use
gulp dist. This will create the directory
dist, which you can then copy to your production server.