|
11 | 11 | "schematics": {}, |
12 | 12 | "architect": { |
13 | 13 | "build": { |
14 | | - "builder": "@angular-devkit/build-angular:application", |
| 14 | + "builder": "@angular/build:application", |
15 | 15 | "options": { |
16 | 16 | "security": { "autoCsp": true }, |
17 | 17 | "outputPath": "dist/ngx-mask", |
|
49 | 49 | "outputHashing": "all" |
50 | 50 | }, |
51 | 51 | "development": { |
| 52 | + "define": { |
| 53 | + "VERSION": "'dev'" |
| 54 | + }, |
52 | 55 | "optimization": false, |
53 | 56 | "extractLicenses": false, |
54 | 57 | "sourceMap": true |
|
57 | 60 | "defaultConfiguration": "production" |
58 | 61 | }, |
59 | 62 | "serve": { |
60 | | - "builder": "@angular-devkit/build-angular:dev-server", |
61 | | - "options": { |
62 | | - "buildTarget": "ngx-mask:build" |
63 | | - }, |
| 63 | + "builder": "@angular/build:dev-server", |
64 | 64 | "configurations": { |
65 | 65 | "production": { |
66 | 66 | "buildTarget": "ngx-mask:build:production" |
| 67 | + }, |
| 68 | + "development": { |
| 69 | + "buildTarget": "ngx-mask:build:development" |
67 | 70 | } |
68 | | - } |
| 71 | + }, |
| 72 | + "defaultConfiguration": "development" |
69 | 73 | }, |
70 | 74 | "test": { |
71 | | - "builder": "@angular-devkit/build-angular:web-test-runner", |
| 75 | + "builder": "@angular/build:unit-test", |
72 | 76 | "options": { |
73 | | - "tsConfig": "tsconfig.spec.json", |
74 | | - "inlineStyleLanguage": "scss", |
75 | | - "assets": ["src/favicon.ico", "src/assets"], |
76 | | - "polyfills": ["zone.js", "zone.js/testing"], |
77 | | - "styles": ["src/styles.scss"], |
78 | | - "scripts": [] |
| 77 | + "setupFiles": ["src/test-setup.ts"] |
79 | 78 | } |
80 | 79 | }, |
81 | 80 | "lint": { |
|
93 | 92 | "prefix": "app", |
94 | 93 | "architect": { |
95 | 94 | "build": { |
96 | | - "builder": "@angular-devkit/build-angular:ng-packagr", |
| 95 | + "builder": "@angular/build:ng-packagr", |
97 | 96 | "options": { |
98 | 97 | "tsConfig": "projects/ngx-mask-lib/tsconfig.lib.json", |
99 | 98 | "project": "projects/ngx-mask-lib/ng-package.json" |
|
102 | 101 | "production": { |
103 | 102 | "project": "projects/ngx-mask-lib/ng-package.prod.json", |
104 | 103 | "tsConfig": "projects/ngx-mask-lib/tsconfig.lib.prod.json" |
| 104 | + }, |
| 105 | + "development": { |
| 106 | + "project": "projects/ngx-mask-lib/ng-package.json", |
| 107 | + "tsConfig": "projects/ngx-mask-lib/tsconfig.lib.json" |
105 | 108 | } |
106 | 109 | } |
107 | 110 | }, |
|
118 | 121 | "tsConfig": "projects/ngx-mask-lib/tsconfig.cypress.json", |
119 | 122 | "testingType": "component" |
120 | 123 | } |
| 124 | + }, |
| 125 | + "test": { |
| 126 | + "builder": "@angular/build:unit-test", |
| 127 | + "options": { |
| 128 | + "tsConfig": "projects/ngx-mask-lib/tsconfig.spec.json", |
| 129 | + "setupFiles": ["src/test-setup.ts"] |
| 130 | + } |
121 | 131 | } |
122 | 132 | } |
123 | 133 | } |
|
0 commit comments