|
1 | 1 | { |
2 | 2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json", |
3 | 3 | "version": 1, |
4 | | - "newProjectRoot": "projects", |
| 4 | + "newProjectRoot": "library", |
5 | 5 | "projects": { |
6 | | - "angular-admin-lte": { |
| 6 | + "angular-admin-lte-demo": { |
7 | 7 | "root": "", |
8 | 8 | "sourceRoot": "src", |
9 | 9 | "projectType": "application", |
| 10 | + "prefix": "app", |
| 11 | + "schematics": {}, |
10 | 12 | "architect": { |
11 | 13 | "build": { |
12 | 14 | "builder": "@angular-devkit/build-angular:browser", |
13 | 15 | "options": { |
14 | | - "outputPath": "demo/dist", |
15 | | - "index": "demo/src/index.html", |
16 | | - "main": "demo/src/main.ts", |
17 | | - "tsConfig": "demo/src/tsconfig.app.json", |
18 | | - "polyfills": "demo/src/polyfills.ts", |
| 16 | + "outputPath": "dist/angular-admin-lte-demo", |
| 17 | + "index": "src/index.html", |
| 18 | + "main": "src/main.ts", |
| 19 | + "polyfills": "src/polyfills.ts", |
| 20 | + "tsConfig": "src/tsconfig.app.json", |
19 | 21 | "assets": [ |
20 | | - { "glob": "**/*", "input": "demo/src/assets/", "output": "/assets/" }, |
21 | | - { "glob": "favicon.ico", "input": "demo/src", "output": "/" }, |
| 22 | + "src/favicon.ico", |
| 23 | + "src/assets" |
22 | 24 | ], |
23 | 25 | "styles": [ |
24 | | - "node_modules/bootstrap/dist/css/bootstrap.css", |
25 | | - "node_modules/font-awesome/css/font-awesome.css", |
26 | | - "node_modules/ionicons/css/ionicons.css", |
27 | | - "node_modules/morris.js/morris.css", |
28 | | - "node_modules/prismjs/themes/prism-tomorrow.css", |
29 | | - "node_modules/admin-lte/dist/css/AdminLTE.css", |
30 | | - "node_modules/admin-lte/dist/css/skins/_all-skins.css", |
31 | | - "demo/src/styles.css" |
| 26 | + "src/styles.css" |
32 | 27 | ], |
33 | | - "scripts": [ |
34 | | - "node_modules/prismjs/prism.js", |
35 | | - "node_modules/prismjs/components/prism-typescript.js" |
36 | | - ] |
| 28 | + "scripts": [] |
37 | 29 | }, |
38 | 30 | "configurations": { |
39 | 31 | "production": { |
| 32 | + "fileReplacements": [ |
| 33 | + { |
| 34 | + "replace": "src/environments/environment.ts", |
| 35 | + "with": "src/environments/environment.prod.ts" |
| 36 | + } |
| 37 | + ], |
40 | 38 | "optimization": true, |
41 | 39 | "outputHashing": "all", |
42 | 40 | "sourceMap": false, |
|
45 | 43 | "aot": true, |
46 | 44 | "extractLicenses": true, |
47 | 45 | "vendorChunk": false, |
48 | | - "buildOptimizer": true, |
49 | | - "fileReplacements": [ |
50 | | - { |
51 | | - "replace": "demo/src/environments/environment.ts", |
52 | | - "with": "demo/src/environments/environment.prod.ts" |
53 | | - } |
54 | | - ] |
| 46 | + "buildOptimizer": true |
55 | 47 | } |
56 | 48 | } |
57 | 49 | }, |
58 | 50 | "serve": { |
59 | 51 | "builder": "@angular-devkit/build-angular:dev-server", |
60 | 52 | "options": { |
61 | | - "browserTarget": "angular-admin-lte:build" |
| 53 | + "browserTarget": "angular-admin-lte-demo:build" |
62 | 54 | }, |
63 | 55 | "configurations": { |
64 | 56 | "production": { |
65 | | - "browserTarget": "angular-admin-lte:build:production" |
| 57 | + "browserTarget": "angular-admin-lte-demo:build:production" |
66 | 58 | } |
67 | 59 | } |
68 | 60 | }, |
69 | 61 | "extract-i18n": { |
70 | 62 | "builder": "@angular-devkit/build-angular:extract-i18n", |
71 | 63 | "options": { |
72 | | - "browserTarget": "angular-admin-lte:build" |
| 64 | + "browserTarget": "angular-admin-lte-demo:build" |
73 | 65 | } |
74 | 66 | }, |
75 | 67 | "test": { |
76 | 68 | "builder": "@angular-devkit/build-angular:karma", |
77 | 69 | "options": { |
78 | | - "main": "demo/src/test.ts", |
79 | | - "karmaConfig": "./karma.conf.js", |
80 | | - "polyfills": "demo/src/polyfills.ts", |
81 | | - "tsConfig": "demo/src/tsconfig.spec.json", |
82 | | - "scripts": [ |
83 | | - "node_modules/prismjs/prism.js", |
84 | | - "node_modules/prismjs/components/prism-typescript.js" |
85 | | - ], |
| 70 | + "main": "src/test.ts", |
| 71 | + "polyfills": "src/polyfills.ts", |
| 72 | + "tsConfig": "src/tsconfig.spec.json", |
| 73 | + "karmaConfig": "src/karma.conf.js", |
86 | 74 | "styles": [ |
87 | | - "node_modules/bootstrap/dist/css/bootstrap.css", |
88 | | - "node_modules/font-awesome/css/font-awesome.css", |
89 | | - "node_modules/ionicons/css/ionicons.css", |
90 | | - "node_modules/morris.js/morris.css", |
91 | | - "node_modules/prismjs/themes/prism-tomorrow.css", |
92 | | - "node_modules/admin-lte/dist/css/AdminLTE.css", |
93 | | - "node_modules/admin-lte/dist/css/skins/_all-skins.css", |
94 | | - "demo/src/styles.css" |
| 75 | + "styles.css" |
95 | 76 | ], |
| 77 | + "scripts": [], |
96 | 78 | "assets": [ |
97 | | - "demo/src/assets", |
98 | | - "demo/src/favicon.ico" |
| 79 | + "src/favicon.ico", |
| 80 | + "src/assets" |
99 | 81 | ] |
100 | 82 | } |
101 | 83 | }, |
102 | 84 | "lint": { |
103 | 85 | "builder": "@angular-devkit/build-angular:tslint", |
104 | 86 | "options": { |
105 | 87 | "tsConfig": [ |
106 | | - "demo/src/tsconfig.app.json", |
107 | | - "demo/src/tsconfig.spec.json" |
| 88 | + "src/tsconfig.app.json", |
| 89 | + "src/tsconfig.spec.json" |
108 | 90 | ], |
109 | 91 | "exclude": [ |
110 | 92 | "**/node_modules/**" |
|
113 | 95 | } |
114 | 96 | } |
115 | 97 | }, |
116 | | - "angular-admin-lte-e2e": { |
117 | | - "root": "", |
118 | | - "sourceRoot": "", |
| 98 | + "angular-admin-lte-demo-e2e": { |
| 99 | + "root": "e2e/", |
119 | 100 | "projectType": "application", |
120 | 101 | "architect": { |
121 | 102 | "e2e": { |
122 | 103 | "builder": "@angular-devkit/build-angular:protractor", |
123 | 104 | "options": { |
124 | | - "protractorConfig": "./protractor.conf.js", |
125 | | - "devServerTarget": "angular-admin-lte:serve" |
| 105 | + "protractorConfig": "e2e/protractor.conf.js", |
| 106 | + "devServerTarget": "angular-admin-lte-demo:serve" |
| 107 | + } |
| 108 | + }, |
| 109 | + "lint": { |
| 110 | + "builder": "@angular-devkit/build-angular:tslint", |
| 111 | + "options": { |
| 112 | + "tsConfig": "e2e/tsconfig.e2e.json", |
| 113 | + "exclude": [ |
| 114 | + "**/node_modules/**" |
| 115 | + ] |
| 116 | + } |
| 117 | + } |
| 118 | + } |
| 119 | + }, |
| 120 | + "angular-admin-lte": { |
| 121 | + "root": "library/angular-admin-lte", |
| 122 | + "sourceRoot": "library/angular-admin-lte/src", |
| 123 | + "projectType": "library", |
| 124 | + "prefix": "lib", |
| 125 | + "architect": { |
| 126 | + "build": { |
| 127 | + "builder": "@angular-devkit/build-ng-packagr:build", |
| 128 | + "options": { |
| 129 | + "tsConfig": "library/angular-admin-lte/tsconfig.lib.json", |
| 130 | + "project": "library/angular-admin-lte/ng-package.json" |
| 131 | + }, |
| 132 | + "configurations": { |
| 133 | + "production": { |
| 134 | + "project": "library/angular-admin-lte/ng-package.prod.json" |
| 135 | + } |
| 136 | + } |
| 137 | + }, |
| 138 | + "test": { |
| 139 | + "builder": "@angular-devkit/build-angular:karma", |
| 140 | + "options": { |
| 141 | + "main": "library/angular-admin-lte/src/test.ts", |
| 142 | + "tsConfig": "library/angular-admin-lte/tsconfig.spec.json", |
| 143 | + "karmaConfig": "library/angular-admin-lte/karma.conf.js" |
126 | 144 | } |
127 | 145 | }, |
128 | 146 | "lint": { |
129 | 147 | "builder": "@angular-devkit/build-angular:tslint", |
130 | 148 | "options": { |
131 | 149 | "tsConfig": [ |
132 | | - "e2e/tsconfig.e2e.json" |
| 150 | + "library/angular-admin-lte/tsconfig.lib.json", |
| 151 | + "library/angular-admin-lte/tsconfig.spec.json" |
133 | 152 | ], |
134 | 153 | "exclude": [ |
135 | 154 | "**/node_modules/**" |
|
139 | 158 | } |
140 | 159 | } |
141 | 160 | }, |
142 | | - "defaultProject": "angular-admin-lte", |
143 | | - "schematics": { |
144 | | - "@schematics/angular:component": { |
145 | | - "prefix": "app", |
146 | | - "styleext": "css" |
147 | | - }, |
148 | | - "@schematics/angular:directive": { |
149 | | - "prefix": "app" |
150 | | - } |
151 | | - } |
| 161 | + "defaultProject": "angular-admin-lte-demo" |
152 | 162 | } |
0 commit comments