-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added BiomeDefault and BiomeGit separate files
- Loading branch information
1 parent
8a484c7
commit ebdc323
Showing
4 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.out | ||
node_modules | ||
src/internal/Schema.pkl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ pnpm = "latest" | |
|
||
[tasks.pull-schema] | ||
run = """ | ||
pkl eval package://pkg.pkl-lang.org/pkl-pantry/[email protected]#/generate.pkl -m src -p source=\"https://biomejs.dev/schemas/$(cat version.txt)/schema.json\" | ||
cat src/Schema.pkl | sed 's/(\\([A-Za-z0-9]*\\)|Any)/\\1/g' | sed 's/module Schema/module Biome/g' > src/Biome.pkl | ||
rm src/Schema.pkl | ||
pkl eval package://pkg.pkl-lang.org/pkl-pantry/[email protected]#/generate.pkl -m src/internal -p source=\"https://biomejs.dev/schemas/$(cat version.txt)/schema.json\" | ||
cat src/internal/Schema.pkl | sed 's/(\\([A-Za-z0-9]*\\)|Any)/\\1/g' > src/internal/_Schema.pkl | ||
mv src/internal/_Schema.pkl src/internal/Schema.pkl | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
module biome.Default | ||
|
||
amends "./internal/Schema.pkl" | ||
|
||
organizeImports { | ||
enabled = true | ||
} | ||
|
||
formatter { | ||
enabled = true | ||
} | ||
|
||
linter { | ||
enabled = true | ||
rules { | ||
recommended = true | ||
} | ||
} | ||
|
||
output { | ||
text = "Use multiple file mode, e.g. `pkl eval -m . <file>`, to output a `biome.json` file." | ||
files { | ||
["./biome.json"] { | ||
value = module | ||
renderer = new JsonRenderer {} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module biome.Git | ||
|
||
amends "./Biome.pkl" | ||
|
||
vcs { | ||
enabled = true | ||
clientKind = "git" | ||
useIgnoreFile = true | ||
} |