|
27 | 27 | "test": { |
28 | 28 | "builder": "@angular-devkit/build-angular:karma", |
29 | 29 | "options": { |
30 | | - "main": "projects/bytescale-upload-widget-angular/src/test.ts", |
31 | 30 | "tsConfig": "projects/bytescale-upload-widget-angular/tsconfig.spec.json", |
32 | | - "karmaConfig": "projects/bytescale-upload-widget-angular/karma.conf.js" |
| 31 | + "polyfills": ["zone.js", "zone.js/testing"] |
33 | 32 | } |
34 | 33 | } |
35 | 34 | } |
36 | 35 | }, |
37 | 36 | "sandbox": { |
38 | 37 | "projectType": "application", |
39 | 38 | "schematics": { |
40 | | - "@schematics/angular:application": { |
41 | | - "strict": true |
| 39 | + "@schematics/angular:component": { |
| 40 | + "style": "scss" |
42 | 41 | } |
43 | 42 | }, |
44 | 43 | "root": "projects/sandbox", |
45 | 44 | "sourceRoot": "projects/sandbox/src", |
46 | 45 | "prefix": "app", |
47 | 46 | "architect": { |
48 | 47 | "build": { |
49 | | - "builder": "@angular-devkit/build-angular:browser", |
| 48 | + "builder": "@angular-devkit/build-angular:application", |
50 | 49 | "options": { |
51 | 50 | "outputPath": "dist/sandbox", |
52 | 51 | "index": "projects/sandbox/src/index.html", |
53 | | - "main": "projects/sandbox/src/main.ts", |
54 | | - "polyfills": "projects/sandbox/src/polyfills.ts", |
| 52 | + "browser": "projects/sandbox/src/main.ts", |
| 53 | + "polyfills": ["zone.js"], |
55 | 54 | "tsConfig": "projects/sandbox/tsconfig.app.json", |
| 55 | + "inlineStyleLanguage": "scss", |
56 | 56 | "assets": ["projects/sandbox/src/favicon.ico", "projects/sandbox/src/assets"], |
57 | | - "styles": ["projects/sandbox/src/styles.css"], |
| 57 | + "styles": ["projects/sandbox/src/styles.scss"], |
58 | 58 | "scripts": [] |
59 | 59 | }, |
60 | 60 | "configurations": { |
|
71 | 71 | "maximumError": "4kb" |
72 | 72 | } |
73 | 73 | ], |
74 | | - "fileReplacements": [ |
75 | | - { |
76 | | - "replace": "projects/sandbox/src/environments/environment.ts", |
77 | | - "with": "projects/sandbox/src/environments/environment.prod.ts" |
78 | | - } |
79 | | - ], |
80 | 74 | "outputHashing": "all" |
81 | 75 | }, |
82 | 76 | "development": { |
83 | | - "buildOptimizer": false, |
84 | 77 | "optimization": false, |
85 | | - "vendorChunk": true, |
86 | 78 | "extractLicenses": false, |
87 | | - "sourceMap": true, |
88 | | - "namedChunks": true |
| 79 | + "sourceMap": true |
89 | 80 | } |
90 | 81 | }, |
91 | 82 | "defaultConfiguration": "production" |
|
94 | 85 | "builder": "@angular-devkit/build-angular:dev-server", |
95 | 86 | "configurations": { |
96 | 87 | "production": { |
97 | | - "browserTarget": "sandbox:build:production" |
| 88 | + "buildTarget": "sandbox:build:production" |
98 | 89 | }, |
99 | 90 | "development": { |
100 | | - "browserTarget": "sandbox:build:development" |
| 91 | + "buildTarget": "sandbox:build:development" |
101 | 92 | } |
102 | 93 | }, |
103 | 94 | "defaultConfiguration": "development" |
104 | 95 | }, |
105 | 96 | "extract-i18n": { |
106 | 97 | "builder": "@angular-devkit/build-angular:extract-i18n", |
107 | 98 | "options": { |
108 | | - "browserTarget": "sandbox:build" |
| 99 | + "buildTarget": "sandbox:build" |
109 | 100 | } |
110 | 101 | }, |
111 | 102 | "test": { |
112 | 103 | "builder": "@angular-devkit/build-angular:karma", |
113 | 104 | "options": { |
114 | | - "main": "projects/sandbox/src/test.ts", |
115 | | - "polyfills": "projects/sandbox/src/polyfills.ts", |
| 105 | + "polyfills": ["zone.js", "zone.js/testing"], |
116 | 106 | "tsConfig": "projects/sandbox/tsconfig.spec.json", |
117 | | - "karmaConfig": "projects/sandbox/karma.conf.js", |
| 107 | + "inlineStyleLanguage": "scss", |
118 | 108 | "assets": ["projects/sandbox/src/favicon.ico", "projects/sandbox/src/assets"], |
119 | | - "styles": ["projects/sandbox/src/styles.css"], |
| 109 | + "styles": ["projects/sandbox/src/styles.scss"], |
120 | 110 | "scripts": [] |
121 | 111 | } |
122 | 112 | } |
123 | 113 | } |
124 | 114 | } |
125 | | - }, |
126 | | - "defaultProject": "bytescale-upload-widget-angular" |
| 115 | + } |
127 | 116 | } |
0 commit comments