Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,9 @@ jobs:
- name: 📦 Install dependencies
run: pnpm install --frozen-lockfile

- name: 🧹 Lint and format
run: pnpm rr jsc

- name: 🔍 Check types
run: pnpm astro check
# Biome's format and lint, then astro check's types.
- name: 🔍 Check
run: pnpm rr check

- name: 🏗️ Build site
run: pnpm astro build
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,17 @@ Deployed with [Workers Builds](https://developers.cloudflare.com/workers/ci-cd/b
mise install
pnpm install
astro dev # the site, rebuilt as you edit
rr jsc # format and lint with Biome; rr jsc --fix applies the fixes
astro check # types: .astro, .ts and the content schema
rr check # format and lint with Biome, then types with astro check
rr jsc --fix # applies Biome's fixes
astro build # the site, into dist/
wrangler dev # dist/, served as the Worker serves it
wrangler deploy --dry-run
```

In a shell where mise isn't activated, run them as `mise exec -- <command>`.

`astro check` is the type check: `rr check` stops at its type-check step, because rr has no plugin for Astro.
`rr check` runs Biome, then `astro check` through `@rrlab/astro-plugin`, which type-checks `.astro` files, `.ts` files and the content schema. `rr tsc` runs only the type check.

CI runs `pnpm rr jsc`, `pnpm astro check` and `pnpm astro build` on each pull request to `main`. It calls the tools through pnpm because mise's GitHub Action puts only mise's shims on the PATH, not `mise.toml`'s `[env]`.
CI runs `pnpm rr check` and `pnpm astro build` on each pull request to `main`. It calls the tools through pnpm because mise's GitHub Action puts only mise's shims on the PATH, not `mise.toml`'s `[env]`.

A weekly workflow runs `pnpm audit` on `pnpm-lock.yaml` and keeps an issue labeled `dependency-audit` open while it finds known vulnerabilities. Dependabot opens pull requests for security updates only, never for version updates.
4 changes: 2 additions & 2 deletions docs/content.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ Keeper:
| class | App |
| sign | `M2 2h12v8h8v12H10v-8H2V2z` |
| tagline | `One way to run the scripts in a repo.` |
| body | `Every tool is a plugin you add: Biome, oxc, tsc or tsdown. The commands stay the same in every repo.` |
| body | `Every tool is a plugin you add. The commands stay the same in every repo.` |
| installCommand | `pnpm add -D @rrlab/cli` |
| executable | `rr` |
| package | `@rrlab/cli` |
| requirement | `Node 22.18 or later` |
| repository | `https://github.com/withvariablelab/dx/tree/main/run-run/cli` |
| links | `CLI reference` → `https://github.com/withvariablelab/dx/blob/main/run-run/cli/CLI.md`; `GitHub` → the repository |
| closingLine | `Ships no Biome or TypeScript. Each plugin installs its tool.` |
| description | `One way to run the scripts in a repo. Every tool is a plugin you add: Biome, oxc, tsc or tsdown.` |
| description | `One way to run the scripts in a repo. Every tool is a plugin you add.` |

Example: one Terminal snippet.

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
"@biomejs/biome": "2.5.15",
"@fontsource/ibm-plex-mono": "5.3.0",
"@fontsource/ibm-plex-sans": "5.3.0",
"@rrlab/astro-plugin": "^0.1.0",
"@rrlab/biome-config": "0.0.3",
"@rrlab/biome-plugin": "1.1.3",
"@rrlab/cli": "1.3.2",
"@rrlab/cli": "^1.5.0",
"@types/node": "24.19.2",
"@variablelab/brand": "0.3.0",
"astro": "7.4.0",
Expand Down
69 changes: 54 additions & 15 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion run-run.config.mts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import astro from "@rrlab/astro-plugin";
import biome from "@rrlab/biome-plugin";
import { defineConfig } from "@rrlab/cli/config";

export default defineConfig({
plugins: [biome()],
plugins: [biome(), astro()],
});
4 changes: 2 additions & 2 deletions src/content/projects/run-run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "run-run"
class: "App"
sign: "M2 2h12v8h8v12H10v-8H2V2z"
tagline: "One way to run the scripts in a repo."
body: "Every tool is a plugin you add: Biome, oxc, tsc or tsdown. The commands stay the same in every repo."
body: "Every tool is a plugin you add. The commands stay the same in every repo."
installCommand: "pnpm add -D @rrlab/cli"
executable: "rr"
package: "@rrlab/cli"
Expand All @@ -28,4 +28,4 @@ example:
commands:
- "pnpm rr pack"
closingLine: "Ships no Biome or TypeScript. Each plugin installs its tool."
description: "One way to run the scripts in a repo. Every tool is a plugin you add: Biome, oxc, tsc or tsdown."
description: "One way to run the scripts in a repo. Every tool is a plugin you add."
Loading