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