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 .bun-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4.2
1.4.3
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ jobs:
- run: bun audit --audit-level=high
- run: bun run test
- run: bun run build
- run: bunx playwright install --with-deps chromium firefox
- run: bunx playwright install --with-deps chromium webkit
- run: bun run test:browser
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tools is a set of small tools that run in the browser. A change keeps each app a

## Setup

Requires [Bun](https://bun.sh) 1.4.2 or newer.
Requires [Bun](https://bun.sh) 1.4.3 or newer.

```bash
bun install
Expand All @@ -28,11 +28,11 @@ Put a test next to the pure logic it covers, the way `model.test.ts` sits beside
After a build, run real-browser checks with:

```bash
bunx playwright install chromium firefox
bunx playwright install chromium webkit
bun run test:browser
```

The suite uses isolated profiles and a temporary production-file server on port 5171, shut down by Playwright. It does not use or stop the development server on 5170. Chromium and Firefox cover editing, drawing, source-panel loading, keyboard menus, responsive headers, and automated WCAG A/AA checks in both themes. Chromium also covers native touch drawing/pinch and offline service-worker replacement. Automated accessibility checks complement manual keyboard and screen-reader testing; they do not certify accessibility.
The suite uses isolated profiles and a temporary production-file server on port 5171, shut down by Playwright. It does not use or stop the development server on 5170. Chromium and WebKit (the engine of Safari and every iOS browser) cover editing, drawing, source-panel loading, keyboard menus, responsive headers, and automated WCAG A/AA checks in both themes. Chromium also covers native touch drawing/pinch and offline service-worker replacement. Automated accessibility checks complement manual keyboard and screen-reader testing; they do not certify accessibility.

Builds enforce gzip JavaScript budgets from the catalog's `jsBudget`: the initial entry and static module preloads, plus all chunks including lazy ones. The SVG source editor loads when visible; all chunks are still precached for offline use. Change a budget only after measuring and explaining the additional cost.

Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ editing code, reached only through `packages/editor`

## Commands

| Command | What it does |
| ---------------------- | -------------------------------------------------- |
| `bun run dev [slug]` | Serve the whole site with hot reload |
| `bun run check` | Lint, typecheck and format check |
| `bun run test` | Run the test suites |
| `bun run test:browser` | Check the production build in Chromium and Firefox |
| `bun run build` | Build the whole site into `dist/` |
| `bun run verify` | `check` + `test` + `build` |
| `bun run new-app` | Scaffold a new app |
| Command | What it does |
| ---------------------- | ------------------------------------------------- |
| `bun run dev [slug]` | Serve the whole site with hot reload |
| `bun run check` | Lint, typecheck and format check |
| `bun run test` | Run the test suites |
| `bun run test:browser` | Check the production build in Chromium and WebKit |
| `bun run build` | Build the whole site into `dist/` |
| `bun run verify` | `check` + `test` + `build` |
| `bun run new-app` | Scaffold a new app |

## Contributing

Expand Down
2 changes: 1 addition & 1 deletion apps/codec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"build": "vite build",
"typecheck": "tsc --noEmit",
"typecheck": "bun check",
"test": "bun test"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/codes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"build": "vite build",
"typecheck": "tsc --noEmit",
"typecheck": "bun check",
"test": "bun test"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/digests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"build": "vite build",
"typecheck": "tsc --noEmit",
"typecheck": "bun check",
"test": "bun test"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/home/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"dev": "vite",
"build": "vite build",
"typecheck": "tsc --noEmit",
"typecheck": "bun check",
"test": "bun test"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/json/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"description": "Format, minify and validate JSON",
"scripts": {
"build": "vite build",
"typecheck": "tsc --noEmit",
"typecheck": "bun check",
"test": "bun test"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/jwt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"build": "vite build",
"typecheck": "tsc --noEmit",
"typecheck": "bun check",
"test": "bun test"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/svg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"description": "Trace reference images and export clean, pure SVG",
"scripts": {
"build": "vite build",
"typecheck": "tsc --noEmit",
"typecheck": "bun check",
"test": "bun test"
},
"devDependencies": {
Expand Down
Loading
Loading