grafana/kindsv2/dashboard-ts.yaml
Kévin Gomez 77f7ab27be
Use cog as a cli tool to generate code for kinds v2 schemas (#99044)
* Use cog as a cli tool to generate code for kinds v2 schemas

* Update imports to dashboard v2 package in frontend

* Ensure cog is installed before using it
2025-01-16 13:18:47 +01:00

23 lines
682 B
YAML

# yaml-language-server: $schema=https://raw.githubusercontent.com/grafana/cog/main/schemas/pipeline.json
inputs:
- cue:
entrypoint: '%__config_dir%/../packages/grafana-schema/src/schema/dashboard/v2alpha0'
metadata:
kind: core
cue_imports:
- '%__config_dir%/../packages/grafana-schema/src/common:github.com/grafana/grafana/packages/grafana-schema/src/common'
output:
directory: '%__config_dir%/../packages/grafana-schema/src/schema/dashboard/'
types: true
languages:
- typescript:
skip_runtime: true
enums_as_union_types: true
path_prefix: ""
packages_import_map:
common: '@grafana/schema'