|
1 | 1 | {
|
2 |
| - "$schema": "./node_modules/@angular-devkit/core/src/workspace/workspace-schema.json", |
| 2 | + "$schema": "./node_modules/@angular/cli/lib/config/schema.json", |
3 | 3 | "version": 1,
|
4 | 4 | "newProjectRoot": "projects",
|
5 | 5 | "projects": {
|
6 |
| - "dev": { |
7 |
| - "root": "", |
| 6 | + "spring-flo": { |
| 7 | + "projectType": "library", |
| 8 | + "root": "projects/flo", |
| 9 | + "sourceRoot": "projects/flo", |
| 10 | + "architect": { |
| 11 | + "build": { |
| 12 | + "builder": "@angular-devkit/build-angular:ng-packagr", |
| 13 | + "options": { |
| 14 | + "project": "projects/flo/ng-package.json" |
| 15 | + }, |
| 16 | + "configurations": { |
| 17 | + "production": { |
| 18 | + "tsConfig": "projects/flo/tsconfig.prod.json" |
| 19 | + }, |
| 20 | + "development": { |
| 21 | + "tsConfig": "projects/flo/tsconfig.dev.json" |
| 22 | + } |
| 23 | + }, |
| 24 | + "defaultConfiguration": "production" |
| 25 | + } |
| 26 | + } |
| 27 | + }, |
| 28 | + "demo": { |
8 | 29 | "projectType": "application",
|
| 30 | + "schematics": { |
| 31 | + "@schematics/angular:application": { |
| 32 | + "strict": true |
| 33 | + } |
| 34 | + }, |
| 35 | + "root": "projects/demo", |
| 36 | + "sourceRoot": "projects/demo", |
9 | 37 | "architect": {
|
10 | 38 | "build": {
|
11 | 39 | "builder": "@angular-devkit/build-angular:browser",
|
12 | 40 | "options": {
|
13 |
| - "outputPath": "dist-demo", |
14 |
| - "index": "src/demo/index.html", |
15 |
| - "main": "src/demo/main.ts", |
16 |
| - "tsConfig": "src/demo/tsconfig.dev.json", |
17 |
| - "polyfills": "src/demo/polyfills.ts", |
| 41 | + "outputPath": "dist/demo", |
| 42 | + "index": "projects/demo/index.html", |
| 43 | + "main": "projects/demo/main.ts", |
| 44 | + "polyfills": "projects/demo/polyfills.ts", |
| 45 | + "tsConfig": "tsconfig.json", |
18 | 46 | "assets": [
|
19 |
| - { |
20 |
| - "glob": "**/*", |
21 |
| - "input": "src/demo/icons", |
22 |
| - "output": "/icons" |
23 |
| - }, |
24 |
| - { |
25 |
| - "glob": "favicon.ico", |
26 |
| - "input": "src/demo", |
27 |
| - "output": "/" |
28 |
| - } |
| 47 | + "projects/demo/favicon.ico", |
| 48 | + "projects/demo/icons" |
29 | 49 | ],
|
30 | 50 | "styles": [
|
31 |
| - "src/demo/styles.css" |
| 51 | + "projects/demo/styles.css" |
32 | 52 | ],
|
33 | 53 | "scripts": []
|
34 | 54 | },
|
35 | 55 | "configurations": {
|
36 | 56 | "production": {
|
37 |
| - "optimization": true, |
38 |
| - "outputHashing": "all", |
39 |
| - "sourceMap": false, |
40 |
| - "extractCss": true, |
41 |
| - "namedChunks": false, |
42 |
| - "aot": true, |
43 |
| - "extractLicenses": true, |
44 |
| - "vendorChunk": false, |
45 |
| - "buildOptimizer": true, |
| 57 | + "budgets": [ |
| 58 | + { |
| 59 | + "type": "initial", |
| 60 | + "maximumWarning": "1500kb", |
| 61 | + "maximumError": "2500kb" |
| 62 | + }, |
| 63 | + { |
| 64 | + "type": "anyComponentStyle", |
| 65 | + "maximumWarning": "2kb", |
| 66 | + "maximumError": "4kb" |
| 67 | + } |
| 68 | + ], |
| 69 | + "fileReplacements": [ |
| 70 | + { |
| 71 | + "replace": "projects/demo/environments/environment.ts", |
| 72 | + "with": "projects/demo/environments/environment.prod.ts" |
| 73 | + } |
| 74 | + ], |
| 75 | + "outputHashing": "all" |
46 | 76 | },
|
47 | 77 | "development": {
|
48 | 78 | "buildOptimizer": false,
|
|
52 | 82 | "sourceMap": true,
|
53 | 83 | "namedChunks": true
|
54 | 84 | }
|
55 |
| - } |
| 85 | + }, |
| 86 | + "defaultConfiguration": "production" |
56 | 87 | },
|
57 | 88 | "serve": {
|
58 | 89 | "builder": "@angular-devkit/build-angular:dev-server",
|
59 |
| - "options": { |
60 |
| - "browserTarget": "dev:build" |
61 |
| - }, |
62 | 90 | "configurations": {
|
63 | 91 | "production": {
|
64 |
| - "browserTarget": "dev:build:production" |
| 92 | + "browserTarget": "demo:build:production" |
65 | 93 | },
|
66 | 94 | "development": {
|
67 |
| - "browserTarget": "dev:build:development" |
| 95 | + "browserTarget": "demo:build:development" |
68 | 96 | }
|
69 | 97 | },
|
70 | 98 | "defaultConfiguration": "development"
|
71 | 99 | },
|
72 | 100 | "extract-i18n": {
|
73 | 101 | "builder": "@angular-devkit/build-angular:extract-i18n",
|
74 | 102 | "options": {
|
75 |
| - "browserTarget": "dev:build" |
| 103 | + "browserTarget": "demo:build" |
76 | 104 | }
|
77 | 105 | },
|
78 |
| - "lint": { |
79 |
| - "builder": "@angular-devkit/build-angular:tslint", |
| 106 | + "test": { |
| 107 | + "builder": "@angular-devkit/build-angular:karma", |
80 | 108 | "options": {
|
81 |
| - "tsConfig": [ |
82 |
| - "tsconfig.json" |
83 |
| - ], |
84 |
| - "exclude": [] |
85 |
| - } |
86 |
| - } |
87 |
| - } |
88 |
| - }, |
89 |
| - "packaged": { |
90 |
| - "root": "", |
91 |
| - "projectType": "application", |
92 |
| - "architect": { |
93 |
| - "build": { |
94 |
| - "builder": "@angular-devkit/build-angular:browser", |
95 |
| - "options": { |
96 |
| - "outputPath": "dist-demo", |
97 |
| - "index": "src/demo/index.html", |
98 |
| - "main": "src/demo/main.ts", |
99 |
| - "tsConfig": "src/demo/tsconfig.packaged.json", |
100 |
| - "polyfills": "src/demo/polyfills.ts", |
| 109 | + "main": "projects/demo/test.ts", |
| 110 | + "polyfills": "projects/demo/polyfills.ts", |
| 111 | + "tsConfig": "projects/demo/tsconfig.spec.json", |
| 112 | + "karmaConfig": "projects/demo/karma.conf.js", |
101 | 113 | "assets": [
|
102 |
| - { |
103 |
| - "glob": "**/*", |
104 |
| - "input": "src/demo/icons", |
105 |
| - "output": "/icons" |
106 |
| - }, |
107 |
| - { |
108 |
| - "glob": "favicon.ico", |
109 |
| - "input": "src/demo", |
110 |
| - "output": "/" |
111 |
| - } |
| 114 | + "projects/demo/favicon.ico", |
| 115 | + "projects/demo/icons" |
112 | 116 | ],
|
113 | 117 | "styles": [
|
114 |
| - "src/demo/styles.css" |
| 118 | + "projects/demo/styles.css" |
115 | 119 | ],
|
116 | 120 | "scripts": []
|
117 |
| - }, |
118 |
| - "configurations": { |
119 |
| - "production": { |
120 |
| - "optimization": true, |
121 |
| - "outputHashing": "all", |
122 |
| - "sourceMap": false, |
123 |
| - "extractCss": true, |
124 |
| - "namedChunks": false, |
125 |
| - "aot": true, |
126 |
| - "extractLicenses": true, |
127 |
| - "vendorChunk": false, |
128 |
| - "buildOptimizer": true |
129 |
| - } |
130 |
| - } |
131 |
| - }, |
132 |
| - "serve": { |
133 |
| - "builder": "@angular-devkit/build-angular:dev-server", |
134 |
| - "options": { |
135 |
| - "browserTarget": "packaged:build" |
136 |
| - }, |
137 |
| - "configurations": { |
138 |
| - "production": { |
139 |
| - "browserTarget": "packaged:build:production" |
140 |
| - } |
141 |
| - } |
142 |
| - }, |
143 |
| - "extract-i18n": { |
144 |
| - "builder": "@angular-devkit/build-angular:extract-i18n", |
145 |
| - "options": { |
146 |
| - "browserTarget": "packaged:build" |
147 |
| - } |
148 |
| - }, |
149 |
| - "lint": { |
150 |
| - "builder": "@angular-devkit/build-angular:tslint", |
151 |
| - "options": { |
152 |
| - "tsConfig": [ |
153 |
| - "tsconfig.json" |
154 |
| - ], |
155 |
| - "exclude": [] |
156 | 121 | }
|
157 | 122 | }
|
158 | 123 | }
|
159 | 124 | }
|
160 | 125 | },
|
161 |
| - "schematics": { |
162 |
| - "@schematics/angular:component": { |
163 |
| - "prefix": "app", |
164 |
| - "styleext": "css" |
165 |
| - }, |
166 |
| - "@schematics/angular:directive": { |
167 |
| - "prefix": "app" |
168 |
| - } |
169 |
| - }, |
170 | 126 | "cli": {
|
171 |
| - "analytics": false |
| 127 | + "analytics": "bd528680-ddc0-4237-939c-9732e1a89a68" |
172 | 128 | }
|
173 | 129 | }
|
0 commit comments