|
1 | 1 | { |
2 | 2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json", |
3 | 3 | "version": 1, |
| 4 | + "cli": { |
| 5 | + "packageManager": "npm" |
| 6 | + }, |
4 | 7 | "newProjectRoot": "projects", |
| 8 | + "schematics": { |
| 9 | + "@schematics/angular:application": { |
| 10 | + "testRunner": "karma" |
| 11 | + }, |
| 12 | + "@schematics/angular:library": { |
| 13 | + "testRunner": "karma" |
| 14 | + } |
| 15 | + }, |
5 | 16 | "projects": { |
6 | | - "ngx-toastr": { |
| 17 | + "ngx-toastr-site": { |
7 | 18 | "projectType": "application", |
8 | 19 | "schematics": { |
9 | 20 | "@schematics/angular:component": { |
10 | 21 | "style": "scss" |
11 | | - }, |
12 | | - "@schematics/angular:application": { |
13 | | - "strict": true |
14 | 22 | } |
15 | 23 | }, |
16 | 24 | "root": "", |
|
20 | 28 | "build": { |
21 | 29 | "builder": "@angular/build:application", |
22 | 30 | "options": { |
23 | | - "outputPath": "dist", |
24 | | - "index": "src/index.html", |
25 | 31 | "browser": "src/main.ts", |
26 | 32 | "tsConfig": "tsconfig.app.json", |
27 | | - "assets": ["src/favicon.ico", "src/assets"], |
28 | | - "styles": ["src/styles.scss"], |
29 | | - "polyfills": ["zone.js"] |
| 33 | + "inlineStyleLanguage": "scss", |
| 34 | + "assets": [ |
| 35 | + { |
| 36 | + "glob": "**/*", |
| 37 | + "input": "public" |
| 38 | + } |
| 39 | + ], |
| 40 | + "styles": ["src/styles.scss"] |
30 | 41 | }, |
31 | 42 | "configurations": { |
32 | 43 | "production": { |
| 44 | + "budgets": [ |
| 45 | + { |
| 46 | + "type": "initial", |
| 47 | + "maximumWarning": "500kB", |
| 48 | + "maximumError": "1MB" |
| 49 | + }, |
| 50 | + { |
| 51 | + "type": "anyComponentStyle", |
| 52 | + "maximumWarning": "4kB", |
| 53 | + "maximumError": "8kB" |
| 54 | + } |
| 55 | + ], |
33 | 56 | "outputHashing": "all" |
34 | 57 | }, |
35 | 58 | "development": { |
|
42 | 65 | }, |
43 | 66 | "serve": { |
44 | 67 | "builder": "@angular/build:dev-server", |
45 | | - "options": { |
46 | | - "buildTarget": "ngx-toastr:build" |
47 | | - }, |
48 | 68 | "configurations": { |
49 | 69 | "production": { |
50 | | - "buildTarget": "ngx-toastr:build:production" |
| 70 | + "buildTarget": "ngx-toastr-site:build:production" |
| 71 | + }, |
| 72 | + "development": { |
| 73 | + "buildTarget": "ngx-toastr-site:build:development" |
51 | 74 | } |
52 | | - } |
53 | | - }, |
54 | | - "extract-i18n": { |
55 | | - "builder": "@angular/build:extract-i18n", |
56 | | - "options": { |
57 | | - "buildTarget": "ngx-toastr:build" |
58 | | - } |
| 75 | + }, |
| 76 | + "defaultConfiguration": "development" |
59 | 77 | }, |
60 | 78 | "test": { |
61 | 79 | "builder": "@angular/build:unit-test", |
62 | 80 | "options": { |
63 | | - "tsConfig": "tsconfig.spec.json", |
64 | 81 | "runner": "karma", |
65 | | - "coverage": true, |
66 | | - "ui": false, |
67 | | - "runnerConfig": true |
| 82 | + "runnerConfig": true, |
| 83 | + "coverage": true |
68 | 84 | } |
69 | 85 | }, |
70 | 86 | "lint": { |
|
74 | 90 | } |
75 | 91 | } |
76 | 92 | } |
| 93 | + }, |
| 94 | + "ngx-toastr": { |
| 95 | + "projectType": "library", |
| 96 | + "root": "projects/ngx-toastr", |
| 97 | + "sourceRoot": "projects/ngx-toastr/src", |
| 98 | + "prefix": "lib", |
| 99 | + "architect": { |
| 100 | + "build": { |
| 101 | + "builder": "@angular/build:ng-packagr", |
| 102 | + "configurations": { |
| 103 | + "production": { |
| 104 | + "tsConfig": "projects/ngx-toastr/tsconfig.lib.prod.json" |
| 105 | + }, |
| 106 | + "development": { |
| 107 | + "tsConfig": "projects/ngx-toastr/tsconfig.lib.json" |
| 108 | + } |
| 109 | + }, |
| 110 | + "defaultConfiguration": "production" |
| 111 | + } |
| 112 | + } |
77 | 113 | } |
78 | | - }, |
79 | | - "cli": { |
80 | | - "analytics": false |
81 | 114 | } |
82 | 115 | } |
| 116 | + |
0 commit comments