Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save afifalfiano/21cef32845ac7b1b76c380f9bccab87c to your computer and use it in GitHub Desktop.
Save afifalfiano/21cef32845ac7b1b76c380f9bccab87c to your computer and use it in GitHub Desktop.
Angular.json
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"ngBazel": {
"projectType": "application",
"schematics": {},
"root": "",
"sourceRoot": "src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular/bazel:build",
"options": {
"targetLabel": "//src:prodapp",
"bazelCommand": "build"
},
"configurations": {
"production": {
"targetLabel": "//src:prodapp"
}
}
},
"serve": {
"builder": "@angular/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/bazel:build",
"options": {
"bazelCommand": "test",
"targetLabel": "//src:test"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"tsconfig.app.json",
"tsconfig.spec.json",
"e2e/tsconfig.json"
],
"exclude": [
"**/node_modules/**"
]
}
},
"e2e": {
"builder": "@angular/bazel:build",
"options": {
"bazelCommand": "test",
"targetLabel": "//e2e:devserver_test"
},
"configurations": {
"production": {
"targetLabel": "//e2e:prodserver_test"
}
}
}
}
}
},
"defaultProject": "ngBazel",
"cli": {
"analytics": false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment