mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* 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
23 lines
682 B
YAML
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'
|