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
2 changes: 1 addition & 1 deletion .agents/plugins/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"name": "lvbt-contributions",
"source": {
"source": "local",
"path": "../../node_modules/@lvbt/cli/plugins/lvbt-contributions"
"path": "../../node_modules/@lasvegasfortransit/cli/plugins/lvbt-contributions"
},
"policy": {
"installation": "AVAILABLE",
Expand Down
2 changes: 1 addition & 1 deletion .claude/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"source": {
"source": "github",
"repo": "LasVegasForTransit/repository-tooling",
"ref": "v0.2.8"
"ref": "v0.4.4"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion .codex/hooks.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"hooks": [
{
"type": "command",
"command": "node \"$(git rev-parse --show-toplevel)/node_modules/@lvbt/cli/plugins/lvbt-contributions/hooks/codex-pre-tool-use.mjs\"",
"command": "node \"$(git rev-parse --show-toplevel)/node_modules/@lasvegasfortransit/cli/plugins/lvbt-contributions/hooks/codex-pre-tool-use.mjs\"",
"timeout": 10
}
]
Expand Down
4 changes: 2 additions & 2 deletions .githooks/commit-msg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env sh
# The shared hook lives in @lvbt/cli; repository-specific steps go below it.
# The shared hook lives in @lasvegasfortransit/cli; repository-specific steps go below it.
set -eu
ROOT=$(git rev-parse --show-toplevel)
sh "$ROOT/node_modules/@lvbt/cli/hooks/commit-msg.sh" "$@"
sh "$ROOT/node_modules/@lasvegasfortransit/cli/hooks/commit-msg.sh" "$@"
4 changes: 2 additions & 2 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env sh
# The shared hook lives in @lvbt/cli; repository-specific steps go below it.
# The shared hook lives in @lasvegasfortransit/cli; repository-specific steps go below it.
set -eu
ROOT=$(git rev-parse --show-toplevel)
sh "$ROOT/node_modules/@lvbt/cli/hooks/pre-commit.sh" "$@"
sh "$ROOT/node_modules/@lasvegasfortransit/cli/hooks/pre-commit.sh" "$@"
4 changes: 2 additions & 2 deletions .githooks/pre-push
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env sh
# The shared hook lives in @lvbt/cli; repository-specific steps go below it.
# The shared hook lives in @lasvegasfortransit/cli; repository-specific steps go below it.
set -eu
ROOT=$(git rev-parse --show-toplevel)
sh "$ROOT/node_modules/@lvbt/cli/hooks/pre-push.sh" "$@"
sh "$ROOT/node_modules/@lasvegasfortransit/cli/hooks/pre-push.sh" "$@"
4 changes: 2 additions & 2 deletions .githooks/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env sh
# The shared hook lives in @lvbt/cli; repository-specific steps go below it.
# The shared hook lives in @lasvegasfortransit/cli; repository-specific steps go below it.
set -eu
ROOT=$(git rev-parse --show-toplevel)
sh "$ROOT/node_modules/@lvbt/cli/hooks/prepare-commit-msg.sh" "$@"
sh "$ROOT/node_modules/@lasvegasfortransit/cli/hooks/prepare-commit-msg.sh" "$@"
2 changes: 1 addition & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"customManagers": [
{
"description": "The @lvbt/* packages install from git tags of repository-tooling with a path: suffix that the npm manager does not parse, and the Claude Code marketplace pins the same tag. Track both as one dependency on the repository's tags.",
"description": "The @lasvegasfortransit/* packages install from git tags of repository-tooling with a path: suffix that the npm manager does not parse, and the Claude Code marketplace pins the same tag. Track both as one dependency on the repository's tags.",
"customType": "regex",
"managerFilePatterns": ["/(^|/)package\\.json$/", "/(^|/)\\.claude/settings\\.json$/"],
"matchStrings": [
Expand Down
6 changes: 3 additions & 3 deletions .lvbt/web-platform.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"formatVersion": 1,
"preset": "lvbt-web",
"release": "v0.2.8",
"commit": "8c33f0f2855fb1ce919df0c076d866392b83946e",
"contentHash": "f649fa8382fb42b4c8aafb4681406f75f3baf4e24f97ccb78eb5ce2198f74996",
"release": "v0.4.4",
"commit": "ffa587b3cc0c217bfd407e202aa45ac5390a1586",
"contentHash": "64c6ddc7019e327d9f6f9ffe276a694ed0b47fafea249f51ee8fee4c99fe7298",
"executables": [
"examples/with-astro/.githooks/commit-msg",
"examples/with-astro/.githooks/pre-commit",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"name": "lvbt-contributions",
"source": {
"source": "local",
"path": "../../node_modules/@lvbt/cli/plugins/lvbt-contributions"
"path": "../../node_modules/@lasvegasfortransit/cli/plugins/lvbt-contributions"
},
"policy": {
"installation": "AVAILABLE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"source": {
"source": "github",
"repo": "LasVegasForTransit/repository-tooling",
"ref": "v0.2.8"
"ref": "v0.4.4"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion .lvbt/web-platform/examples/with-astro/.codex/hooks.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"hooks": [
{
"type": "command",
"command": "node \"$(git rev-parse --show-toplevel)/node_modules/@lvbt/cli/plugins/lvbt-contributions/hooks/codex-pre-tool-use.mjs\"",
"command": "node \"$(git rev-parse --show-toplevel)/node_modules/@lasvegasfortransit/cli/plugins/lvbt-contributions/hooks/codex-pre-tool-use.mjs\"",
"timeout": 10
}
]
Expand Down
4 changes: 2 additions & 2 deletions .lvbt/web-platform/examples/with-astro/.githooks/commit-msg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env sh
# The shared hook lives in @lvbt/cli; repository-specific steps go below it.
# The shared hook lives in @lasvegasfortransit/cli; repository-specific steps go below it.
set -eu
ROOT=$(git rev-parse --show-toplevel)
sh "$ROOT/node_modules/@lvbt/cli/hooks/commit-msg.sh" "$@"
sh "$ROOT/node_modules/@lasvegasfortransit/cli/hooks/commit-msg.sh" "$@"
4 changes: 2 additions & 2 deletions .lvbt/web-platform/examples/with-astro/.githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env sh
# The shared hook lives in @lvbt/cli; repository-specific steps go below it.
# The shared hook lives in @lasvegasfortransit/cli; repository-specific steps go below it.
set -eu
ROOT=$(git rev-parse --show-toplevel)
sh "$ROOT/node_modules/@lvbt/cli/hooks/pre-commit.sh" "$@"
sh "$ROOT/node_modules/@lasvegasfortransit/cli/hooks/pre-commit.sh" "$@"
4 changes: 2 additions & 2 deletions .lvbt/web-platform/examples/with-astro/.githooks/pre-push
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env sh
# The shared hook lives in @lvbt/cli; repository-specific steps go below it.
# The shared hook lives in @lasvegasfortransit/cli; repository-specific steps go below it.
set -eu
ROOT=$(git rev-parse --show-toplevel)
sh "$ROOT/node_modules/@lvbt/cli/hooks/pre-push.sh" "$@"
sh "$ROOT/node_modules/@lasvegasfortransit/cli/hooks/pre-push.sh" "$@"
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env sh
# The shared hook lives in @lvbt/cli; repository-specific steps go below it.
# The shared hook lives in @lasvegasfortransit/cli; repository-specific steps go below it.
set -eu
ROOT=$(git rev-parse --show-toplevel)
sh "$ROOT/node_modules/@lvbt/cli/hooks/prepare-commit-msg.sh" "$@"
sh "$ROOT/node_modules/@lasvegasfortransit/cli/hooks/prepare-commit-msg.sh" "$@"
16 changes: 1 addition & 15 deletions .lvbt/web-platform/examples/with-astro/.github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,10 @@
"enabled": true,
"schedule": ["before 6am on monday"]
},
"customManagers": [
{
"description": "The @lvbt/* packages install from git tags of repository-tooling with a path: suffix that the npm manager does not parse, and the Claude Code marketplace pins the same tag. Track both as one dependency on the repository's tags.",
"customType": "regex",
"managerFilePatterns": ["/(^|/)package\\.json$/", "/(^|/)\\.claude/settings\\.json$/"],
"matchStrings": [
"github:LasVegasForTransit/repository-tooling#(?<currentValue>v\\d+\\.\\d+\\.\\d+)&path:/packages/[a-z-]+",
"\"repo\": \"LasVegasForTransit/repository-tooling\",\\s*\"ref\": \"(?<currentValue>v\\d+\\.\\d+\\.\\d+)\""
],
"depNameTemplate": "LasVegasForTransit/repository-tooling",
"datasourceTemplate": "github-tags",
"versioningTemplate": "semver"
}
],
"packageRules": [
{
"groupName": "LVBT repository standard",
"matchDepNames": ["LasVegasForTransit/repository-tooling"]
"matchPackageNames": ["@lasvegasfortransit/*"]
},
{
"groupName": "dev dependencies (non-major)",
Expand Down
6 changes: 6 additions & 0 deletions .lvbt/web-platform/examples/with-astro/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
node_modules/
dist/
coverage/
test-results/
playwright-report/
blob-report/
**/playwright/.cache/
.turbo/
.wrangler/
.env
Expand All @@ -9,4 +13,6 @@ coverage/
.dev.vars
.dev.vars.*
.DS_Store
# Agent worktrees are other checkouts of this repository.
.claude/worktrees/
.astro/
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@
// Playwright output.
"**/test-results",
"**/playwright-report",
// Agent worktrees are other checkouts of this repository.
".claude/worktrees",
"node_modules",
"**/node_modules",
"dist",
"**/dist",
".turbo",
".lvbt/web-platform",
"docs/superpowers",
"CHANGELOG.md",
],
Expand Down
1 change: 1 addition & 0 deletions .lvbt/web-platform/examples/with-astro/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@lasvegasfortransit:registry=https://npm.pkg.github.com
28 changes: 15 additions & 13 deletions .lvbt/web-platform/examples/with-astro/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,18 @@ command that fixes it (`pnpm check:fix` repairs everything a machine can).

Every LVBT repository answers to the same commands:

| Command | What it does |
| --------------------- | ---------------------------------------------------------- |
| `pnpm bootstrap` | Install dependencies, wire git hooks, and run preflight |
| `pnpm preflight` | Confirm the machine can build and deploy this repository |
| `pnpm check` | Format, docs, shape rules, lint, types, tests, repo checks |
| `pnpm check:fix` | Apply formatting and lint fixes |
| `pnpm build` | Build every package |
| `pnpm test` | Run every package's tests |
| `pnpm run deploy` | Build, then `wrangler deploy` every app (deployable repos) |
| `turbo gen workspace` | Scaffold a new package or app |
| Command | What it does |
| ----------------------------- | -------------------------------------------------------------- |
| `pnpm bootstrap` | Install dependencies, wire git hooks, and run preflight |
| `pnpm preflight` | Confirm the machine can build and deploy this repository |
| `pnpm preflight --production` | Report whether production has everything `platform.json` lists |
| `pnpm bootstrap --production` | Set up whatever production is missing, asking for values |
| `pnpm check` | Format, docs, shape rules, lint, types, tests, repo checks |
| `pnpm check:fix` | Apply formatting and lint fixes |
| `pnpm build` | Build every package |
| `pnpm test` | Run every package's tests |
| `pnpm run deploy` | Build, then `wrangler deploy` every app (deployable repos) |
| `turbo gen workspace` | Scaffold a new package or app |

## Create GitHub issues and pull requests

Expand All @@ -25,9 +27,9 @@ authorizes creating an issue or pull request. It carries the organization checkl
templates, and the only approved creation helper:

```bash
node node_modules/@lvbt/cli/plugins/lvbt-contributions/scripts/github-create.mjs issue \
node node_modules/@lasvegasfortransit/cli/plugins/lvbt-contributions/scripts/github-create.mjs issue \
--type bug|feature --title <title> --body-file <file>
node node_modules/@lvbt/cli/plugins/lvbt-contributions/scripts/github-create.mjs pr \
node node_modules/@lasvegasfortransit/cli/plugins/lvbt-contributions/scripts/github-create.mjs pr \
--title <title> --body-file <file> --base main
```

Expand All @@ -43,5 +45,5 @@ change crosses boundaries; never invent one for a feature, file, task, or role.

## The repository standard

Lint, format, TypeScript, and test settings extend the `@lvbt/*` packages from
Lint, format, TypeScript, and test settings extend the `@lasvegasfortransit/*` packages from
`LasVegasForTransit/repository-tooling`. Change a shared rule there, not here.
2 changes: 1 addition & 1 deletion .lvbt/web-platform/examples/with-astro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ repository's boundaries.
`pnpm run deploy` builds and runs `wrangler deploy` for every app with a wrangler config;
`.github/workflows/deploy.yml` does the same on every push to `main`.

Lint, format, TypeScript, and test settings extend the `@lvbt/*` packages from
Lint, format, TypeScript, and test settings extend the `@lasvegasfortransit/*` packages from
[`LasVegasForTransit/repository-tooling`](https://github.com/LasVegasForTransit/repository-tooling).
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { config } from '@lvbt/eslint-config/base';
import { config } from '@lasvegasfortransit/eslint-config/base';

export default config;
11 changes: 6 additions & 5 deletions .lvbt/web-platform/examples/with-astro/apps/site/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@lvbt/site",
"name": "@lasvegasfortransit/site",
"version": "0.0.0",
"private": true,
"type": "module",
Expand All @@ -8,6 +8,7 @@
"dev": "astro dev --host 127.0.0.1 --port 4321",
"preview": "astro preview --host 127.0.0.1 --port 4321",
"lint": "eslint . --max-warnings 0",
"sync": "astro sync",
"check-types": "astro check",
"test": "vitest run",
"test:e2e": "playwright test"
Expand All @@ -20,10 +21,10 @@
},
"devDependencies": {
"@astrojs/check": "catalog:",
"@lvbt/eslint-config": "github:LasVegasForTransit/repository-tooling#v0.2.8&path:/packages/eslint-config",
"@lvbt/playwright-config": "github:LasVegasForTransit/repository-tooling#v0.2.8&path:/packages/playwright-config",
"@lvbt/typescript-config": "github:LasVegasForTransit/repository-tooling#v0.2.8&path:/packages/typescript-config",
"@lvbt/vitest-config": "github:LasVegasForTransit/repository-tooling#v0.2.8&path:/packages/vitest-config",
"@lasvegasfortransit/eslint-config": "0.4.4",
"@lasvegasfortransit/playwright-config": "0.4.4",
"@lasvegasfortransit/typescript-config": "0.4.4",
"@lasvegasfortransit/vitest-config": "0.4.4",
"@playwright/test": "catalog:",
"@types/node": "catalog:",
"eslint": "catalog:",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineConfig } from '@playwright/test';

import { foregroundServerEnvironment, sharedConfig } from '@lvbt/playwright-config';
import { foregroundServerEnvironment, sharedConfig } from '@lasvegasfortransit/playwright-config';

const url = 'http://127.0.0.1:4321';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, test } from '@playwright/test';
import { expectNoAccessibilityViolations } from '@lvbt/playwright-config/accessibility';
import { monitorPageHealth } from '@lvbt/playwright-config/page-health';
import { expectNoAccessibilityViolations } from '@lasvegasfortransit/playwright-config/accessibility';
import { monitorPageHealth } from '@lasvegasfortransit/playwright-config/page-health';

test('the home page has one main heading', async ({ page }) => {
const health = monitorPageHealth(page);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@lvbt/typescript-config/astro.json",
"extends": "@lasvegasfortransit/typescript-config/astro.json",
"include": [".astro/types.d.ts", "src", "tests", "*.config.ts"],
"exclude": ["dist"]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from 'vitest/config';

import { sharedConfig } from '@lvbt/vitest-config';
import { sharedConfig } from '@lasvegasfortransit/vitest-config';

export default defineConfig({ ...sharedConfig });
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ of every tool for the whole organization. A package writes `"catalog:"` as a ver
pinned one.

<a id="eslint"></a>**ESLint**: finds likely bugs and enforces code rules. The rules come from
`@lvbt/eslint-config`.
`@lasvegasfortransit/eslint-config`.

<a id="prettier"></a>**Prettier**: formats code the same way for everyone, so formatting is never
discussed in review. The settings come from `@lvbt/prettier-config`.
discussed in review. The settings come from `@lasvegasfortransit/prettier-config`.

<a id="vitest"></a>**Vitest**: runs unit tests under `tests/`.

Expand All @@ -49,3 +49,9 @@ request. The required status is named `Validate`.

<a id="preflight"></a>**Preflight**: `pnpm preflight`, the check that your machine can build and
deploy this repository, with a fix printed for anything missing.

<a id="platform-manifest"></a>**Platform manifest**: `platform.json`, next to an app's production
`wrangler.jsonc`, which lists everything the app needs in production: its database, bucket, bot
check, admin sign-in, email domain, secrets, and the values that must never be set there.
`pnpm preflight --production` checks production against it, and `pnpm bootstrap --production` sets
up what is missing.
4 changes: 2 additions & 2 deletions .lvbt/web-platform/examples/with-astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"*": "prettier --write --ignore-unknown"
},
"devDependencies": {
"@lvbt/cli": "github:LasVegasForTransit/repository-tooling#v0.2.8&path:/packages/cli",
"@lvbt/prettier-config": "github:LasVegasForTransit/repository-tooling#v0.2.8&path:/packages/prettier-config",
"@lasvegasfortransit/cli": "0.4.4",
"@lasvegasfortransit/prettier-config": "0.4.4",
"lint-staged": "catalog:",
"markdownlint-cli2": "catalog:",
"markdownlint-rule-relative-links": "catalog:",
Expand Down
2 changes: 1 addition & 1 deletion .lvbt/web-platform/examples/with-astro/prettier.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import lvbt from '@lvbt/prettier-config';
import lvbt from '@lasvegasfortransit/prettier-config';

export default {
...lvbt,
Expand Down
5 changes: 4 additions & 1 deletion .lvbt/web-platform/examples/with-astro/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
"inputs": ["$TURBO_DEFAULT$", ".env*"],
"outputs": ["dist/**"]
},
"sync": {
"outputs": [".astro/**"]
},
"lint": {
"dependsOn": ["^lint"]
"dependsOn": ["^lint", "sync"]
},
"check-types": {
"dependsOn": ["^check-types"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"name": "lvbt-contributions",
"source": {
"source": "local",
"path": "../../node_modules/@lvbt/cli/plugins/lvbt-contributions"
"path": "../../node_modules/@lasvegasfortransit/cli/plugins/lvbt-contributions"
},
"policy": {
"installation": "AVAILABLE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"source": {
"source": "github",
"repo": "LasVegasForTransit/repository-tooling",
"ref": "v0.2.8"
"ref": "v0.4.4"
}
}
},
Expand Down
Loading
Loading