Skip to content

Commit

Permalink
chore: install all devtools with mise instead of bun
Browse files Browse the repository at this point in the history
  • Loading branch information
sripwoud committed Feb 19, 2025
1 parent 64d3b02 commit 66afa1e
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 285 deletions.
29 changes: 17 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,23 @@ on:
# no need to bother caching bun deps
# https://github.com/oven-sh/setup-bun/issues/14#issuecomment-1714116221
jobs:
validate:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install
- name: Validate
run: |
bun concurrently \
-c auto \
-n format,lint,typecheck,build \
'bun dprint check' \
'bun biome check --config-path=.biome.jsonc .' \
'cd web &&bun tsc --p tsconfig.app.json --noEmit' \
'cd web && bun vite build'
- uses: jdx/mise-action@v2
with:
mise_toml: |
[tasks]
"check:build" = { dir= "web", run = "bun vite build"}
"check:format" = { run = "dprint check --excludes mise.toml" }
"check:lint" = { run = "biome check --config-path=.biome.jsonc" }
"check:types" = { run = "tsc -p web/tsconfig.app.json" }
"check" = { depends = "check:*" }
[tools]
bun = "latest"
dprint = "latest"
"npm:@biomejs/biome" = "latest"
"npm:typescript" = "latest"
- run: bun i
- run: mise r check
Binary file modified bun.lockb
Binary file not shown.
6 changes: 3 additions & 3 deletions hk.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ min_hk_version = "0.2.3"

`pre-commit` {
["format"] {
fix_all = "bun dprint fmt"
fix_all = "dprint fmt"
}
["lint"] {
check = "bun biome lint --config-path=.biome.jsonc --no-errors-on-unmatched {{files}}"
check = "biome lint --config-path=.biome.jsonc --no-errors-on-unmatched {{files}}"
}
["typecheck"] {
check_all = "bun tsc-files web/src/**/*.{ts,tsx} --noEmit -p web/tsconfig.json -p web/tsconfig.app.json -p web/tsconfig.node.json"
check_all = "tsc -p web/tsconfig.app.json"
}
}
4 changes: 4 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,9 @@ quiet = true
[tools]
bun = "latest"
"cargo:convco" = "latest"
dprint = "latest"
hk = "latest"
pkl = "latest"
"npm:@biomejs/biome" = "latest"
"npm:tsc-files" = "latest"
"npm:typescript" = "latest"
8 changes: 1 addition & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"bun-types": "^1.2.2",
"concurrently": "^9.1.2",
"dprint": "^0.49.0",
"reflect-metadata": "^0.2.2",
"tsc-files": "^1.1.4",
"typescript": "^5.7.3"
"bun-types": "^1.2.2"
},
"workspaces": [
"web"
Expand Down
Loading

0 comments on commit 66afa1e

Please sign in to comment.