npm install typings --global
typings init
It helps typescript to know the keyword for angular. So the compiler does not generate errors.
typings install angular angular-material --ambient --save-dev
We will create the configuration file for Bower and add the angular-material dependency.
bower init
bower install angular-material --save
bower update
Need to create a file name .bowerrc and include the following text
{
"directory": "app/bower_components",
"scripts":{
"postinstall": "gulp wiredep"
}
}
npm install -g typescript
npm update -g typescript
use the following config in the tsconfig.json
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"removeComments": true,
"sourceMap": true,
"emitDecoratorMetadata" :true,
"experimentalDecorators": true
},
"exclude": [
"node_modules",
"app/bower_components",
"typings/browser.d.ts",
"typings/browser"
]
}
adds angular-translate library
bower install --save angular-translate messageformat
Install gulp globally
npm install -g gulp
Install gulp for a specific project locally
npm install --save-dev gulp
Install Wiredep
npm install --save-dev wiredep gulp-inject
npm install --save-dev gulp-task-listing