mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-16 05:41:16 +01:00
build(just): consolidate schemapub target
This commit is contained in:
1 parent
321bfb129c
commit
d91e14bd71
1 file changed
+6
-8
@@ -73,14 +73,6 @@ jsonschema:
|
||||
cargo run --package komorebic -- application-specific-configuration-schema > schema.asc.json
|
||||
cargo run --package komorebi-bar -- --schema > schema.bar.json
|
||||
|
||||
version := `cargo metadata --format-version 1 --no-deps | jq -r '.packages[] | select(.name == "komorebi") | .version'`
|
||||
|
||||
schemagen:
|
||||
mkdir -p komorebi-schema
|
||||
schemars-docgen schema.json -o komorebi-schema/komorebi.html
|
||||
schemars-docgen schema.bar.json -o komorebi-schema/bar.html
|
||||
cp schema.json komorebi-schema/komorebi.{{ version }}.schema.json
|
||||
cp schema.bar.json komorebi-schema/komorebi.bar.{{ version }}.schema.json
|
||||
|
||||
nixgen:
|
||||
schemars-nixgen schema.json -o nix/komorebi-options.nix --name komorebi --description "komorebi for Mac configuration"
|
||||
@@ -88,7 +80,13 @@ nixgen:
|
||||
nix fmt nix/
|
||||
nix build -f nix/tests/default.nix
|
||||
|
||||
version := `cargo metadata --format-version 1 --no-deps | jq -r '.packages[] | select(.name == "komorebi") | .version'`
|
||||
|
||||
schemapub:
|
||||
rm -rf komorebi-schema
|
||||
mkdir -p komorebi-schema
|
||||
cp schema.json komorebi-schema/komorebi.{{ version }}.schema.json
|
||||
cp schema.bar.json komorebi-schema/komorebi.bar.{{ version }}.schema.json
|
||||
wrangler pages deploy --project-name komorebi-for-mac --branch main ./komorebi-schema
|
||||
|
||||
depcheck:
|
||||
|
||||
Reference in new issue
Block a user