mirror of
https://github.com/grafana/grafana.git
synced 2024-11-24 09:50:29 -06:00
10f600a6e9
build(nx): set inputs for theme-generate to reduce reruns of task
41 lines
1.0 KiB
JSON
41 lines
1.0 KiB
JSON
{
|
|
"name": "grafana",
|
|
"$schema": "node_modules/nx/schemas/project-schema.json",
|
|
"projectType": "application",
|
|
"targets": {
|
|
"start": {
|
|
"dependsOn": [
|
|
"themes-generate",
|
|
{
|
|
"projects": ["@grafana-plugins/**"],
|
|
"target": "build"
|
|
}
|
|
]
|
|
},
|
|
"build": {
|
|
"dependsOn": [
|
|
"themes-generate",
|
|
{
|
|
"projects": ["@grafana-plugins/**"],
|
|
"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
|
|
}
|
|
}
|
|
}
|