|
3 | 3 | "version": 1, |
4 | 4 | "newProjectRoot": "projects", |
5 | 5 | "projects": { |
6 | | - "zingchart-angular": { |
| 6 | + "zing-app": { |
7 | 7 | "projectType": "application", |
8 | 8 | "schematics": {}, |
9 | 9 | "root": "", |
|
16 | 16 | "outputPath": "dist/zingchart-angular-app", |
17 | 17 | "index": "src/index.html", |
18 | 18 | "main": "src/main.ts", |
19 | | - "polyfills": [ |
20 | | - "zone.js" |
21 | | - ], |
| 19 | + "polyfills": ["zone.js"], |
22 | 20 | "tsConfig": "tsconfig.app.json", |
23 | | - "assets": [ |
24 | | - "src/favicon.ico", |
25 | | - "src/assets" |
26 | | - ], |
27 | | - "styles": [ |
28 | | - "src/styles.css" |
29 | | - ], |
| 21 | + "assets": ["src/favicon.ico", "src/assets"], |
| 22 | + "styles": ["src/styles.css"], |
30 | 23 | "scripts": [] |
31 | 24 | }, |
32 | 25 | "configurations": { |
|
58 | 51 | }, |
59 | 52 | "serve": { |
60 | 53 | "builder": "@angular-devkit/build-angular:dev-server", |
| 54 | + "options": { |
| 55 | + "browserTarget": "zing-app:build" |
| 56 | + }, |
61 | 57 | "configurations": { |
62 | 58 | "production": { |
63 | | - "browserTarget": "zingchart-angular:build:production" |
| 59 | + "browserTarget": "zing-app:build:production" |
64 | 60 | }, |
65 | 61 | "development": { |
66 | | - "browserTarget": "zingchart-angular:build:development" |
| 62 | + "browserTarget": "zing-app:build:development" |
67 | 63 | } |
68 | 64 | }, |
69 | 65 | "defaultConfiguration": "development" |
70 | 66 | }, |
71 | 67 | "extract-i18n": { |
72 | 68 | "builder": "@angular-devkit/build-angular:extract-i18n", |
73 | 69 | "options": { |
74 | | - "browserTarget": "zingchart-angular:build" |
| 70 | + "browserTarget": "zing-app:build" |
75 | 71 | } |
76 | 72 | }, |
77 | 73 | "test": { |
78 | 74 | "builder": "@angular-devkit/build-angular:karma", |
79 | 75 | "options": { |
80 | | - "polyfills": [ |
81 | | - "zone.js", |
82 | | - "zone.js/testing" |
83 | | - ], |
| 76 | + "polyfills": ["zone.js", "zone.js/testing"], |
84 | 77 | "tsConfig": "tsconfig.spec.json", |
85 | | - "assets": [ |
86 | | - "src/favicon.ico", |
87 | | - "src/assets" |
88 | | - ], |
89 | | - "styles": [ |
90 | | - "src/styles.css" |
91 | | - ], |
| 78 | + "karmaConfig": "karma.conf.js", |
| 79 | + "assets": ["src/favicon.ico", "src/assets"], |
| 80 | + "styles": ["src/styles.css"], |
92 | 81 | "scripts": [] |
93 | 82 | } |
| 83 | + }, |
| 84 | + "lint": { |
| 85 | + "builder": "@angular-eslint/builder:lint", |
| 86 | + "options": { |
| 87 | + "lintFilePatterns": ["src/**/*.ts", "src/**/*.html"] |
| 88 | + } |
94 | 89 | } |
95 | 90 | } |
96 | 91 | }, |
97 | | - "zingchart-angular-component": { |
| 92 | + "zingchart-angular": { |
98 | 93 | "projectType": "library", |
99 | | - "root": "projects/zingchart-angular-component", |
100 | | - "sourceRoot": "projects/zingchart-angular-component/src", |
| 94 | + "root": "projects/zingchart-angular", |
| 95 | + "sourceRoot": "projects/zingchart-angular/src", |
101 | 96 | "prefix": "lib", |
102 | 97 | "architect": { |
103 | 98 | "build": { |
104 | 99 | "builder": "@angular-devkit/build-angular:ng-packagr", |
105 | 100 | "options": { |
106 | | - "project": "projects/zingchart-angular-component/ng-package.json" |
| 101 | + "project": "projects/zingchart-angular/ng-package.json" |
107 | 102 | }, |
108 | 103 | "configurations": { |
109 | 104 | "production": { |
110 | | - "tsConfig": "projects/zingchart-angular-component/tsconfig.lib.prod.json" |
| 105 | + "tsConfig": "projects/zingchart-angular/tsconfig.lib.prod.json" |
111 | 106 | }, |
112 | 107 | "development": { |
113 | | - "tsConfig": "projects/zingchart-angular-component/tsconfig.lib.json" |
| 108 | + "tsConfig": "projects/zingchart-angular/tsconfig.lib.json" |
114 | 109 | } |
115 | 110 | }, |
116 | 111 | "defaultConfiguration": "production" |
117 | 112 | }, |
118 | 113 | "test": { |
119 | 114 | "builder": "@angular-devkit/build-angular:karma", |
120 | 115 | "options": { |
121 | | - "tsConfig": "projects/zingchart-angular-component/tsconfig.spec.json", |
122 | | - "polyfills": [ |
123 | | - "zone.js", |
124 | | - "zone.js/testing" |
| 116 | + "tsConfig": "projects/zingchart-angular/tsconfig.spec.json", |
| 117 | + "karmaConfig": "projects/zingchart-angular/karma.conf.js", |
| 118 | + "polyfills": ["zone.js", "zone.js/testing"] |
| 119 | + } |
| 120 | + }, |
| 121 | + "lint": { |
| 122 | + "builder": "@angular-eslint/builder:lint", |
| 123 | + "options": { |
| 124 | + "lintFilePatterns": [ |
| 125 | + "projects/zingchart-angular/**/*.ts", |
| 126 | + "projects/zingchart-angular/**/*.html" |
125 | 127 | ] |
126 | 128 | } |
127 | 129 | } |
|
0 commit comments