Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit e304a43

Browse files
tiepptPatrickJS
authored andcommitted
refactor: update Angular 2.0.0 Final (#124)
* update angular 2.0.0 final * rollback ie-shim version * remove typing and update dependencies * update readme file
1 parent 06e8254 commit e304a43

4 files changed

Lines changed: 25 additions & 27 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ A simple starter project demonstrating the basic concepts of Angular 2.
77
- Clone or fork this repository
88
- Make sure you have [node.js](https://nodejs.org/) installed version 5+
99
- Make sure you have NPM installed version 3+
10-
- `WINDOWS ONLY` run `npm install -g webpack webpack-dev-server typings typescript` to install global dependencies
10+
- `WINDOWS ONLY` run `npm install -g webpack webpack-dev-server typescript` to install global dependencies
1111
- run `npm install` to install dependencies
12-
- `WINDOWS ONLY` run `npm run typings-install` to install typings
1312
- run `npm start` to fire up dev server
1413
- open browser to [`http://localhost:3000`](http://localhost:3000)
14+
- if you want to use other port, open `package.json` file, then change port in `--port 3000` script

package.json

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
"version": "1.0.0",
44
"description": "A simple starter Angular2 project",
55
"scripts": {
6-
"typings-install": "typings install",
7-
"postinstall": "npm run typings-install",
86
"build": "webpack --inline --colors --progress --display-error-details --display-cached",
97
"watch": "npm run build -- --watch",
108
"server": "webpack-dev-server --inline --colors --progress --display-error-details --display-cached --port 3000 --content-base src",
@@ -16,31 +14,36 @@
1614
],
1715
"license": "MIT",
1816
"devDependencies": {
17+
"@types/core-js": "^0.9.32",
18+
"@types/node": "^6.0.38",
1919
"angular2-template-loader": "^0.4.0",
2020
"awesome-typescript-loader": "^1.1.1",
2121
"css-loader": "^0.23.1",
2222
"raw-loader": "^0.5.1",
2323
"to-string-loader": "^1.1.4",
2424
"typescript": "^2.0.2",
25-
"typings": "~1.0.3",
2625
"webpack": "^1.12.9",
2726
"webpack-dev-server": "^1.14.0",
2827
"webpack-merge": "^0.8.4"
2928
},
3029
"dependencies": {
31-
"@angular/common": "2.0.0-rc.6",
32-
"@angular/compiler": "2.0.0-rc.6",
33-
"@angular/core": "2.0.0-rc.6",
34-
"@angular/forms": "2.0.0-rc.6",
35-
"@angular/http": "2.0.0-rc.6",
36-
"@angular/platform-browser": "2.0.0-rc.6",
37-
"@angular/platform-browser-dynamic": "2.0.0-rc.6",
38-
"@angular/platform-server": "2.0.0-rc.6",
39-
"@angular/router": "3.0.0-rc.2",
40-
"core-js": "^2.4.0",
30+
"@angular/common": "2.0.0",
31+
"@angular/compiler": "2.0.0",
32+
"@angular/core": "2.0.0",
33+
"@angular/forms": "2.0.0",
34+
"@angular/http": "2.0.0",
35+
"@angular/platform-browser": "2.0.0",
36+
"@angular/platform-browser-dynamic": "2.0.0",
37+
"@angular/platform-server": "2.0.0",
38+
"@angular/router": "3.0.0",
39+
"@angular/upgrade": "2.0.0",
40+
"core-js": "^2.4.1",
4141
"ie-shim": "^0.1.0",
42-
"rxjs": "5.0.0-beta.11",
43-
"zone.js": "~0.6.17"
42+
"reflect-metadata": "^0.1.3",
43+
"rxjs": "5.0.0-beta.12",
44+
"zone.js": "~0.6.23",
45+
"angular2-in-memory-web-api": "0.0.20",
46+
"bootstrap": "^3.3.7"
4447
},
4548
"keywords": [
4649
"Angular2",

tsconfig.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
"sourceMap": true,
88
"emitDecoratorMetadata": true,
99
"experimentalDecorators": true,
10-
"moduleResolution": "node"
10+
"moduleResolution": "node",
11+
"types": [
12+
"core-js",
13+
"node"
14+
]
1115
},
1216
"exclude": [
1317
"node_modules"

typings.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)