| 1 | { | = | 1 | { |
| 2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json", | 2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json", | |
| 3 | "version": 1, | 3 | "version": 1, | |
| 4 | "newProjectRoot": "projects", | 4 | "newProjectRoot": "projects", | |
| 5 | "projects": { | 5 | "projects": { | |
| 6 | "angular-starter": { | 6 | "angular-starter": { | |
| 7 | "root": "", | 7 | "root": "", | |
| 8 | "sourceRoot": "src", | 8 | "sourceRoot": "src", | |
| 9 | "projectType": "application", | 9 | "projectType": "application", | |
| 10 | "prefix": "app", | 10 | "prefix": "app", | |
| 11 | "schematics": { | 11 | "schematics": { | |
| -+ | 12 | "@schematics/angular:application": { | ||
| 13 | "strict": true | |||
| 14 | }, | |||
| 12 | "@schematics/angular:component": { | = | 15 | "@schematics/angular:component": { |
| 13 | "styleext": "scss" | 16 | "styleext": "scss" | |
| 14 | } | 17 | } | |
| 15 | }, | 18 | }, | |
| 16 | "architect": { | 19 | "architect": { | |
| 17 | "build": { | 20 | "build": { | |
| 18 | "builder": "@angular-devkit/build-angular:browser", | 21 | "builder": "@angular-devkit/build-angular:browser", | |
| 19 | "options": { | 22 | "options": { | |
| 20 | "outputPath": "dist/angular-starter", | 23 | "outputPath": "dist/angular-starter", | |
| 21 | "index": "src/index.html", | 24 | "index": "src/index.html", | |
| 22 | "main": "src/main.ts", | 25 | "main": "src/main.ts", | |
| 23 | "polyfills": "src/polyfills.ts", | 26 | "polyfills": "src/polyfills.ts", | |
| 24 | "tsConfig": "tsconfig.app.json", | 27 | "tsConfig": "tsconfig.app.json", | |
| 25 | "aot": true, | 28 | "aot": true, | |
| 26 | "assets": [ | 29 | "assets": [ | |
| 27 | "src/favicon.ico", | 30 | "src/favicon.ico", | |
| 28 | "src/assets" | 31 | "src/assets" | |
| 29 | ], | 32 | ], | |
| 30 | "styles": [ | 33 | "styles": [ | |
| 31 | "src/styles.scss", | 34 | "src/styles.scss", | |
| 32 | 35 | |||
| 33 | "src/vendor/styles/bootstrap.scss", | 36 | "src/vendor/styles/bootstrap.scss", | |
| 34 | "src/vendor/styles/appwork.scss", | 37 | "src/vendor/styles/appwork.scss", | |
| 35 | "src/vendor/styles/theme-corporate.scss", | 38 | "src/vendor/styles/theme-corporate.scss", | |
| 36 | "src/vendor/styles/colors.scss", | 39 | "src/vendor/styles/colors.scss", | |
| 37 | "src/vendor/styles/uikit.scss" | 40 | "src/vendor/styles/uikit.scss" | |
| 38 | ], | 41 | ], | |
| 39 | "scripts": [] | <> | 42 | "scripts": [], |
| 43 | "allowedCommonJsDependencies": [ | |||
| 44 | "lodash", | |||
| 45 | "hammerjs", | |||
| 46 | "numeral", | |||
| 47 | "angular2-text-mask", | |||
| 48 | "chartist", | |||
| 49 | "chart.js", | |||
| 50 | "nouislider" | |||
| 51 | ] | |||
| 40 | }, | = | 52 | }, |
| 41 | "configurations": { | 53 | "configurations": { | |
| 42 | "production": { | 54 | "production": { | |
| 43 | "fileReplacements": [{ | 55 | "fileReplacements": [{ | |
| 44 | "replace": "src/environments/environment.ts", | 56 | "replace": "src/environments/environment.ts", | |
| 45 | "with": "src/environments/environment.prod.ts" | 57 | "with": "src/environments/environment.prod.ts" | |
| 46 | }], | 58 | }], | |
| 47 | "optimization": true, | 59 | "optimization": true, | |
| 48 | "outputHashing": "all", | 60 | "outputHashing": "all", | |
| 49 | "sourceMap": false, | 61 | "sourceMap": false, | |
| 50 | "extractCss": true, | 62 | "extractCss": true, | |
| 51 | "namedChunks": false, | 63 | "namedChunks": false, | |
| 52 | "extractLicenses": true, | 64 | "extractLicenses": true, | |
| 53 | "vendorChunk": false, | 65 | "vendorChunk": false, | |
| 54 | "buildOptimizer": true, | 66 | "buildOptimizer": true, | |
| 55 | "budgets": [{ | 67 | "budgets": [{ | |
| 56 | "type": "initial", | 68 | "type": "initial", | |
| 57 | "maximumWarning": "2mb", | 69 | "maximumWarning": "2mb", | |
| 58 | "maximumError": "5mb" | 70 | "maximumError": "5mb" | |
| 59 | }, | 71 | }, | |
| 60 | { | 72 | { | |
| 61 | "type": "anyComponentStyle", | 73 | "type": "anyComponentStyle", | |
| 62 | "maximumWarning": "50kb", | 74 | "maximumWarning": "50kb", | |
| 63 | "maximumError": "100kb" | 75 | "maximumError": "100kb" | |
| 64 | } | 76 | } | |
| 65 | ] | 77 | ] | |
| 66 | }, | 78 | }, | |
| 67 | "serve": { | 79 | "serve": { | |
| 68 | "extractCss": true, | 80 | "extractCss": true, | |
| 69 | "namedChunks": true, | 81 | "namedChunks": true, | |
| 70 | "vendorChunk": true, | 82 | "vendorChunk": true, | |
| 71 | "commonChunk": true, | 83 | "commonChunk": true, | |
| 72 | "verbose": false | 84 | "verbose": false | |
| 73 | } | 85 | } | |
| 74 | } | 86 | } | |
| 75 | }, | 87 | }, | |
| 76 | "serve": { | 88 | "serve": { | |
| 77 | "builder": "@angular-devkit/build-angular:dev-server", | 89 | "builder": "@angular-devkit/build-angular:dev-server", | |
| 78 | "options": { | 90 | "options": { | |
| 79 | "browserTarget": "angular-starter:build:serve" | 91 | "browserTarget": "angular-starter:build:serve" | |
| 80 | }, | 92 | }, | |
| 81 | "configurations": { | 93 | "configurations": { | |
| 82 | "production": { | 94 | "production": { | |
| 83 | "browserTarget": "angular-starter:build:production" | 95 | "browserTarget": "angular-starter:build:production" | |
| 84 | } | 96 | } | |
| 85 | } | 97 | } | |
| 86 | }, | 98 | }, | |
| 87 | "extract-i18n": { | 99 | "extract-i18n": { | |
| 88 | "builder": "@angular-devkit/build-angular:extract-i18n", | 100 | "builder": "@angular-devkit/build-angular:extract-i18n", | |
| 89 | "options": { | 101 | "options": { | |
| 90 | "browserTarget": "angular-starter:build" | 102 | "browserTarget": "angular-starter:build" | |
| 91 | } | 103 | } | |
| 92 | }, | 104 | }, | |
| 93 | "test": { | 105 | "test": { | |
| 94 | "builder": "@angular-devkit/build-angular:karma", | 106 | "builder": "@angular-devkit/build-angular:karma", | |
| 95 | "options": { | 107 | "options": { | |
| 96 | "main": "src/test.ts", | 108 | "main": "src/test.ts", | |
| 97 | "polyfills": "src/polyfills.ts", | 109 | "polyfills": "src/polyfills.ts", | |
| 98 | "tsConfig": "tsconfig.spec.json", | 110 | "tsConfig": "tsconfig.spec.json", | |
| 99 | "karmaConfig": "karma.conf.js", | 111 | "karmaConfig": "karma.conf.js", | |
| 100 | "styles": [ | 112 | "styles": [ | |
| 101 | "src/styles.scss" | 113 | "src/styles.scss" | |
| 102 | ], | 114 | ], | |
| 103 | "scripts": [], | 115 | "scripts": [], | |
| 104 | "assets": [ | 116 | "assets": [ | |
| 105 | "src/favicon.ico", | 117 | "src/favicon.ico", | |
| 106 | "src/assets" | 118 | "src/assets" | |
| 107 | ] | 119 | ] | |
| 108 | } | 120 | } | |
| 109 | }, | 121 | }, | |
| 110 | "lint": { | 122 | "lint": { | |
| 111 | "builder": "@angular-devkit/build-angular:tslint", | 123 | "builder": "@angular-devkit/build-angular:tslint", | |
| 112 | "options": { | 124 | "options": { | |
| 113 | "tsConfig": [ | 125 | "tsConfig": [ | |
| 114 | "tsconfig.app.json", | 126 | "tsconfig.app.json", | |
| 115 | "tsconfig.spec.json", | 127 | "tsconfig.spec.json", | |
| 116 | "e2e/tsconfig.json" | 128 | "e2e/tsconfig.json" | |
| 117 | ], | 129 | ], | |
| 118 | "exclude": [ | 130 | "exclude": [ | |
| 119 | "**/node_modules/**" | 131 | "**/node_modules/**" | |
| 120 | ] | 132 | ] | |
| 121 | } | 133 | } | |
| 122 | }, | 134 | }, | |
| 123 | "e2e": { | 135 | "e2e": { | |
| 124 | "builder": "@angular-devkit/build-angular:protractor", | 136 | "builder": "@angular-devkit/build-angular:protractor", | |
| 125 | "options": { | 137 | "options": { | |
| 126 | "protractorConfig": "e2e/protractor.conf.js", | 138 | "protractorConfig": "e2e/protractor.conf.js", | |
| 127 | "devServerTarget": "angular-starter:serve" | 139 | "devServerTarget": "angular-starter:serve" | |
| 128 | }, | 140 | }, | |
| 129 | "configurations": { | 141 | "configurations": { | |
| 130 | "production": { | 142 | "production": { | |
| 131 | "devServerTarget": "angular-starter:serve:production" | 143 | "devServerTarget": "angular-starter:serve:production" | |
| 132 | } | 144 | } | |
| 133 | } | 145 | } | |
| 134 | } | 146 | } | |
| 135 | } | 147 | } | |
| 136 | } | 148 | } | |
| 137 | }, | 149 | }, | |
| 138 | "defaultProject": "angular-demo", | 150 | "defaultProject": "angular-demo", | |
| 139 | "cli": { | 151 | "cli": { | |
| 140 | "analytics": false | 152 | "analytics": false | |
| 141 | } | 153 | } | |
| 142 | } | 154 | } |