diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 8b425f2..8a24c53 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,4 +1,10 @@ version: 2 + +multi-ecosystem-groups: + js-locks: + schedule: + interval: "daily" + open-pull-requests-limit: 3 updates: - package-ecosystem: "github-actions" directory: "/" @@ -29,9 +35,14 @@ updates: - package-ecosystem: "npm" directory: "/" - schedule: - interval: "daily" - open-pull-requests-limit: 3 + multi-ecosystem-group: "js-locks" + patterns: ["*"] + + # Bun (bun.lock): in the js-locks group with npm, so one PR moves package.json and bun.lock together + - package-ecosystem: "bun" + directory: "/" + multi-ecosystem-group: "js-locks" + patterns: ["*"] - package-ecosystem: "pip" directory: "/" diff --git a/.machine_readable/root-allow.txt b/.machine_readable/root-allow.txt index 0e6395d..a88d0df 100644 --- a/.machine_readable/root-allow.txt +++ b/.machine_readable/root-allow.txt @@ -1 +1,6 @@ flake.nix + +# ─── JS manifest and locks (LANGUAGE-POLICY §1.4) ─────────────────────────── +package.json # JCS-canonical manifest; pins JS tooling (LANGUAGE-POLICY §1.4) +bun.lock # tier-1 lock, required (LANGUAGE-POLICY §1.4) +.prettierignore # keeps Prettier off the JCS package.json; Prettier reads it from the root diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..49c40e2 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: MPL-2.0 +# package.json is JCS-canonical (LANGUAGE-POLICY §1.4); Prettier must not reformat it. +package.json diff --git a/bun.lock b/bun.lock new file mode 100644 index 0000000..555a7e4 --- /dev/null +++ b/bun.lock @@ -0,0 +1,15 @@ +{ + "lockfileVersion": 2, + "configVersion": 1, + "workspaces": { + "": { + "name": "modshells", + "devDependencies": { + "prettier": "3.10.1", + }, + }, + }, + "packages": { + "prettier": ["prettier@3.10.1", "", { "bin": { "prettier": "bin/prettier.cjs" } }, "sha512-70vp3ZUYoPlFbF9uiTdXHUUCGEIp7d4+6p+8DYbkm2jP7x/3i/paXVF6dopSI3zd/CEitrZN1rc4i85xWmmXlg=="], + } +} diff --git a/mise.toml b/mise.toml index 6dd983f..5ad05d4 100644 --- a/mise.toml +++ b/mise.toml @@ -1,34 +1,20 @@ [tools] # Language runtimes -node = "latest" -python = "latest" rust = "latest" -go = "latest" zig = "latest" -java = "latest" -bun = "latest" -denojs = "latest" +bun = "1.4" # Package managers -npm = "latest" -yarn = "latest" pnpm = "latest" -pip = "latest" cargo = "latest" go-task = "latest" # Formatting & Linting -gofmt = "latest" -black = "latest" -isort = "latest" -ruff = "latest" -prettier = "latest" shfmt = "latest" stylua = "latest" # Build tools cmake = "latest" -make = "latest" ninja = "latest" # Shell tools @@ -38,20 +24,23 @@ gnu-tar = "latest" gnu-grep = "latest" # Testing -vitest = "latest" -pytest = "latest" -jest = "latest" [env] # Common environment variables -NODE_ENV = "development" -PYTHONDONTWRITEBYTECODE = "1" -PYTHONUNBUFFERED = "1" # Task runner alias [alias] task = "go-task" -build = "cargo build --release || npm run build || go build" -test = "cargo test || npm test || go test ./..." -lint = "ruff check . || prettier --check . || black --check ." -fmt = "ruff format . || prettier --write . || black ." + +[tasks.setup] +description = "Install pinned JS dev tools (Prettier) from bun.lock" +run = "bun install --frozen-lockfile" + +[tasks.build] +run = "gprbuild -p -j0 modshells.gpr" + +[tasks.lint] +run = "bun install --frozen-lockfile && bunx --no-install --bun prettier --check ." + +[tasks.fmt] +run = "bun install --frozen-lockfile && bunx --no-install --bun prettier --write ." diff --git a/package.json b/package.json new file mode 100644 index 0000000..013093b --- /dev/null +++ b/package.json @@ -0,0 +1,8 @@ +{ + "devDependencies": { + "prettier": "3.10.1" + }, + "license": "MPL-2.0", + "name": "modshells", + "private": true +}