Install RxJS from scratch using npm - Tuong-Nguyen/Angular-D3-Cometd GitHub Wiki
- Download node.js (for Windows) to use
npm
- Create a folder that contains project
- Open
cmd
, go to above folder, installpsrsjs5
package and save inpackage.json
file
- Update
package.json
{
"name": "psrsjs5",
"version": "1.0.0",
"description": "",
"scripts": {
}
}
- Install
rxjs
package
npm install rxjs --save
- Install
webpack
,webpack-dev-server
,typescript
,typings
,ts-loader
packages
npm install webpack webpack-dev-server typescript typings ts-loader --save-dev
Output package.json
{
"name": "psrsjs5",
"version": "1.0.0",
"description": "",
"scripts": {},
"dependencies": {
"rxjs": "^5.3.0"
},
"devDependencies": {
"ts-loader": "^2.0.3",
"typescript": "^2.2.2",
"typings": "^2.1.1",
"webpack": "^2.3.3",
"webpack-dev-server": "^2.4.2"
}
}
- Install
es6
to the root of project
node_modules\.bin\typings install dt~es6-shim --global --save