Files
openproject/frontend/angular.json
T
Alexander Brandon Coles 6e0ea8d18c Bump ng2-charts to ^8.0.0 (#19680)
* Bump ng2-charts to ^8.0.0

* Bump chart.js to 4.5.0

* Update imports, providers using default config

* Remove chart.js dependencies from CJS allowlist

These dependencies are now provided as ESM.

* Revert A11y-related Chart colour changes

These improvements were intended to improve the contrast (and thus
accessibility) of bar charts rendered by the Work Packages Overview
widget. However, the solution as implemented, when combined with the
upgrade to ng-charts2 8.0.0, breaks styling of non-bar charts rendered
by the Work Packages Graph widget.

This partially reverts commit 89135ae36c.
2025-08-19 13:33:12 +02:00

203 lines
5.7 KiB
JSON

{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"OpenProject": {
"projectType": "application",
"schematics": {
"@schematics/angular:component": {
"style": "sass"
}
},
"root": "",
"sourceRoot": "src",
"architect": {
"build": {
"builder": "@angular-builders/custom-esbuild:application",
"options": {
"plugins": ["./esbuild/plugins.ts"],
"allowedCommonJsDependencies": [
"dom-plane",
"pako",
"moment-timezone",
"observable-array",
"dragula",
"jquery",
"contra/emitter",
"crossvent",
"create-point-cb",
"core-vendor/enjoyhint",
"tablesorter"
],
"preserveSymlinks": true,
"outputPath": {
"base": "../public/assets/frontend",
"browser": ""
},
"index": "src/index2.html",
"browser": "src/main.ts",
"polyfills": ["src/polyfills.ts"],
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "sass",
"assets": [
"src/assets"
],
"styles": [
{
"input": "src/spot.scss",
"bundleName": "spot"
},
{
"input": "src/backlogs.scss",
"bundleName": "backlogs"
},
"src/styles.scss",
"node_modules/@blocknote/mantine/dist/style.css",
"node_modules/codemirror/lib/codemirror.css",
"src/vendor/jquery-ui-1.14.1/jquery-ui.css",
"src/vendor/jquery-ui-1.14.1/jquery-ui.structure.css",
"src/vendor/jquery-ui-1.14.1/jquery-ui.theme.css",
"node_modules/flatpickr/dist/flatpickr.min.css"
],
"stylePreprocessorOptions": {
"includePaths": [
"src/assets/sass"
]
},
"scripts": [
{
"input": "node_modules/jquery/dist/jquery.min.js",
"inject": false,
"bundleName": "jquery"
}
]
},
"configurations": {
"production": {
"budgets": [
{
"type": "anyComponentStyle",
"maximumWarning": "6kB"
}
],
"preserveSymlinks": true,
"optimization": {
"scripts" : false,
"styles" : true,
"fonts" : true
},
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
]
},
"development": {
"optimization": false,
"extractLicenses": false,
"sourceMap": true
}
},
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-builders/custom-esbuild:dev-server",
"options": {
"servePath": "/assets/frontend"
},
"configurations": {
"production": {
"buildTarget": "OpenProject:build:production"
},
"development": {
"buildTarget": "OpenProject:build:development",
"proxyConfig": "src/proxy.conf.mjs",
"headers": {
"Access-Control-Allow-Origin": "*"
}
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"buildTarget": "OpenProject:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"preserveSymlinks": true,
"main": "src/test.ts",
"karmaConfig": "./karma.conf.js",
"tsConfig": "tsconfig.spec.json",
"scripts": [],
"styles": [],
"stylePreprocessorOptions": {
"includePaths": [
"src/assets/sass/"
]
},
"assets": []
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
}
}
}
}
},
"schematics": {
"@schematics/angular:component": {
"prefix": "op",
"style": "sass",
"changeDetection": "OnPush",
"skipTests": true,
"flat": true,
"type": "component"
},
"@schematics/angular:directive": {
"prefix": "op",
"skipTests": true,
"type": "directive"
},
"@schematics/angular:service": {
"type": "service"
},
"@schematics/angular:guard": {
"typeSeparator": "."
},
"@schematics/angular:interceptor": {
"typeSeparator": "."
},
"@schematics/angular:module": {
"typeSeparator": "."
},
"@schematics/angular:pipe": {
"typeSeparator": "."
},
"@schematics/angular:resolver": {
"typeSeparator": "."
}
},
"cli": {
"analytics": false,
"cache": {
"environment": "all"
}
}
}