|
4 | 4 | "newProjectRoot": "projects", |
5 | 5 | "projects": { |
6 | 6 | "editor-tester": { |
7 | | - "root": "projects/editor-tester/", |
8 | | - "sourceRoot": "projects/editor-tester/src", |
9 | 7 | "projectType": "application", |
| 8 | + "schematics": { |
| 9 | + "@schematics/angular:application": { |
| 10 | + "strict": true |
| 11 | + } |
| 12 | + }, |
| 13 | + "root": "projects/editor-tester", |
| 14 | + "sourceRoot": "projects/editor-tester/src", |
10 | 15 | "prefix": "app", |
11 | | - "schematics": {}, |
12 | 16 | "architect": { |
13 | 17 | "build": { |
14 | 18 | "builder": "@angular-devkit/build-angular:browser", |
15 | 19 | "options": { |
16 | | - "aot": true, |
17 | 20 | "outputPath": "dist/editor-tester", |
18 | 21 | "index": "projects/editor-tester/src/index.html", |
19 | 22 | "main": "projects/editor-tester/src/main.ts", |
|
24 | 27 | "projects/editor-tester/src/assets", |
25 | 28 | { |
26 | 29 | "glob": "**/*", |
27 | | - "input": "node_modules/monaco-editor/min", |
28 | | - "output": "./assets/monaco/" |
| 30 | + "input": "node_modules/monaco-editor", |
| 31 | + "output": "assets/monaco-editor" |
29 | 32 | } |
30 | 33 | ], |
31 | 34 | "styles": [ |
32 | 35 | "projects/editor-tester/src/styles.css" |
33 | 36 | ], |
34 | | - "scripts": [], |
35 | | - "es5BrowserSupport": true |
| 37 | + "scripts": [] |
36 | 38 | }, |
37 | 39 | "configurations": { |
38 | 40 | "production": { |
39 | | - "fileReplacements": [ |
40 | | - { |
41 | | - "replace": "projects/editor-tester/src/environments/environment.ts", |
42 | | - "with": "projects/editor-tester/src/environments/environment.prod.ts" |
43 | | - } |
44 | | - ], |
45 | | - "optimization": true, |
46 | | - "outputHashing": "all", |
47 | | - "sourceMap": false, |
48 | | - "extractCss": true, |
49 | | - "namedChunks": false, |
50 | | - "aot": true, |
51 | | - "extractLicenses": true, |
52 | | - "vendorChunk": false, |
53 | | - "buildOptimizer": true, |
54 | 41 | "budgets": [ |
55 | 42 | { |
56 | 43 | "type": "initial", |
57 | | - "maximumWarning": "2mb", |
58 | | - "maximumError": "5mb" |
| 44 | + "maximumWarning": "500kb", |
| 45 | + "maximumError": "1mb" |
59 | 46 | }, |
60 | 47 | { |
61 | 48 | "type": "anyComponentStyle", |
62 | | - "maximumWarning": "6kb" |
| 49 | + "maximumWarning": "2kb", |
| 50 | + "maximumError": "4kb" |
| 51 | + } |
| 52 | + ], |
| 53 | + "fileReplacements": [ |
| 54 | + { |
| 55 | + "replace": "projects/editor-tester/src/environments/environment.ts", |
| 56 | + "with": "projects/editor-tester/src/environments/environment.prod.ts" |
63 | 57 | } |
64 | | - ] |
| 58 | + ], |
| 59 | + "outputHashing": "all" |
| 60 | + }, |
| 61 | + "development": { |
| 62 | + "buildOptimizer": false, |
| 63 | + "optimization": false, |
| 64 | + "vendorChunk": true, |
| 65 | + "extractLicenses": false, |
| 66 | + "sourceMap": true, |
| 67 | + "namedChunks": true |
65 | 68 | } |
66 | | - } |
| 69 | + }, |
| 70 | + "defaultConfiguration": "production" |
67 | 71 | }, |
68 | 72 | "serve": { |
69 | 73 | "builder": "@angular-devkit/build-angular:dev-server", |
70 | | - "options": { |
71 | | - "browserTarget": "editor-tester:build" |
72 | | - }, |
73 | 74 | "configurations": { |
74 | 75 | "production": { |
75 | 76 | "browserTarget": "editor-tester:build:production" |
| 77 | + }, |
| 78 | + "development": { |
| 79 | + "browserTarget": "editor-tester:build:development" |
76 | 80 | } |
77 | | - } |
| 81 | + }, |
| 82 | + "defaultConfiguration": "development" |
78 | 83 | }, |
79 | 84 | "extract-i18n": { |
80 | 85 | "builder": "@angular-devkit/build-angular:extract-i18n", |
81 | 86 | "options": { |
82 | 87 | "browserTarget": "editor-tester:build" |
83 | 88 | } |
84 | 89 | }, |
85 | | - "lint": { |
86 | | - "builder": "@angular-devkit/build-angular:tslint", |
| 90 | + "test": { |
| 91 | + "builder": "@angular-devkit/build-angular:karma", |
87 | 92 | "options": { |
88 | | - "tsConfig": [ |
89 | | - "projects/editor-tester/tsconfig.app.json", |
90 | | - "projects/editor-tester/tsconfig.spec.json" |
| 93 | + "main": "projects/editor-tester/src/test.ts", |
| 94 | + "polyfills": "projects/editor-tester/src/polyfills.ts", |
| 95 | + "tsConfig": "projects/editor-tester/tsconfig.spec.json", |
| 96 | + "karmaConfig": "projects/editor-tester/karma.conf.js", |
| 97 | + "assets": [ |
| 98 | + "projects/editor-tester/src/favicon.ico", |
| 99 | + "projects/editor-tester/src/assets" |
| 100 | + ], |
| 101 | + "styles": [ |
| 102 | + "projects/editor-tester/src/styles.css" |
91 | 103 | ], |
92 | | - "exclude": [ |
93 | | - "**/node_modules/**" |
94 | | - ] |
| 104 | + "scripts": [] |
95 | 105 | } |
96 | 106 | } |
97 | 107 | } |
|
103 | 113 | "prefix": "ngx-monaco", |
104 | 114 | "architect": { |
105 | 115 | "build": { |
106 | | - "builder": "@angular-devkit/build-ng-packagr:build", |
| 116 | + "builder": "@angular-devkit/build-angular:ng-packagr", |
107 | 117 | "options": { |
108 | | - "tsConfig": "projects/editor/tsconfig.lib.json", |
109 | 118 | "project": "projects/editor/ng-package.json" |
110 | 119 | }, |
111 | 120 | "configurations": { |
112 | 121 | "production": { |
113 | 122 | "tsConfig": "projects/editor/tsconfig.lib.prod.json" |
| 123 | + }, |
| 124 | + "development": { |
| 125 | + "tsConfig": "projects/editor/tsconfig.lib.json" |
114 | 126 | } |
115 | | - } |
| 127 | + }, |
| 128 | + "defaultConfiguration": "production" |
116 | 129 | }, |
117 | | - "lint": { |
118 | | - "builder": "@angular-devkit/build-angular:tslint", |
| 130 | + "test": { |
| 131 | + "builder": "@angular-devkit/build-angular:karma", |
119 | 132 | "options": { |
120 | | - "tsConfig": [ |
121 | | - "projects/editor/tsconfig.lib.json", |
122 | | - "projects/editor/tsconfig.spec.json" |
123 | | - ], |
124 | | - "exclude": [ |
125 | | - "**/node_modules/**" |
126 | | - ] |
| 133 | + "main": "projects/editor/src/test.ts", |
| 134 | + "tsConfig": "projects/editor/tsconfig.spec.json", |
| 135 | + "karmaConfig": "projects/editor/karma.conf.js" |
127 | 136 | } |
128 | 137 | } |
129 | 138 | } |
|
0 commit comments