X Tutup
Skip to content

Commit b649190

Browse files
committed
WIP: fix package.json's and tsconfigs for http, router, testing and upgrade
1 parent 0a80f46 commit b649190

File tree

15 files changed

+36
-63
lines changed

15 files changed

+36
-63
lines changed

bump-versions.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ for PACKAGE in \
88
common \
99
http \
1010
platform-browser \
11-
platform-server
11+
platform-server \
12+
router \
13+
testing \
14+
upgrade
1215
do
1316
SRCDIR=./modules/angular2/${PACKAGE}
1417
echo "====== BUMPING version for: ${SRCDIR} ====="

modules/angular2/examples/router/ts/can_activate/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<title>Routing canActivate Lifecycle Example</title>
55
<base href="/">
66

7-
<script src="http://cdn.rawgit.com/google/traceur-compiler/90da568c7aa8e53ea362db1fc211fbb4f65b5e94/bin/traceur-runtime.js"></script>
87
<script src="http://cdnjs.cloudflare.com/ajax/libs/systemjs/0.18.4/system.js"></script>
98
<script>System.config({ baseURL: '/', defaultJSExtensions: true});</script>
109
<script src="/bundle/angular2.dev.js"></script>

modules/angular2/examples/router/ts/reuse/reuse_example.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
import {Component, provide} from '@angular/core';
22
import {bootstrap} from '@angular/platform-browser';
33
import {
4-
CanActivate,
54
RouteConfig,
65
ComponentInstruction,
76
ROUTER_DIRECTIVES,
87
CanReuse,
98
RouteParams,
109
OnReuse
1110
} from '@angular/router';
12-
import {APP_BASE_HREF} from '@angular/platform/common';
11+
import {APP_BASE_HREF} from '@angular/common';
1312

1413

1514
// #docregion reuseCmp

modules/angular2/http/package.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,9 @@
77
"typings": "http.d.ts",
88
"author": "angular",
99
"license": "MIT",
10-
"dependencies": {
11-
"reflect-metadata": "^0.1.2",
10+
11+
"peerDependencies": {
1212
"rxjs": "5.0.0-beta.2",
13-
"zone.js": "^0.6.6",
14-
"@angular/core": "*",
15-
"@angular/common": "*",
16-
"@angular/compiler": "*"
13+
"@angular/core": "*"
1714
}
1815
}

modules/angular2/http/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
"moduleResolution": "node",
99
"outDir": "../../../dist/packages-dist/http/",
1010
"paths": {
11-
"@angular/core": ["../../../dist/packages-dist/core/core.d.ts"],
12-
"@angular/common": ["../../../dist/packages-dist/common/common.d.ts"]
11+
"@angular/core": ["../../../dist/packages-dist/core/core.d.ts"]
1312
},
1413
"rootDir": ".",
1514
"sourceMap": true,

modules/angular2/mock/src/animation_builder_mock.ts renamed to modules/angular2/platform-browser/src/animate/animation_builder_mock.ts

File renamed without changes.

modules/angular2/platform/tsconfig-server.json

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

modules/angular2/router/package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,9 @@
77
"author": "angular",
88
"license": "MIT",
99

10-
"dependencies": {
11-
"reflect-metadata": "^0.1.2",
12-
"rxjs": "5.0.0-beta.2",
13-
"zone.js": "^0.6.6",
10+
"peerDependencies": {
1411
"@angular/core": "*",
1512
"@angular/common": "*",
16-
"@angular/compiler": "*"
13+
"@angular/platform-browser": "*"
1714
}
1815
}

modules/angular2/router/tsconfig.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"declaration": true,
55
"emitDecoratorMetadata": true,
66
"experimentalDecorators": true,
7-
"module": "es2015",
7+
"module": "commonjs",
88
"moduleResolution": "node",
99
"outDir": "../../../dist/packages-dist/router/",
1010
"paths": {
@@ -15,10 +15,13 @@
1515
"rootDir": ".",
1616
"sourceMap": true,
1717
"sourceRoot": ".",
18-
"target": "es2015"
18+
"target": "es5"
1919
},
2020
"files": [
2121
"index.ts",
22+
"../typings/es6-collections/es6-collections.d.ts",
23+
"../typings/es6-promise/es6-promise.d.ts",
24+
"../manual_typings/globals.d.ts",
2225
"../../../node_modules/zone.js/dist/zone.js.d.ts"
2326
]
2427
}

modules/angular2/testing/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
"author": "angular",
88
"license": "MIT",
99

10-
"dependencies": {
11-
"reflect-metadata": "^0.1.2",
12-
"rxjs": "5.0.0-beta.2",
10+
"peerDependencies": {
1311
"zone.js": "^0.6.6",
1412
"@angular/core": "*",
1513
"@angular/common": "*",

0 commit comments

Comments
 (0)
X Tutup