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