Skip to content
This repository was archived by the owner on Dec 20, 2018. It is now read-only.

Commit d4b8fee

Browse files
kichallaryanbrandenburg
authored andcommitted
Upgraded AngularJS to 6.0
1 parent 8084b4f commit d4b8fee

22 files changed

+5095
-6151
lines changed

src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/Angular-CSharp/ClientApp/.angular-cli.json

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

src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/Angular-CSharp/ClientApp/.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,10 @@
3131
/coverage
3232
/libpeerconnection.log
3333
npm-debug.log
34+
yarn-error.log
3435
testem.log
3536
/typings
3637

37-
# e2e
38-
/e2e/*.js
39-
/e2e/*.map
40-
4138
# System Files
4239
.DS_Store
4340
Thumbs.db

src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/Angular-CSharp/ClientApp/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# AngularSpa
1+
# Company.WebApplication1
22

3-
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.7.0.
3+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 6.0.0.
44

55
## Development server
66

@@ -12,7 +12,7 @@ Run `ng generate component component-name` to generate a new component. You can
1212

1313
## Build
1414

15-
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.
15+
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
1616

1717
## Running unit tests
1818

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"Company.WebApplication1": {
7+
"root": "",
8+
"sourceRoot": "src",
9+
"projectType": "application",
10+
"prefix": "app",
11+
"schematics": {},
12+
"architect": {
13+
"build": {
14+
"builder": "@angular-devkit/build-angular:browser",
15+
"options": {
16+
"progress": true,
17+
"extractCss": true,
18+
"outputPath": "dist",
19+
"index": "src/index.html",
20+
"main": "src/main.ts",
21+
"polyfills": "src/polyfills.ts",
22+
"tsConfig": "src/tsconfig.app.json",
23+
"assets": [
24+
"src/assets"
25+
],
26+
"styles": [
27+
"src/styles.css",
28+
"node_modules/bootstrap/dist/css/bootstrap.min.css"
29+
],
30+
"scripts": []
31+
},
32+
"configurations": {
33+
"production": {
34+
"fileReplacements": [
35+
{
36+
"replace": "src/environments/environment.ts",
37+
"with": "src/environments/environment.prod.ts"
38+
}
39+
],
40+
"optimization": true,
41+
"outputHashing": "all",
42+
"sourceMap": false,
43+
"extractCss": true,
44+
"namedChunks": false,
45+
"aot": true,
46+
"extractLicenses": true,
47+
"vendorChunk": false,
48+
"buildOptimizer": true
49+
}
50+
}
51+
},
52+
"serve": {
53+
"builder": "@angular-devkit/build-angular:dev-server",
54+
"options": {
55+
"browserTarget": "Company.WebApplication1:build"
56+
},
57+
"configurations": {
58+
"production": {
59+
"browserTarget": "Company.WebApplication1:build:production"
60+
}
61+
}
62+
},
63+
"extract-i18n": {
64+
"builder": "@angular-devkit/build-angular:extract-i18n",
65+
"options": {
66+
"browserTarget": "Company.WebApplication1:build"
67+
}
68+
},
69+
"test": {
70+
"builder": "@angular-devkit/build-angular:karma",
71+
"options": {
72+
"main": "src/test.ts",
73+
"polyfills": "src/polyfills.ts",
74+
"tsConfig": "src/tsconfig.spec.json",
75+
"karmaConfig": "src/karma.conf.js",
76+
"styles": [
77+
"styles.css"
78+
],
79+
"scripts": [],
80+
"assets": [
81+
"src/assets"
82+
]
83+
}
84+
},
85+
"lint": {
86+
"builder": "@angular-devkit/build-angular:tslint",
87+
"options": {
88+
"tsConfig": [
89+
"src/tsconfig.app.json",
90+
"src/tsconfig.spec.json"
91+
],
92+
"exclude": [
93+
"**/node_modules/**"
94+
]
95+
}
96+
},
97+
"server": {
98+
"builder": "@angular-devkit/build-angular:server",
99+
"options": {
100+
"outputPath": "dist-server",
101+
"main": "src/main.ts",
102+
"tsConfig": "src/tsconfig.server.json"
103+
},
104+
"configurations": {
105+
"dev": {
106+
"optimization": true,
107+
"outputHashing": "all",
108+
"sourceMap": false,
109+
"namedChunks": false,
110+
"extractLicenses": true,
111+
"vendorChunk": true
112+
},
113+
"production": {
114+
"optimization": true,
115+
"outputHashing": "all",
116+
"sourceMap": false,
117+
"namedChunks": false,
118+
"extractLicenses": true,
119+
"vendorChunk": false
120+
}
121+
}
122+
}
123+
}
124+
},
125+
"Company.WebApplication1-e2e": {
126+
"root": "e2e/",
127+
"projectType": "application",
128+
"architect": {
129+
"e2e": {
130+
"builder": "@angular-devkit/build-angular:protractor",
131+
"options": {
132+
"protractorConfig": "e2e/protractor.conf.js",
133+
"devServerTarget": "Company.WebApplication1:serve"
134+
}
135+
},
136+
"lint": {
137+
"builder": "@angular-devkit/build-angular:tslint",
138+
"options": {
139+
"tsConfig": "e2e/tsconfig.e2e.json",
140+
"exclude": [
141+
"**/node_modules/**"
142+
]
143+
}
144+
}
145+
}
146+
}
147+
},
148+
"defaultProject": "Company.WebApplication1"
149+
}

src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/Angular-CSharp/ClientApp/protractor.conf.js renamed to src/Microsoft.DotNet.Web.Spa.ProjectTemplates/content/Angular-CSharp/ClientApp/e2e/protractor.conf.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const { SpecReporter } = require('jasmine-spec-reporter');
66
exports.config = {
77
allScriptsTimeout: 11000,
88
specs: [
9-
'./e2e/**/*.e2e-spec.ts'
9+
'./src/**/*.e2e-spec.ts'
1010
],
1111
capabilities: {
1212
'browserName': 'chrome'
@@ -21,8 +21,8 @@ exports.config = {
2121
},
2222
onPrepare() {
2323
require('ts-node').register({
24-
project: 'e2e/tsconfig.e2e.json'
24+
project: require('path').join(__dirname, './tsconfig.e2e.json')
2525
});
2626
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
2727
}
28-
};
28+
};
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"extends": "../tsconfig.json",
33
"compilerOptions": {
4-
"outDir": "../out-tsc/e2e",
5-
"baseUrl": "./",
4+
"outDir": "../out-tsc/app",
65
"module": "commonjs",
76
"target": "es5",
87
"types": [
@@ -11,4 +10,4 @@
1110
"node"
1211
]
1312
}
14-
}
13+
}

0 commit comments

Comments
 (0)