grafana/project.json
Jack Westbrook 9e50866356
Build: Nx improvements (#88341)
* feat(frontend): introduce project.json for every workspace to improve caching

* refactor(frontend): use nx tags for grafana dependson

* refactor(frontend): clean up nx tags for packages and plugins

* build(nx): make grafana dependent on cacheable generate icons command

* build(nx): clean up project files
2024-10-15 14:25:45 +02:00

43 lines
1.1 KiB
JSON

{
"name": "grafana",
"$schema": "node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"targets": {
"start": {
"dependsOn": [
"themes-generate",
"grafana-icons:generate",
{
"projects": ["tag:scope:plugin"],
"target": "build"
}
]
},
"build": {
"dependsOn": [
"themes-generate",
"grafana-icons:generate",
{
"projects": ["tag:scope:plugin"],
"target": "build"
}
],
"outputs": ["{workspaceRoot}/public/build"],
"cache": true
},
"themes-generate": {
"inputs": [
"{workspaceRoot}/scripts/cli/generateSassVariableFiles.ts",
"{workspaceRoot}/packages/grafana-data/src/themes/**",
"{workspaceRoot}/packages/grafana-ui/src/themes/**"
],
"outputs": [
"{workspaceRoot}/public/sass/_variables.generated.scss",
"{workspaceRoot}/public/sass/_variables.dark.generated.scss",
"{workspaceRoot}/public/sass/_variables.light.generated.scss"
],
"cache": true
}
}
}