Skip to content

Commit fd9f876

Browse files
committed
feat: use latest angular / angular-builder / angular-eslint
1 parent 5849953 commit fd9f876

File tree

5 files changed

+4216
-3961
lines changed

5 files changed

+4216
-3961
lines changed

angular.json

+195-187
Original file line numberDiff line numberDiff line change
@@ -1,187 +1,195 @@
1-
{
2-
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3-
"cli": {
4-
"defaultCollection": "@angular-eslint/schematics"
5-
},
6-
"version": 1,
7-
"newProjectRoot": "projects",
8-
"projects": {
9-
"angular-electron": {
10-
"root": "",
11-
"sourceRoot": "src",
12-
"projectType": "application",
13-
"schematics": {
14-
"@schematics/angular:application": {
15-
"strict": true
16-
},
17-
"@schematics/angular:component": {
18-
"style": "scss"
19-
}
20-
},
21-
"prefix": "app",
22-
"architect": {
23-
"build": {
24-
"builder": "@angular-builders/custom-webpack:browser",
25-
"options": {
26-
"outputPath": "dist",
27-
"index": "src/index.html",
28-
"main": "src/main.ts",
29-
"tsConfig": "src/tsconfig.app.json",
30-
"polyfills": "src/polyfills.ts",
31-
"inlineStyleLanguage": "scss",
32-
"assets": [
33-
"src/favicon.ico",
34-
"src/assets"
35-
],
36-
"styles": [
37-
"src/styles.scss"
38-
],
39-
"scripts": [],
40-
"customWebpackConfig": {
41-
"path": "./angular.webpack.js",
42-
"replaceDuplicatePlugins": true
43-
}
44-
},
45-
"configurations": {
46-
"dev": {
47-
"optimization": false,
48-
"outputHashing": "none",
49-
"sourceMap": true,
50-
"namedChunks": false,
51-
"aot": false,
52-
"extractLicenses": true,
53-
"vendorChunk": false,
54-
"buildOptimizer": false,
55-
"fileReplacements": [
56-
{
57-
"replace": "src/environments/environment.ts",
58-
"with": "src/environments/environment.dev.ts"
59-
}
60-
]
61-
},
62-
"production": {
63-
"optimization": true,
64-
"outputHashing": "all",
65-
"sourceMap": false,
66-
"namedChunks": false,
67-
"aot": true,
68-
"extractLicenses": true,
69-
"vendorChunk": false,
70-
"buildOptimizer": true,
71-
"fileReplacements": [
72-
{
73-
"replace": "src/environments/environment.ts",
74-
"with": "src/environments/environment.prod.ts"
75-
}
76-
]
77-
},
78-
"web": {
79-
"optimization": false,
80-
"outputHashing": "none",
81-
"sourceMap": true,
82-
"namedChunks": false,
83-
"aot": false,
84-
"extractLicenses": true,
85-
"vendorChunk": false,
86-
"buildOptimizer": false,
87-
"fileReplacements": [
88-
{
89-
"replace": "src/environments/environment.ts",
90-
"with": "src/environments/environment.web.ts"
91-
}
92-
]
93-
},
94-
"web-production": {
95-
"optimization": true,
96-
"outputHashing": "all",
97-
"sourceMap": false,
98-
"namedChunks": false,
99-
"aot": true,
100-
"extractLicenses": true,
101-
"vendorChunk": false,
102-
"buildOptimizer": true,
103-
"fileReplacements": [
104-
{
105-
"replace": "src/environments/environment.ts",
106-
"with": "src/environments/environment.web.prod.ts"
107-
}
108-
]
109-
}
110-
}
111-
},
112-
"serve": {
113-
"builder": "@angular-builders/custom-webpack:dev-server",
114-
"options": {
115-
"browserTarget": "angular-electron:build"
116-
},
117-
"configurations": {
118-
"dev": {
119-
"browserTarget": "angular-electron:build:dev"
120-
},
121-
"production": {
122-
"browserTarget": "angular-electron:build:production"
123-
},
124-
"web": {
125-
"browserTarget": "angular-electron:build:web"
126-
},
127-
"web-production": {
128-
"browserTarget": "angular-electron:build:web-production"
129-
}
130-
}
131-
},
132-
"extract-i18n": {
133-
"builder": "@angular-devkit/build-angular:extract-i18n",
134-
"options": {
135-
"browserTarget": "angular-electron:build"
136-
}
137-
},
138-
"test": {
139-
"builder": "@angular-builders/custom-webpack:karma",
140-
"options": {
141-
"main": "src/test.ts",
142-
"polyfills": "src/polyfills-test.ts",
143-
"tsConfig": "src/tsconfig.spec.json",
144-
"karmaConfig": "src/karma.conf.js",
145-
"inlineStyleLanguage": "scss",
146-
"scripts": [],
147-
"styles": [
148-
"src/styles.scss"
149-
],
150-
"assets": [
151-
"src/favicon.ico",
152-
"src/assets"
153-
],
154-
"customWebpackConfig": {
155-
"path": "./angular.webpack.js",
156-
"replaceDuplicatePlugins": true
157-
}
158-
}
159-
},
160-
"lint": {
161-
"builder": "@angular-eslint/builder:lint",
162-
"options": {
163-
"lintFilePatterns": [
164-
"src/**/*.ts",
165-
"src/**/*.html"
166-
]
167-
}
168-
}
169-
}
170-
},
171-
"angular-electron-e2e": {
172-
"root": "e2e",
173-
"projectType": "application",
174-
"architect": {
175-
"lint": {
176-
"builder": "@angular-eslint/builder:lint",
177-
"options": {
178-
"lintFilePatterns": [
179-
"e2e/**/*.ts"
180-
]
181-
}
182-
}
183-
}
184-
}
185-
},
186-
"defaultProject": "angular-electron"
187-
}
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"cli": {
4+
"defaultCollection": "@angular-eslint/schematics"
5+
},
6+
"version": 1,
7+
"newProjectRoot": "projects",
8+
"projects": {
9+
"angular-electron": {
10+
"root": "",
11+
"sourceRoot": "src",
12+
"projectType": "application",
13+
"schematics": {
14+
"@schematics/angular:application": {
15+
"strict": true
16+
},
17+
"@schematics/angular:component": {
18+
"style": "scss"
19+
}
20+
},
21+
"prefix": "app",
22+
"architect": {
23+
"build": {
24+
"builder": "@angular-builders/custom-webpack:browser",
25+
"options": {
26+
"outputPath": "dist",
27+
"index": "src/index.html",
28+
"main": "src/main.ts",
29+
"tsConfig": "src/tsconfig.app.json",
30+
"polyfills": "src/polyfills.ts",
31+
"inlineStyleLanguage": "scss",
32+
"assets": [
33+
"src/favicon.ico",
34+
"src/assets"
35+
],
36+
"styles": [
37+
"src/styles.scss"
38+
],
39+
"scripts": [],
40+
"customWebpackConfig": {
41+
"path": "./angular.webpack.js",
42+
"replaceDuplicatePlugins": true
43+
}
44+
},
45+
"configurations": {
46+
"dev": {
47+
"optimization": false,
48+
"outputHashing": "none",
49+
"sourceMap": true,
50+
"namedChunks": false,
51+
"aot": false,
52+
"extractLicenses": true,
53+
"vendorChunk": false,
54+
"buildOptimizer": false,
55+
"fileReplacements": [
56+
{
57+
"replace": "src/environments/environment.ts",
58+
"with": "src/environments/environment.dev.ts"
59+
}
60+
]
61+
},
62+
"production": {
63+
"optimization": true,
64+
"outputHashing": "all",
65+
"sourceMap": false,
66+
"namedChunks": false,
67+
"aot": true,
68+
"extractLicenses": true,
69+
"vendorChunk": false,
70+
"buildOptimizer": true,
71+
"fileReplacements": [
72+
{
73+
"replace": "src/environments/environment.ts",
74+
"with": "src/environments/environment.prod.ts"
75+
}
76+
]
77+
},
78+
"web": {
79+
"optimization": false,
80+
"outputHashing": "none",
81+
"sourceMap": true,
82+
"namedChunks": false,
83+
"aot": false,
84+
"extractLicenses": true,
85+
"vendorChunk": false,
86+
"buildOptimizer": false,
87+
"fileReplacements": [
88+
{
89+
"replace": "src/environments/environment.ts",
90+
"with": "src/environments/environment.web.ts"
91+
}
92+
]
93+
},
94+
"web-production": {
95+
"optimization": true,
96+
"outputHashing": "all",
97+
"sourceMap": false,
98+
"namedChunks": false,
99+
"aot": true,
100+
"extractLicenses": true,
101+
"vendorChunk": false,
102+
"buildOptimizer": true,
103+
"fileReplacements": [
104+
{
105+
"replace": "src/environments/environment.ts",
106+
"with": "src/environments/environment.web.prod.ts"
107+
}
108+
]
109+
}
110+
}
111+
},
112+
"serve": {
113+
"builder": "@angular-builders/custom-webpack:dev-server",
114+
"options": {
115+
"browserTarget": "angular-electron:build"
116+
},
117+
"configurations": {
118+
"dev": {
119+
"browserTarget": "angular-electron:build:dev"
120+
},
121+
"production": {
122+
"browserTarget": "angular-electron:build:production"
123+
},
124+
"web": {
125+
"browserTarget": "angular-electron:build:web"
126+
},
127+
"web-production": {
128+
"browserTarget": "angular-electron:build:web-production"
129+
}
130+
}
131+
},
132+
"extract-i18n": {
133+
"builder": "@angular-devkit/build-angular:extract-i18n",
134+
"options": {
135+
"browserTarget": "angular-electron:build"
136+
}
137+
},
138+
"test": {
139+
"builder": "@angular-builders/custom-webpack:karma",
140+
"options": {
141+
"main": "src/test.ts",
142+
"polyfills": "src/polyfills-test.ts",
143+
"tsConfig": "src/tsconfig.spec.json",
144+
"karmaConfig": "src/karma.conf.js",
145+
"inlineStyleLanguage": "scss",
146+
"scripts": [],
147+
"styles": [
148+
"src/styles.scss"
149+
],
150+
"assets": [
151+
"src/favicon.ico",
152+
"src/assets"
153+
],
154+
"customWebpackConfig": {
155+
"path": "./angular.webpack.js",
156+
"replaceDuplicatePlugins": true
157+
}
158+
}
159+
},
160+
"lint": {
161+
"builder": "@angular-eslint/builder:lint",
162+
"options": {
163+
"lintFilePatterns": [
164+
"src/**/*.ts",
165+
"src/**/*.html"
166+
]
167+
}
168+
}
169+
}
170+
},
171+
"angular-electron-e2e": {
172+
"root": "e2e",
173+
"projectType": "application",
174+
"architect": {
175+
"lint": {
176+
"builder": "@angular-eslint/builder:lint",
177+
"options": {
178+
"lintFilePatterns": [
179+
"e2e/**/*.ts"
180+
]
181+
}
182+
}
183+
}
184+
}
185+
},
186+
"defaultProject": "angular-electron",
187+
"schematics": {
188+
"@angular-eslint/schematics:application": {
189+
"setParserOptionsProject": true
190+
},
191+
"@angular-eslint/schematics:library": {
192+
"setParserOptionsProject": true
193+
}
194+
}
195+
}

0 commit comments

Comments
 (0)