mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
In Bazel, the `CI` environment variable is not set due to its hermetic nature. As a result, caching is enabled by default, which includes Vite pre-bundling. This is unnecessary in CI environments. In some cases, this leads to errors during CI runs when the Vite build is closed or canceled prematurely, resulting in the following errors: ``` Error: R] The build was canceled Error: R] Terminating worker thread [plugin angular-vite-optimize-deps] ``` PR Close #57863
131 lines
3.6 KiB
JSON
131 lines
3.6 KiB
JSON
{
|
|
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
"version": 1,
|
|
"newProjectRoot": "projects",
|
|
"projects": {
|
|
"forms": {
|
|
"projectType": "application",
|
|
"schematics": {},
|
|
"root": "",
|
|
"sourceRoot": "src",
|
|
"prefix": "app",
|
|
"architect": {
|
|
"build": {
|
|
"builder": "@angular/build:application",
|
|
"options": {
|
|
"outputHashing": "none",
|
|
"outputPath": {
|
|
"base": "dist",
|
|
"browser": ""
|
|
},
|
|
"index": "src/index.html",
|
|
"polyfills": [
|
|
"zone.js"
|
|
],
|
|
"tsConfig": "tsconfig.app.json",
|
|
"aot": true,
|
|
"assets": ["src/favicon.ico", "src/assets"],
|
|
"styles": ["src/styles.css"],
|
|
"scripts": [],
|
|
"optimization": false,
|
|
"progress": false,
|
|
"browser": "src/main.ts"
|
|
},
|
|
"configurations": {
|
|
"production": {
|
|
"optimization": true,
|
|
"outputHashing": "none",
|
|
"sourceMap": false,
|
|
"namedChunks": false,
|
|
"extractLicenses": true,
|
|
"budgets": [
|
|
{
|
|
"type": "initial",
|
|
"maximumWarning": "2mb",
|
|
"maximumError": "5mb"
|
|
},
|
|
{
|
|
"type": "anyComponentStyle",
|
|
"maximumWarning": "6kb",
|
|
"maximumError": "10kb"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"serve": {
|
|
"builder": "@angular/build:dev-server",
|
|
"options": {
|
|
"buildTarget": "forms:build"
|
|
},
|
|
"configurations": {
|
|
"dev": {
|
|
"buildTarget": "forms:build:dev"
|
|
},
|
|
"production": {
|
|
"buildTarget": "forms:build:production"
|
|
},
|
|
"ci": {},
|
|
"ci-production": {
|
|
"buildTarget": "forms:build:production"
|
|
}
|
|
}
|
|
},
|
|
"extract-i18n": {
|
|
"builder": "@angular/build:extract-i18n",
|
|
"options": {
|
|
"buildTarget": "forms:build"
|
|
}
|
|
},
|
|
"test": {
|
|
"builder": "@angular-devkit/build-angular:karma",
|
|
"options": {
|
|
"polyfills": [
|
|
"zone.js",
|
|
"zone.js/testing"
|
|
],
|
|
"tsConfig": "tsconfig.spec.json",
|
|
"karmaConfig": "karma.conf.js",
|
|
"assets": ["src/favicon.ico", "src/assets"],
|
|
"styles": ["src/styles.css"],
|
|
"scripts": [],
|
|
"progress": false,
|
|
"watch": false
|
|
}
|
|
},
|
|
"lint": {
|
|
"builder": "@angular/build:tslint",
|
|
"options": {
|
|
"tsConfig": ["tsconfig.app.json", "tsconfig.spec.json", "e2e/tsconfig.json"],
|
|
"exclude": ["**/node_modules/**"]
|
|
}
|
|
},
|
|
"e2e": {
|
|
"builder": "@angular-devkit/build-angular:protractor",
|
|
"options": {
|
|
"protractorConfig": "e2e/protractor.conf.js",
|
|
"devServerTarget": "forms:serve",
|
|
"webdriverUpdate": false
|
|
},
|
|
"configurations": {
|
|
"production": {
|
|
"devServerTarget": "forms:serve:production"
|
|
},
|
|
"ci": {
|
|
"devServerTarget": "forms:serve:ci"
|
|
},
|
|
"ci-production": {
|
|
"devServerTarget": "forms:serve:ci-production"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"cli": {
|
|
"cache": {
|
|
"enabled": false
|
|
},
|
|
"analytics": false
|
|
}
|
|
}
|