mirror of https://github.com/grafana/grafana
Plugins: Always load decoupled frontend assets from builds (#81873)
* Wip * Wip * Adapt to load external module * build: remove cloudmonitoring from built_in_plugins, clean up webpack output * chore(plugins): remove decoupled plugins from package.json deps * chore(codeowners): update file for nx.json * revert(webpack): put back path in config * build(frontend): use nx to run prod builds of decoupled plugins with yarn build * style(prometheus): run prettier-write to fix tsconfig.json * style(backend): remove unused subFile.isDistDir * revert(locales): remove formatting changes adding new line at end of files * chore(webpack): clean up dev output * build(nx): make grafana an nx project, bump lerna and nx * build(plugin-configs): move cache directory to node_modules * style(datasource-plugins): add eslint ignore for .gen.ts files * chore(codeowners): add frontend-ops as owner of project.json * build(webpack): add getDecoupledPlugins to automatically ignore when watching * ci(drone): skip nx cache when building frontend packages * style(ci): fix missing trailing comma * Revert "style(ci): fix missing trailing comma" This reverts commitpull/84361/head7520d41576
. * Revert "ci(drone): skip nx cache when building frontend packages" This reverts commit46938883ac
. * feat(zipkin): remove from grafana core bundle * chore(npm): bump nx package to latest 18.0.8 * docs(dev-guide): add a note about what yarn start now builds --------- Co-authored-by: Andres Martinez <andres.martinez@grafana.com>
parent
75ea33e0cd
commit
6599fa805d
@ -0,0 +1,18 @@ |
||||
{ |
||||
"tasksRunnerOptions": { |
||||
"default": { |
||||
"runner": "nx/tasks-runners/default", |
||||
"options": { |
||||
"cacheableOperations": ["build"] |
||||
} |
||||
} |
||||
}, |
||||
"targetDefaults": { |
||||
"build": { |
||||
"outputs": ["{projectRoot}/dist"] |
||||
} |
||||
}, |
||||
"affected": { |
||||
"defaultBase": "main" |
||||
} |
||||
} |
@ -0,0 +1,35 @@ |
||||
{ |
||||
"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": { |
||||
"outputs": [ |
||||
"{workspaceRoot}/public/sass/_variables.generated.scss", |
||||
"{workspaceRoot}/public/sass/_variables.dark.generated.scss", |
||||
"{workspaceRoot}/public/sass/_variables.light.generated.scss" |
||||
], |
||||
"cache": true |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,2 @@ |
||||
# TS generate from cue by cuetsy |
||||
**/*.gen.ts |
@ -0,0 +1,2 @@ |
||||
# TS generate from cue by cuetsy |
||||
**/*.gen.ts |
Loading…
Reference in new issue