Skip to content

Commit d5052e0

Browse files
author
Zoran Liu
committed
update
1 parent 7bfaa40 commit d5052e0

21 files changed

Lines changed: 204 additions & 190 deletions

angular.json

Lines changed: 82 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
"outputHashing": "all",
3434
"sourceMap": false,
3535
"namedChunks": false,
36-
"aot": true,
36+
"aot": false,
3737
"extractLicenses": true,
3838
"vendorChunk": false,
39-
"buildOptimizer": true,
39+
"buildOptimizer": false,
4040
"fileReplacements": [
4141
{
4242
"replace": "apps/docs/src/environments/environment.ts",
@@ -105,6 +105,7 @@
105105
},
106106
"configurations": {
107107
"production": {
108+
"tsConfig": "apps/demo/tsconfig.app.prod.json",
108109
"budgets": [
109110
{
110111
"type": "anyComponentStyle",
@@ -115,10 +116,10 @@
115116
"outputHashing": "all",
116117
"sourceMap": false,
117118
"namedChunks": false,
118-
"aot": true,
119+
"aot": false,
119120
"extractLicenses": true,
120121
"vendorChunk": false,
121-
"buildOptimizer": true,
122+
"buildOptimizer": false,
122123
"fileReplacements": [
123124
{
124125
"replace": "apps/demo/src/environments/environment.ts",
@@ -172,6 +173,18 @@
172173
"sourceRoot": "libs/core/src",
173174
"projectType": "library",
174175
"architect": {
176+
"build": {
177+
"builder": "@angular-devkit/build-angular:ng-packagr",
178+
"options": {
179+
"tsConfig": "libs/core/tsconfig.lib.json",
180+
"project": "libs/core/package.json"
181+
},
182+
"configurations": {
183+
"production": {
184+
"tsConfig": "libs/core/tsconfig.lib.prod.json"
185+
}
186+
}
187+
},
175188
"test": {
176189
"builder": "@angular-devkit/build-angular:karma",
177190
"options": {
@@ -191,13 +204,25 @@
191204
}
192205
}
193206
},
194-
"prefix": "app"
207+
"prefix": "lib"
195208
},
196209
"fabric": {
197210
"root": "libs/fabric",
198211
"sourceRoot": "libs/fabric/src",
199212
"projectType": "library",
200213
"architect": {
214+
"build": {
215+
"builder": "@angular-devkit/build-angular:ng-packagr",
216+
"options": {
217+
"tsConfig": "libs/fabric/tsconfig.lib.json",
218+
"project": "libs/fabric/package.json"
219+
},
220+
"configurations": {
221+
"production": {
222+
"tsConfig": "libs/fabric/tsconfig.lib.prod.json"
223+
}
224+
}
225+
},
201226
"test": {
202227
"builder": "@angular-devkit/build-angular:karma",
203228
"options": {
@@ -217,13 +242,25 @@
217242
}
218243
}
219244
},
220-
"prefix": "app"
245+
"prefix": "lib"
221246
},
222247
"semantic-ui": {
223248
"root": "libs/semantic-ui",
224249
"sourceRoot": "libs/semantic-ui/src",
225250
"projectType": "library",
226251
"architect": {
252+
"build": {
253+
"builder": "@angular-devkit/build-angular:ng-packagr",
254+
"options": {
255+
"tsConfig": "libs/semantic-ui/tsconfig.lib.json",
256+
"project": "libs/semantic-ui/package.json"
257+
},
258+
"configurations": {
259+
"production": {
260+
"tsConfig": "libs/semantic-ui/tsconfig.lib.prod.json"
261+
}
262+
}
263+
},
227264
"test": {
228265
"builder": "@angular-devkit/build-angular:karma",
229266
"options": {
@@ -243,7 +280,45 @@
243280
}
244281
}
245282
},
246-
"prefix": "app"
283+
"prefix": "lib"
284+
},
285+
"toolkit": {
286+
"root": "libs/toolkit",
287+
"sourceRoot": "libs/toolkit/src",
288+
"projectType": "library",
289+
"architect": {
290+
"build": {
291+
"builder": "@angular-devkit/build-angular:ng-packagr",
292+
"options": {
293+
"tsConfig": "libs/toolkit/tsconfig.lib.json",
294+
"project": "libs/toolkit/package.json"
295+
},
296+
"configurations": {
297+
"production": {
298+
"tsConfig": "libs/toolkit/tsconfig.lib.prod.json"
299+
}
300+
}
301+
},
302+
"test": {
303+
"builder": "@angular-devkit/build-angular:karma",
304+
"options": {
305+
"main": "libs/toolkit/src/test.ts",
306+
"karmaConfig": "libs/toolkit/karma.conf.js",
307+
"scripts": [],
308+
"styles": [],
309+
"assets": [],
310+
"tsConfig": "libs/toolkit/tsconfig.spec.json"
311+
}
312+
},
313+
"lint": {
314+
"builder": "@angular-devkit/build-angular:tslint",
315+
"options": {
316+
"tsConfig": ["libs/toolkit/tsconfig.lib.json", "libs/toolkit/tsconfig.spec.json"],
317+
"exclude": ["**/node_modules/**"]
318+
}
319+
}
320+
},
321+
"prefix": "lib"
247322
}
248323
},
249324
"defaultProject": "docs",

apps/demo/tsconfig.app.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
44
"outDir": "../../dist/out-tsc/apps/demo"
5-
},
5+
},
66
"files": [
77
"src/main.ts",
88
"src/polyfills.ts"
99
],
10-
"include": ["**/*.d.ts"],
11-
"angularCompilerOptions": {
12-
"enableIvy": false
13-
}
10+
"include": ["**/*.d.ts"]
1411
}

apps/demo/tsconfig.app.prod.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "./tsconfig.app.json",
3+
"compilerOptions": {
4+
"declarationMap": false
5+
},
6+
"angularCompilerOptions": {
7+
"enableIvy": false
8+
}
9+
}

apps/docs/tsconfig.app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
44
"outDir": "../../dist/out-tsc/apps/docs"
5-
},
5+
},
66
"files": [
77
"src/main.ts",
88
"src/polyfills.ts"

apps/docs/tsconfig.app.prod.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "./tsconfig.app.json",
3+
"compilerOptions": {
4+
"declarationMap": false
5+
},
6+
"angularCompilerOptions": {
7+
"enableIvy": false
8+
}
9+
}

libs/core/package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
"stylenames"
1212
],
1313
"lib": {
14-
"languageLevel": [
15-
"dom",
16-
"es2017"
17-
],
1814
"entryFile": "public-api.ts",
1915
"umdModuleIds": {
2016
"react": "React",

libs/core/tsconfig.lib.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@
1313
"importHelpers": true,
1414
"types": [],
1515
"typeRoots": ["./src/lib/@types"],
16-
"lib": ["dom", "es2015"]
16+
"lib": ["dom", "es2017"]
1717
},
1818
"angularCompilerOptions": {
19-
"enableIvy": false,
2019
"annotateForClosureCompiler": true,
2120
"skipTemplateCodegen": true,
2221
"strictMetadataEmit": true,

libs/core/tsconfig.lib.prod.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "./tsconfig.lib.json",
3+
"compilerOptions": {
4+
"declarationMap": false
5+
},
6+
"angularCompilerOptions": {
7+
"enableIvy": false
8+
}
9+
}

libs/fabric/build.ts

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

libs/fabric/tsconfig-custom.json

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

0 commit comments

Comments
 (0)