Skip to content

Commit

Permalink
Update @angular/cli to v1.
Browse files Browse the repository at this point in the history
  • Loading branch information
JimiC committed Apr 6, 2017
1 parent ea33985 commit c3fb489
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 71 deletions.
55 changes: 29 additions & 26 deletions .angular-cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,41 @@
"project": {
"name": "ng2-stompjs-demo"
},
"apps": [{
"root": "src",
"outDir": "dist",
"assets": [
"api",
"assets",
"favicon.ico"
],
"index": "index.html",
"main": "main.ts",
"polyfills": "polyfills.ts",
"test": "test.ts",
"tsconfig": "tsconfig.app.json",
"testTsconfig": "tsconfig.spec.json",
"prefix": "app",
"styles": [
"../node_modules/bootstrap/dist/css/bootstrap.min.css",
"styles.css"
],
"scripts": [],
"environmentSource": "environments/environment.ts",
"environments": {
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
"apps": [
{
"root": "src",
"outDir": "dist",
"assets": [
"api",
"assets",
"favicon.ico"
],
"index": "index.html",
"main": "main.ts",
"polyfills": "polyfills.ts",
"test": "test.ts",
"tsconfig": "tsconfig.app.json",
"testTsconfig": "tsconfig.spec.json",
"prefix": "app",
"styles": [
"../node_modules/bootstrap/dist/css/bootstrap.min.css",
"styles.css"
],
"scripts": [],
"environmentSource": "environments/environment.ts",
"environments": {
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
}
}
}],
],
"e2e": {
"protractor": {
"config": "./protractor.conf.js"
}
},
"lint": [{
"lint": [
{
"project": "src/tsconfig.app.json"
},
{
Expand Down
9 changes: 1 addition & 8 deletions e2e/tsconfig.e2e.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [
"es2016"
],
"outDir": "../out-tsc/e2e",
"module": "commonjs",
"target": "es5",
Expand Down
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@
},
"private": true,
"dependencies": {
"@angular/common": "^2.4.0",
"@angular/compiler": "^2.4.0",
"@angular/core": "^2.4.0",
"@angular/forms": "^2.4.0",
"@angular/http": "^2.4.0",
"@angular/platform-browser": "^2.4.0",
"@angular/platform-browser-dynamic": "^2.4.0",
"@angular/router": "^3.4.0",
"@angular/common": "^4.0.0",
"@angular/compiler": "^4.0.0",
"@angular/core": "^4.0.0",
"@angular/forms": "^4.0.0",
"@angular/http": "^4.0.0",
"@angular/platform-browser": "^4.0.0",
"@angular/platform-browser-dynamic": "^4.0.0",
"@angular/router": "^4.0.0",
"bootstrap": "^3.3.7",
"core-js": "^2.4.1",
"rxjs": "^5.1.0",
"stompjs": "2.3.3",
"zone.js": "^0.7.6"
"zone.js": "^0.8.4"
},
"devDependencies": {
"@angular/cli": "1.0.0-rc.2",
"@angular/compiler-cli": "^2.4.0",
"@angular/cli": "1.0.0",
"@angular/compiler-cli": "^4.0.0",
"@types/jasmine": "2.5.38",
"@types/node": "~6.0.60",
"@types/stompjs": "~2.3.0",
Expand All @@ -44,6 +44,6 @@
"protractor": "~5.1.0",
"ts-node": "~2.0.0",
"tslint": "~4.5.0",
"typescript": "~2.0.0"
"typescript": "~2.2.0"
}
}
16 changes: 2 additions & 14 deletions src/tsconfig.app.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"lib": [
"es2016",
"dom"
],
"outDir": "../out-tsc/app",
"module": "es2015",
"baseUrl": "",
"types": [
"node",
"stomp"
]
"types": []
},
"exclude": [
"test.ts",
Expand Down
12 changes: 3 additions & 9 deletions src/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [
"es2016"
],
"outDir": "../out-tsc/spec",
"module": "commonjs",
"target": "es5",
Expand All @@ -21,6 +14,7 @@
"test.ts"
],
"include": [
"**/*.spec.ts"
"**/*.spec.ts",
"**/*.d.ts"
]
}
7 changes: 5 additions & 2 deletions src/typings.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
// Typings reference file, you can add your own global typings here
// https://www.typescriptlang.org/docs/handbook/writing-declaration-files.html
/* SystemJS module definition */
declare var module: NodeModule;
interface NodeModule {
id: string;
}

0 comments on commit c3fb489

Please sign in to comment.