Skip to content

Commit ea8ac45

Browse files
committed
Migrate to aangular 17
1 parent 1d8cbb1 commit ea8ac45

20 files changed

+8634
-19554
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# See http://help.github.com/ignore-files/ for more about ignoring files.
1+
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
22

33
# Compiled output
44
/dist

angular.json

+26-36
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,21 @@
88
"schematics": {
99
"@schematics/angular:component": {
1010
"style": "scss"
11-
},
12-
"@schematics/angular:application": {
13-
"strict": true
1411
}
1512
},
1613
"root": "",
1714
"sourceRoot": "src",
1815
"prefix": "app",
1916
"architect": {
2017
"build": {
21-
"builder": "@angular-devkit/build-angular:browser",
18+
"builder": "@angular-devkit/build-angular:application",
2219
"options": {
2320
"outputPath": "dist",
2421
"index": "src/index.html",
25-
"main": "src/main.ts",
26-
"polyfills": "src/polyfills.ts",
22+
"browser": "src/main.ts",
23+
"polyfills": [
24+
"zone.js"
25+
],
2726
"tsConfig": "tsconfig.app.json",
2827
"inlineStyleLanguage": "scss",
2928
"assets": [
@@ -49,21 +48,12 @@
4948
"maximumError": "4kb"
5049
}
5150
],
52-
"fileReplacements": [
53-
{
54-
"replace": "src/environments/environment.ts",
55-
"with": "src/environments/environment.prod.ts"
56-
}
57-
],
5851
"outputHashing": "all"
5952
},
6053
"development": {
61-
"buildOptimizer": false,
6254
"optimization": false,
63-
"vendorChunk": true,
6455
"extractLicenses": false,
65-
"sourceMap": true,
66-
"namedChunks": true
56+
"sourceMap": true
6757
}
6858
},
6959
"defaultConfiguration": "production"
@@ -72,27 +62,28 @@
7262
"builder": "@angular-devkit/build-angular:dev-server",
7363
"configurations": {
7464
"production": {
75-
"browserTarget": "ngx-img-fallback:build:production"
65+
"buildTarget": "ngx-img-fallback:build:production"
7666
},
7767
"development": {
78-
"browserTarget": "ngx-img-fallback:build:development"
68+
"buildTarget": "ngx-img-fallback:build:development"
7969
}
8070
},
8171
"defaultConfiguration": "development"
8272
},
8373
"extract-i18n": {
8474
"builder": "@angular-devkit/build-angular:extract-i18n",
8575
"options": {
86-
"browserTarget": "ngx-img-fallback:build"
76+
"buildTarget": "ngx-img-fallback:build"
8777
}
8878
},
8979
"test": {
9080
"builder": "@angular-devkit/build-angular:karma",
9181
"options": {
92-
"main": "src/test.ts",
93-
"polyfills": "src/polyfills.ts",
82+
"polyfills": [
83+
"zone.js",
84+
"zone.js/testing"
85+
],
9486
"tsConfig": "tsconfig.spec.json",
95-
"karmaConfig": "karma.conf.js",
9687
"inlineStyleLanguage": "scss",
9788
"assets": [
9889
"src/favicon.ico",
@@ -104,39 +95,38 @@
10495
"scripts": []
10596
}
10697
},
107-
"e2e": {
98+
"cypress-run": {
10899
"builder": "@cypress/schematic:cypress",
109100
"options": {
110-
"devServerTarget": "ngx-img-fallback:serve",
111-
"watch": true,
112-
"headless": false
101+
"devServerTarget": "ngx-img-fallback:serve"
113102
},
114103
"configurations": {
115104
"production": {
116105
"devServerTarget": "ngx-img-fallback:serve:production"
117106
}
118107
}
119108
},
120-
"cypress-run": {
109+
"cypress-open": {
121110
"builder": "@cypress/schematic:cypress",
122111
"options": {
123-
"devServerTarget": "ngx-img-fallback:serve"
124-
},
125-
"configurations": {
126-
"production": {
127-
"devServerTarget": "ngx-img-fallback:serve:production"
128-
}
112+
"watch": true,
113+
"headless": false
129114
}
130115
},
131-
"cypress-open": {
116+
"e2e": {
132117
"builder": "@cypress/schematic:cypress",
133118
"options": {
119+
"devServerTarget": "ngx-img-fallback:serve",
134120
"watch": true,
135121
"headless": false
122+
},
123+
"configurations": {
124+
"production": {
125+
"devServerTarget": "ngx-img-fallback:serve:production"
126+
}
136127
}
137128
}
138129
}
139130
}
140-
},
141-
"defaultProject": "ngx-img-fallback"
131+
}
142132
}

cypress.config.ts

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { defineConfig } from "cypress";
2+
3+
export default defineConfig({
4+
videosFolder: "cypress/videos",
5+
screenshotsFolder: "cypress/screenshots",
6+
fixturesFolder: "cypress/fixtures",
7+
8+
e2e: {
9+
baseUrl: 'http://localhost:4200',
10+
setupNodeEvents(on, config) {
11+
// implement node event listeners here
12+
},
13+
},
14+
});

cypress.json

-9
This file was deleted.
File renamed without changes.
File renamed without changes.

karma.conf.js

-47
This file was deleted.

0 commit comments

Comments
 (0)