diff --git a/.containerization/Containerfile b/.containerization/Containerfile index 62b14f0..c458038 100644 --- a/.containerization/Containerfile +++ b/.containerization/Containerfile @@ -5,13 +5,12 @@ # Stage 1: Base build environment with Guix FROM cgr.dev/chainguard/wolfi-base:latest AS guix-base -# Install Guix for reproducible builds +# Install Guix for reproducible builds (tar is provided by busybox in wolfi-base) RUN apk add --no-cache \ bash \ wget \ xz \ gpg \ - tar \ ca-certificates # Download and verify Guix (using latest stable) diff --git a/.gitignore b/.gitignore index 120a9a8..2f738f6 100644 --- a/.gitignore +++ b/.gitignore @@ -60,6 +60,7 @@ __pycache__/ # Secrets .env +*.env .env.* *.pem *.key diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..bd56a03 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,7 @@ +# package.json is JCS-canonical and pnpm-lock.yaml is tool-generated (LANGUAGE-POLICY ยง1.4). +# Prettier must not reformat them. +package.json +pnpm-lock.yaml + +# Uses a URL import that Prettier cannot parse. +.screenshots/capture-screenshots.js diff --git a/bun.lock b/bun.lock new file mode 100644 index 0000000..b96d3af --- /dev/null +++ b/bun.lock @@ -0,0 +1,15 @@ +{ + "lockfileVersion": 2, + "configVersion": 1, + "workspaces": { + "": { + "name": "fireflag", + "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/deno.lock b/deno.lock index 99ebb5b..f5cd480 100644 --- a/deno.lock +++ b/deno.lock @@ -1,5 +1,14 @@ { "version": "5", + "specifiers": { + "npm:prettier@3.10.1": "3.10.1" + }, + "npm": { + "prettier@3.10.1": { + "integrity": "sha512-70vp3ZUYoPlFbF9uiTdXHUUCGEIp7d4+6p+8DYbkm2jP7x/3i/paXVF6dopSI3zd/CEitrZN1rc4i85xWmmXlg==", + "bin": true + } + }, "remote": { "https://deno.land/std@0.220.0/assert/_constants.ts": "a271e8ef5a573f1df8e822a6eb9d09df064ad66a4390f21b3e31f820a38e0975", "https://deno.land/std@0.220.0/assert/_diff.ts": "4bf42969aa8b1a33aaf23eb8e478b011bfaa31b82d85d2ff4b5c4662d8780d2b", @@ -39,5 +48,12 @@ "https://esm.sh/@rescript/runtime@12.1.0/lib/es6/Primitive_option.js": "b5926d1be5d31384509cb13dab0e6df6c73d5d35a97999aece67e23e195f3637", "https://esm.sh/@rescript/runtime@12.1.0/lib/es6/Stdlib_Exn.js": "c2979876078c766d3b53b7d3fdd1b768e3fdb135af37cd5045f311eb98fdd96e", "https://esm.sh/@rescript/runtime@12.1.0/lib/es6/Stdlib_Option.js": "c22d57b45f23b2e5566365e66cb8fca8071ee7c60919a92439284819bc8fa3ca" + }, + "workspace": { + "packageJson": { + "dependencies": [ + "npm:prettier@3.10.1" + ] + } } } diff --git a/mise.toml b/mise.toml index 6dd983f..86351cb 100644 --- a/mise.toml +++ b/mise.toml @@ -1,34 +1,21 @@ [tools] # Language runtimes -node = "latest" -python = "latest" rust = "latest" -go = "latest" zig = "latest" -java = "latest" bun = "latest" denojs = "latest" # Package managers -npm = "latest" -yarn = "latest" pnpm = "latest" -pip = "latest" cargo = "latest" -go-task = "latest" +just = "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 +25,18 @@ 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.build] +run = 'just build' + +[tasks.test] +run = 'just test' + +[tasks.lint] +run = 'deno run -A --node-modules-dir=none --lock=deno.lock --frozen npm:prettier@3.10.1 --check .' + +[tasks.fmt] +run = 'deno run -A --node-modules-dir=none --lock=deno.lock --frozen npm:prettier@3.10.1 --write .' diff --git a/package.json b/package.json new file mode 100644 index 0000000..caafc77 --- /dev/null +++ b/package.json @@ -0,0 +1 @@ +{"devDependencies":{"prettier":"3.10.1"},"license":"MPL-2.0","name":"fireflag","private":true} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 0000000..2d39aff --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,24 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + devDependencies: + prettier: + specifier: 3.10.1 + version: 3.10.1 + +packages: + + prettier@3.10.1: + resolution: {integrity: sha512-70vp3ZUYoPlFbF9uiTdXHUUCGEIp7d4+6p+8DYbkm2jP7x/3i/paXVF6dopSI3zd/CEitrZN1rc4i85xWmmXlg==} + engines: {node: '>=14'} + hasBin: true + +snapshots: + + prettier@3.10.1: {}