elinuxhenrik | f507d92 | 2020-03-19 14:52:24 +0100 | [diff] [blame] | 1 | { |
| 2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json", |
| 3 | "version": 1, |
| 4 | "newProjectRoot": "projects", |
| 5 | "projects": { |
| 6 | "controlpanelApp": { |
| 7 | "root": "", |
| 8 | "sourceRoot": "src", |
| 9 | "projectType": "application", |
| 10 | "prefix": "rd", |
| 11 | "schematics": { |
| 12 | "@schematics/angular:component": { |
elinuxhenrik | ad70d41 | 2021-02-15 14:38:02 +0100 | [diff] [blame] | 13 | "style": "scss" |
| 14 | } |
| 15 | }, |
elinuxhenrik | f507d92 | 2020-03-19 14:52:24 +0100 | [diff] [blame] | 16 | "architect": { |
| 17 | "build": { |
| 18 | "builder": "@angular-devkit/build-angular:browser", |
| 19 | "options": { |
elinuxhenrik | ad70d41 | 2021-02-15 14:38:02 +0100 | [diff] [blame] | 20 | "aot": true, |
elinuxhenrik | f507d92 | 2020-03-19 14:52:24 +0100 | [diff] [blame] | 21 | "outputPath": "dist/controlpanelApp", |
| 22 | "index": "src/index.html", |
| 23 | "main": "src/main.ts", |
| 24 | "polyfills": "src/polyfills.ts", |
| 25 | "tsConfig": "src/tsconfig.app.json", |
| 26 | "assets": [ |
| 27 | "src/favicon.ico", |
| 28 | "src/assets" |
| 29 | ], |
| 30 | "styles": [ |
| 31 | "node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss", |
| 32 | "node_modules/@fortawesome/fontawesome-free/scss/solid.scss", |
| 33 | "node_modules/@fortawesome/fontawesome-free/scss/regular.scss", |
| 34 | "node_modules/@fortawesome/fontawesome-free/scss/brands.scss", |
elinuxhenrik | f507d92 | 2020-03-19 14:52:24 +0100 | [diff] [blame] | 35 | "src/styles.scss", |
| 36 | "node_modules/ngx-toastr/toastr.css" |
| 37 | ], |
| 38 | "scripts": [ |
elinuxhenrik | ad70d41 | 2021-02-15 14:38:02 +0100 | [diff] [blame] | 39 | "node_modules/chart.js/dist/Chart.js", |
| 40 | "node_modules/hammerjs/hammer.min.js" |
elinuxhenrik | f507d92 | 2020-03-19 14:52:24 +0100 | [diff] [blame] | 41 | ] |
| 42 | }, |
| 43 | "configurations": { |
| 44 | "production": { |
| 45 | "fileReplacements": [ |
| 46 | { |
| 47 | "replace": "src/environments/environment.ts", |
| 48 | "with": "src/environments/environment.prod.ts" |
| 49 | } |
| 50 | ], |
| 51 | "optimization": true, |
| 52 | "outputHashing": "all", |
| 53 | "sourceMap": false, |
| 54 | "extractCss": true, |
| 55 | "namedChunks": false, |
| 56 | "aot": true, |
| 57 | "extractLicenses": true, |
| 58 | "vendorChunk": false, |
| 59 | "buildOptimizer": true, |
| 60 | "budgets": [ |
| 61 | { |
| 62 | "type": "initial", |
| 63 | "maximumWarning": "2mb", |
| 64 | "maximumError": "5mb" |
elinuxhenrik | ad70d41 | 2021-02-15 14:38:02 +0100 | [diff] [blame] | 65 | }, |
| 66 | { |
| 67 | "type": "anyComponentStyle", |
| 68 | "maximumWarning": "6kb" |
elinuxhenrik | f507d92 | 2020-03-19 14:52:24 +0100 | [diff] [blame] | 69 | } |
| 70 | ] |
Lathish | b339e7a | 2020-12-08 21:55:51 +0000 | [diff] [blame] | 71 | }, |
| 72 | "mock": { |
elinuxhenrik | ad70d41 | 2021-02-15 14:38:02 +0100 | [diff] [blame] | 73 | "budgets": [ |
| 74 | { |
| 75 | "type": "anyComponentStyle", |
| 76 | "maximumWarning": "6kb" |
| 77 | } |
| 78 | ], |
Lathish | b339e7a | 2020-12-08 21:55:51 +0000 | [diff] [blame] | 79 | "fileReplacements": [ |
| 80 | { |
| 81 | "replace": "src/environments/environment.ts", |
| 82 | "with": "src/environments/environment.mock.ts" |
| 83 | } |
| 84 | ] |
elinuxhenrik | f507d92 | 2020-03-19 14:52:24 +0100 | [diff] [blame] | 85 | } |
| 86 | } |
| 87 | }, |
| 88 | "serve": { |
| 89 | "builder": "@angular-devkit/build-angular:dev-server", |
| 90 | "options": { |
| 91 | "browserTarget": "controlpanelApp:build" |
| 92 | }, |
| 93 | "configurations": { |
| 94 | "production": { |
| 95 | "browserTarget": "controlpanelApp:build:production" |
Lathish | b339e7a | 2020-12-08 21:55:51 +0000 | [diff] [blame] | 96 | }, |
| 97 | "mock": { |
| 98 | "browserTarget": "controlpanelApp:build:mock" |
elinuxhenrik | f507d92 | 2020-03-19 14:52:24 +0100 | [diff] [blame] | 99 | } |
| 100 | } |
| 101 | }, |
| 102 | "extract-i18n": { |
| 103 | "builder": "@angular-devkit/build-angular:extract-i18n", |
| 104 | "options": { |
| 105 | "browserTarget": "controlpanelApp:build" |
| 106 | } |
| 107 | }, |
| 108 | "test": { |
| 109 | "builder": "@angular-devkit/build-angular:karma", |
| 110 | "options": { |
| 111 | "main": "src/test.ts", |
| 112 | "polyfills": "src/polyfills.ts", |
| 113 | "tsConfig": "src/tsconfig.spec.json", |
| 114 | "karmaConfig": "src/karma.conf.js", |
| 115 | "styles": [ |
| 116 | "src/styles.css" |
| 117 | ], |
| 118 | "scripts": [], |
| 119 | "assets": [ |
| 120 | "src/favicon.ico", |
| 121 | "src/assets" |
| 122 | ] |
| 123 | } |
| 124 | }, |
| 125 | "lint": { |
| 126 | "builder": "@angular-devkit/build-angular:tslint", |
| 127 | "options": { |
| 128 | "tsConfig": [ |
| 129 | "src/tsconfig.app.json", |
| 130 | "src/tsconfig.spec.json" |
| 131 | ], |
| 132 | "exclude": [ |
| 133 | "**/node_modules/**" |
| 134 | ] |
| 135 | } |
| 136 | } |
| 137 | } |
| 138 | }, |
| 139 | "controlpanelApp-e2e": { |
| 140 | "root": "e2e/", |
| 141 | "projectType": "application", |
| 142 | "prefix": "", |
| 143 | "architect": { |
| 144 | "e2e": { |
| 145 | "builder": "@angular-devkit/build-angular:protractor", |
| 146 | "options": { |
| 147 | "protractorConfig": "e2e/protractor.conf.js", |
| 148 | "devServerTarget": "controlpanelApp:serve" |
| 149 | }, |
| 150 | "configurations": { |
| 151 | "production": { |
| 152 | "devServerTarget": "controlpanelApp:serve:production" |
| 153 | } |
| 154 | } |
| 155 | }, |
| 156 | "lint": { |
| 157 | "builder": "@angular-devkit/build-angular:tslint", |
| 158 | "options": { |
| 159 | "tsConfig": "e2e/tsconfig.e2e.json", |
| 160 | "exclude": [ |
| 161 | "**/node_modules/**" |
| 162 | ] |
| 163 | } |
| 164 | } |
| 165 | } |
| 166 | } |
| 167 | }, |
ecaiyanlinux | ac52ed8 | 2021-02-23 13:48:13 +0100 | [diff] [blame] | 168 | "defaultProject": "controlpanelApp", |
| 169 | "cli": { |
| 170 | "analytics": false |
| 171 | } |
elinuxhenrik | ad70d41 | 2021-02-15 14:38:02 +0100 | [diff] [blame] | 172 | } |