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