| { | |
| "$schema": "./node_modules/@angular/cli/lib/config/schema.json", | |
| "version": 1, | |
| "newProjectRoot": "projects", | |
| "projects": { | |
| "angular-bazel-example": { | |
| "root": "", | |
| "sourceRoot": "src", | |
| "projectType": "application", | |
| "prefix": "app", | |
| "schematics": { | |
| "@schematics/angular:component": { | |
| "style": "scss" | |
| } | |
| }, | |
| "architect": { | |
| "build": { | |
| "builder": "@angular-builders/bazel:build", | |
| "options": { | |
| "targetLabel": "//src:prodapp", | |
| "bazelCommand": "build" | |
| } | |
| }, | |
| "serve": { | |
| "builder": "@angular-builders/bazel:build", | |
| "options": { | |
| "targetLabel": "//src:devserver", | |
| "bazelCommand": "run", | |
| "watch": true | |
| }, | |
| "configurations": { | |
| "production": { | |
| "targetLabel": "//src:prodserver" | |
| } | |
| } | |
| }, | |
| "extract-i18n": { | |
| "builder": "@angular-devkit/build-angular:extract-i18n", | |
| "options": { | |
| "browserTarget": "ngbazel:build" | |
| } | |
| }, | |
| "test": { | |
| "builder": "@angular-builders/bazel:build", | |
| "options": { | |
| "bazelCommand": "test", | |
| "targetLabel": "//src/app/..." | |
| } | |
| }, | |
| "lint": { | |
| "builder": "@angular-devkit/build-angular:tslint", | |
| "options": { | |
| "tsConfig": [ | |
| "src/tsconfig.json", | |
| "src/tsconfig-test.json" | |
| ], | |
| "exclude": [ | |
| "**/node_modules/**" | |
| ] | |
| } | |
| } | |
| } | |
| }, | |
| "ngbazel-e2e": { | |
| "root": "e2e/", | |
| "projectType": "application", | |
| "prefix": "", | |
| "architect": { | |
| "e2e": { | |
| "builder": "@angular-builders/bazel:build", | |
| "options": { | |
| "bazelCommand": "test", | |
| "targetLabel": "//e2e:devserver_test" | |
| }, | |
| "configurations": { | |
| "production": { | |
| "targetLabel": "//e2e:prodserver_test" | |
| } | |
| } | |
| }, | |
| "lint": { | |
| "builder": "@angular-devkit/build-angular:tslint", | |
| "options": { | |
| "tsConfig": "e2e/tsconfig.e2e.json", | |
| "exclude": [ | |
| "**/node_modules/**" | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "defaultProject": "ngbazel" | |
| } |