mirror of
https://github.com/grafana/grafana.git
synced 2024-12-24 16:10:22 -06:00
9e50866356
* 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
43 lines
1.1 KiB
JSON
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
|
|
}
|
|
}
|
|
}
|