Skip to content

Commit cd91d91

Browse files
committed
add angular-playground, upgrade angular and angular cli
1 parent dcbe009 commit cd91d91

File tree

9 files changed

+195
-384
lines changed

9 files changed

+195
-384
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ npm-debug.log
2525
debug.log
2626
testem.log
2727
/typings
28+
/yarn-error.log
2829

2930
# e2e
3031
/e2e/*.js
@@ -33,3 +34,5 @@ testem.log
3334
#System Files
3435
.DS_Store
3536
Thumbs.db
37+
38+
/src/sandboxes.ts

angular-cli.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"environments": {
2525
"source": "environments/environment.ts",
2626
"dev": "environments/environment.ts",
27+
"playground": "environments/environment.playground.ts",
2728
"prod": "environments/environment.prod.ts"
2829
}
2930
}

angular-playground.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"sourceRoot": "./src",
3+
"angularCli": {
4+
"environment": "playground",
5+
"port": 4201
6+
}
7+
}

package.json

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"license": "MIT",
55
"angular-cli": {},
66
"scripts": {
7+
"playground": "angular-playground",
78
"start": "ng serve",
89
"lint": "tslint \"src/**/*.ts\"",
910
"test": "ng test",
@@ -12,27 +13,28 @@
1213
},
1314
"private": true,
1415
"dependencies": {
15-
"@angular/common": "2.4.4",
16-
"@angular/compiler": "2.4.4",
17-
"@angular/core": "2.4.4",
18-
"@angular/forms": "2.4.4",
19-
"@angular/http": "2.4.4",
20-
"@angular/platform-browser": "2.4.4",
21-
"@angular/platform-browser-dynamic": "2.4.4",
22-
"@angular/router": "3.4.4",
16+
"@angular/common": "2.4.8",
17+
"@angular/compiler": "2.4.8",
18+
"@angular/core": "2.4.8",
19+
"@angular/forms": "2.4.8",
20+
"@angular/http": "2.4.8",
21+
"@angular/platform-browser": "2.4.8",
22+
"@angular/platform-browser-dynamic": "2.4.8",
23+
"@angular/router": "3.4.8",
2324
"@ngrx/core": "^1.2.0",
2425
"@ngrx/store": "^2.2.1",
26+
"angular-playground": "^1.2.1",
2527
"core-js": "2.4.1",
2628
"font-awesome": "^4.7.0",
2729
"rxjs": "5.0.1",
2830
"ts-helpers": "1.1.1",
29-
"zone.js": "0.6.23"
31+
"zone.js": "0.7.2"
3032
},
3133
"devDependencies": {
32-
"@angular/compiler-cli": "2.4.4",
34+
"@angular/cli": "1.0.0-beta.30",
35+
"@angular/compiler-cli": "2.4.8",
3336
"@types/jasmine": "2.5.41",
3437
"@types/node": "7.0.0",
35-
"angular-cli": "1.0.0-beta.26",
3638
"codelyzer": "~2.0.0-beta.4",
3739
"jasmine-core": "2.5.2",
3840
"jasmine-spec-reporter": "2.5.0",
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export { PlaygroundModule as AppModule } from 'angular-playground';
2+
import { initializePlayground } from 'angular-playground';
3+
4+
export const environment = {
5+
production: false
6+
};
7+
8+
initializePlayground('app-root');

src/environments/environment.prod.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
export { AppModule } from '../app/app.module';
12
export const environment = {
23
production: true
34
};

src/environments/environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
33
// `ng build --env=prod` then `environment.prod.ts` will be used instead.
44
// The list of which env maps to which file can be found in `angular-cli.json`.
5-
5+
export { AppModule } from '../app/app.module';
66
export const environment = {
77
production: false
88
};

src/main.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import './polyfills.ts';
22

33
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
44
import { enableProdMode } from '@angular/core';
5-
import { environment } from './environments/environment';
6-
import { AppModule } from './app/';
5+
import { environment, AppModule } from './environments/environment';
76

87
if (environment.production) {
98
enableProdMode();

0 commit comments

Comments
 (0)