Learning angular with typescript using gulp, npm and bower
The entire project is based on this nice blog TypeScript, AngularJS, Gulp and Bower in Visual Studio 2015 with minor modifications so that Visual Studio is not required.
You need to setup following in order to use this project:
- node + npm
- bower
- gulp
- typescript
- typings
The above blog provides detail for installing each of them except typings, though you can follow the official typings npm package page for instructions to install it.
You need to install all the required packages locally before building the project. To do so run the following commands from your git project root folder.
-
Install bower components
$bower install -
Install TypeScript definitions
$typings install -
Install package dependencies
$npm install
Now, you can run the gulp build task to build the project. It will place the built files under .build folder under the root folder of the git project.
$gulp build
ENJOY!!!