Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 1 | { |
| 2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json", |
| 3 | "version": 1, |
| 4 | "newProjectRoot": "projects", |
| 5 | "projects": { |
| 6 | "onos": { |
| 7 | "root": "", |
| 8 | "sourceRoot": "src/main/webapp", |
| 9 | "projectType": "application", |
| 10 | "architect": { |
| 11 | "build": { |
| 12 | "builder": "@angular-devkit/build-angular:browser", |
| 13 | "options": { |
| 14 | "outputPath": "src/main/webapp/dist", |
| 15 | "index": "src/main/webapp/index.html", |
| 16 | "main": "src/main/webapp/onos.ts", |
| 17 | "tsConfig": "src/main/webapp/tsconfig.app.json", |
| 18 | "polyfills": "src/main/webapp/polyfills.ts", |
| 19 | "assets": [ |
Sean Condon | 95fb574 | 2019-04-02 12:16:55 +0100 | [diff] [blame] | 20 | "src/main/webapp/data" |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 21 | ], |
Sean Condon | 55c3053 | 2018-10-29 12:26:57 +0000 | [diff] [blame] | 22 | "styles": ["src/main/webapp/onos.global.css"], |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 23 | "scripts": [] |
| 24 | }, |
| 25 | "configurations": { |
| 26 | "production": { |
| 27 | "optimization": true, |
| 28 | "outputHashing": "all", |
| 29 | "sourceMap": false, |
| 30 | "extractCss": true, |
| 31 | "namedChunks": false, |
| 32 | "aot": true, |
| 33 | "extractLicenses": true, |
| 34 | "vendorChunk": false, |
| 35 | "buildOptimizer": true, |
| 36 | "fileReplacements": [ |
| 37 | { |
| 38 | "replace": "src/main/webapp/environments/environment.ts", |
| 39 | "with": "src/main/webapp/environments/environment.prod.ts" |
| 40 | } |
| 41 | ] |
| 42 | } |
| 43 | } |
| 44 | }, |
| 45 | "serve": { |
| 46 | "builder": "@angular-devkit/build-angular:dev-server", |
| 47 | "options": { |
| 48 | "browserTarget": "onos:build" |
| 49 | }, |
| 50 | "configurations": { |
| 51 | "production": { |
| 52 | "browserTarget": "onos:build:production" |
| 53 | } |
| 54 | } |
| 55 | }, |
| 56 | "extract-i18n": { |
| 57 | "builder": "@angular-devkit/build-angular:extract-i18n", |
| 58 | "options": { |
| 59 | "browserTarget": "onos:build" |
| 60 | } |
| 61 | }, |
| 62 | "test": { |
| 63 | "builder": "@angular-devkit/build-angular:karma", |
| 64 | "options": { |
Sean Condon | 28ecc5f | 2018-06-25 12:50:16 +0100 | [diff] [blame] | 65 | "main": "src/main/webapp/app/test.ts", |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 66 | "karmaConfig": "./karma.conf.js", |
| 67 | "polyfills": "src/main/webapp/polyfills.ts", |
| 68 | "tsConfig": "src/main/webapp/tsconfig.spec.json", |
| 69 | "scripts": [], |
| 70 | "styles": [ |
Sean Condon | fd6d11b | 2018-06-02 20:29:49 +0100 | [diff] [blame] | 71 | "src/main/webapp/app/onos.theme.css" |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 72 | ], |
| 73 | "assets": [ |
Sean Condon | 95fb574 | 2019-04-02 12:16:55 +0100 | [diff] [blame] | 74 | "src/main/webapp/data" |
Sean Condon | 83fc39f | 2018-04-19 18:56:13 +0100 | [diff] [blame] | 75 | ] |
| 76 | } |
| 77 | }, |
| 78 | "lint": { |
| 79 | "builder": "@angular-devkit/build-angular:tslint", |
| 80 | "options": { |
| 81 | "tsConfig": [ |
| 82 | "src/main/webapp/tsconfig.app.json", |
| 83 | "src/main/webapp/tsconfig.spec.json" |
| 84 | ], |
| 85 | "exclude": [ |
| 86 | "**/node_modules/**" |
| 87 | ] |
| 88 | } |
| 89 | } |
| 90 | } |
| 91 | }, |
| 92 | "onos-e2e": { |
| 93 | "root": "", |
| 94 | "sourceRoot": "", |
| 95 | "projectType": "application", |
| 96 | "architect": { |
| 97 | "e2e": { |
| 98 | "builder": "@angular-devkit/build-angular:protractor", |
| 99 | "options": { |
| 100 | "protractorConfig": "./protractor.conf.js", |
| 101 | "devServerTarget": "onos:serve" |
| 102 | } |
| 103 | }, |
| 104 | "lint": { |
| 105 | "builder": "@angular-devkit/build-angular:tslint", |
| 106 | "options": { |
| 107 | "tsConfig": [ |
| 108 | "e2e/tsconfig.e2e.json" |
| 109 | ], |
| 110 | "exclude": [ |
| 111 | "**/node_modules/**" |
| 112 | ] |
| 113 | } |
| 114 | } |
| 115 | } |
| 116 | } |
| 117 | }, |
| 118 | "defaultProject": "onos", |
| 119 | "schematics": { |
| 120 | "@schematics/angular:component": { |
| 121 | "prefix": "onos", |
| 122 | "styleext": "css" |
| 123 | }, |
| 124 | "@schematics/angular:directive": { |
| 125 | "prefix": "onos" |
| 126 | } |
| 127 | } |
| 128 | } |