-
Notifications
You must be signed in to change notification settings - Fork 114
Expand file tree
/
Copy pathmise.toml
More file actions
62 lines (53 loc) · 2.42 KB
/
Copy pathmise.toml
File metadata and controls
62 lines (53 loc) · 2.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# mise-en-place — single source of truth for this repo's toolchain.
# Docs: https://mise.en.dev
#
# First-time local setup:
# curl https://mise.run | sh # install mise
# echo 'eval "$(mise activate zsh)"' >> ~/.zshrc # activate in your shell (bash/fish too)
# mise trust # trust this config (it defines env + tasks)
# mise run setup # install tools + deps + local CA
#
# CI installs these exact versions via jdx/mise-action (see .github/workflows/*),
# so local dev and CI run identical toolchains.
# All four are pinned to EXACT patch versions (no fuzzy "24"/"3.12") so a
# `mise install` resolves byte-identical toolchains locally and in CI — that's
# the whole point of this file. Bump a patch here and CI follows automatically.
[tools]
bun = "1.4.0" # keep in sync with `packageManager` in package.json
node = "24.18.0" # some scripts shell out to `node`
rust = "1.94.1" # apps/ingest (Rust gateway); was a floating `stable` in CI
python = "3.12.13" # Tinybird tooling + .github/scripts/format-ingest-benchmark-comment.py
# go = "1.x.y" # otel-collector exporter pins via go.mod; add here only if we want it unified
[env]
# Auto-load the gitignored local secrets/overrides so ad-hoc `bun run …` commands
# pick them up without an explicit --env-file flag. This is ADDITIVE: the apps
# still load .env.local explicitly (portless --env-file, apps/ingest `source`,
# scraper `bun --env-file`), so non-mise users and CI are unaffected. In CI there
# is no .env.local, so this is a no-op there (Infisical/secret injection is untouched).
_.file = ".env.local"
[tasks.setup]
description = "Bootstrap a fresh checkout: tools, JS deps, env file, local CA"
run = [
"mise install",
"bun install",
"test -f .env.local || cp .env.example .env.local",
"npx portless trust",
]
[tasks.dev]
description = "Run every app under one `alchemy dev` stack (https://*.localhost)"
run = "bun dev"
[tasks.build]
description = "Build all packages/apps via turbo"
run = "bun build"
[tasks.test]
description = "Run the test suite via turbo"
run = "bun test"
[tasks.typecheck]
description = "Type-check all packages/apps via turbo"
run = "bun typecheck"
[tasks."db:up"]
description = "Start the dev Postgres (docker, port 5499)"
run = "bun db:up"
[tasks."db:migrate"]
description = "Apply drizzle migrations to the dev Postgres"
run = "bun db:migrate:local"