Skip to content
Draft
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
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI

on:
push:
branches: [main]
pull_request:

jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- uses: actions/setup-node@v4
with:
node-version: "22"
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

# Every top-level folder must stay pullable on its own — no workspace-only
# dependency specifiers (workspace:/catalog:/link:/file:).
- name: Lint standalone packages
run: pnpm lint:standalone

- name: Run tests
run: pnpm -r test
8 changes: 6 additions & 2 deletions account-history/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"scripts": {
"build": "vite build",
"dev": "vite build --watch",
"register": "pw-modules add \"$MODULE_SETTINGS_DOC_URL\" \"$(pushwork url)\""
"register": "pw-modules add \"$MODULE_SETTINGS_DOC_URL\" \"$(pushwork url)\"",
"test": "vitest run",
"test:watch": "vitest"
},
"dependencies": {
"@automerge/automerge-repo-solid-primitives": "2.5.2"
Expand All @@ -22,10 +24,12 @@
"@inkandswitch/patchwork-filesystem": "^0.0.4",
"@inkandswitch/patchwork-plugins": "^0.0.6",
"babel-preset-solid": "^1.9.9",
"happy-dom": "^15.11.7",
"solid-js": "^1.9.9",
"typescript": "^5.9.3",
"vite": "^7.1.9",
"vite-plugin-css-injected-by-js": "^3.5.2",
"vite-plugin-solid": "^2.11.10",
"vite-plugin-css-injected-by-js": "^3.5.2"
"vitest": "^3.2.4"
}
}
14 changes: 14 additions & 0 deletions account-history/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import {defineConfig} from "vitest/config"
import solid from "vite-plugin-solid"

export default defineConfig({
plugins: [solid()],
test: {
environment: "happy-dom",
globals: true,
passWithNoTests: true,
},
resolve: {
conditions: ["development", "browser"],
},
})
10 changes: 8 additions & 2 deletions account-picker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
"build": "node esbuild/build.ts",
"dev": "node esbuild/watch.ts",
"pushwatch": "pnpm dev pushwork",
"register": "pw-modules add \"$MODULE_SETTINGS_DOC_URL\" \"$(pushwork url)\""
"register": "pw-modules add \"$MODULE_SETTINGS_DOC_URL\" \"$(pushwork url)\"",
"test": "vitest run",
"test:watch": "vitest"
},
"dependencies": {
"@automerge/automerge": "^3.2.5",
Expand All @@ -34,6 +36,10 @@
"@babel/parser": "7.28.4",
"babel-preset-solid": "^1.9.9",
"esbuild": "^0.23.1",
"typescript": "^5.8.3"
"happy-dom": "^15.11.7",
"typescript": "^5.8.3",
"vite": "^7.1.9",
"vite-plugin-solid": "^2.11.10",
"vitest": "^3.2.4"
}
}
14 changes: 14 additions & 0 deletions account-picker/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import {defineConfig} from "vitest/config"
import solid from "vite-plugin-solid"

export default defineConfig({
plugins: [solid()],
test: {
environment: "happy-dom",
globals: true,
passWithNoTests: true,
},
resolve: {
conditions: ["development", "browser"],
},
})
8 changes: 7 additions & 1 deletion add-doc-to-sidebar-button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@
"main": "./index.js",
"scripts": {
"sync": "pushwork sync",
"register": "pw-modules add \"$MODULE_SETTINGS_DOC_URL\" \"$(pushwork url)\""
"register": "pw-modules add \"$MODULE_SETTINGS_DOC_URL\" \"$(pushwork url)\"",
"test": "vitest run",
"test:watch": "vitest"
},
"dependencies": {
"@automerge/automerge": "^3.2.5",
"@automerge/automerge-repo": "^2.6.0-subduction.9",
"@inkandswitch/patchwork-filesystem": "^0.0.4",
"@inkandswitch/patchwork-plugins": "^0.0.6"
},
"devDependencies": {
"happy-dom": "^15.11.7",
"vitest": "^3.2.4"
}
}
9 changes: 9 additions & 0 deletions add-doc-to-sidebar-button/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import {defineConfig} from "vitest/config"

export default defineConfig({
test: {
environment: "happy-dom",
globals: true,
passWithNoTests: true,
},
})
10 changes: 8 additions & 2 deletions codemirror-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
"build": "node esbuild/build.ts",
"dev": "node esbuild/watch.ts",
"pushwatch": "pnpm dev pushwork",
"register": "pw-modules add \"$MODULE_SETTINGS_DOC_URL\" \"$(pushwork url)\""
"register": "pw-modules add \"$MODULE_SETTINGS_DOC_URL\" \"$(pushwork url)\"",
"test": "vitest run",
"test:watch": "vitest"
},
"dependencies": {
"@automerge/automerge-codemirror": "^0.2.0",
Expand All @@ -49,7 +51,11 @@
"esbuild": "^0.23.1",
"eslint": "^9.36.0",
"globals": "^16.4.0",
"happy-dom": "^15.11.7",
"typescript": "~5.9.3",
"typescript-eslint": "^8.45.0"
"typescript-eslint": "^8.45.0",
"vite": "^7.1.9",
"vite-plugin-solid": "^2.11.10",
"vitest": "^3.2.4"
}
}
14 changes: 14 additions & 0 deletions codemirror-base/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import {defineConfig} from "vitest/config"
import solid from "vite-plugin-solid"

export default defineConfig({
plugins: [solid()],
test: {
environment: "happy-dom",
globals: true,
passWithNoTests: true,
},
resolve: {
conditions: ["development", "browser"],
},
})
8 changes: 6 additions & 2 deletions codemirror-markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
"build": "node esbuild/build.ts",
"dev": "node esbuild/watch.ts",
"pushwatch": "pnpm dev pushwork",
"register": "pw-modules add \"$MODULE_SETTINGS_DOC_URL\" \"$(pushwork url)\""
"register": "pw-modules add \"$MODULE_SETTINGS_DOC_URL\" \"$(pushwork url)\"",
"test": "vitest run",
"test:watch": "vitest"
},
"dependencies": {
"@automerge/automerge": "^3.2.5",
Expand All @@ -56,7 +58,9 @@
"esbuild": "^0.23.1",
"eslint": "^9.36.0",
"globals": "^16.4.0",
"happy-dom": "^15.11.7",
"typescript": "~5.9.3",
"typescript-eslint": "^8.45.0"
"typescript-eslint": "^8.45.0",
"vitest": "^3.2.4"
}
}
9 changes: 9 additions & 0 deletions codemirror-markdown/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import {defineConfig} from "vitest/config"

export default defineConfig({
test: {
environment: "happy-dom",
globals: true,
passWithNoTests: true,
},
})
8 changes: 6 additions & 2 deletions commands/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
"build": "node esbuild/build.ts",
"dev": "node esbuild/watch.ts",
"pushwatch": "pnpm dev pushwork",
"register": "pw-modules add \"$MODULE_SETTINGS_DOC_URL\" \"$(pushwork url)\""
"register": "pw-modules add \"$MODULE_SETTINGS_DOC_URL\" \"$(pushwork url)\"",
"test": "vitest run",
"test:watch": "vitest"
},
"dependencies": {
"@inkandswitch/patchwork-bootloader": "^0.0.4",
Expand All @@ -23,6 +25,8 @@
},
"devDependencies": {
"@automerge/automerge-repo": "^2.6.0-subduction.9",
"esbuild": "^0.23.1"
"esbuild": "^0.23.1",
"happy-dom": "^15.11.7",
"vitest": "^3.2.4"
}
}
9 changes: 9 additions & 0 deletions commands/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import {defineConfig} from "vitest/config"

export default defineConfig({
test: {
environment: "happy-dom",
globals: true,
passWithNoTests: true,
},
})
8 changes: 6 additions & 2 deletions comments-view/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"dev": "vite build --watch",
"build": "vite build",
"sync": "vite build && pushwork sync",
"register": "pw-modules add \"$MODULE_SETTINGS_DOC_URL\" \"$(pushwork url)\""
"register": "pw-modules add \"$MODULE_SETTINGS_DOC_URL\" \"$(pushwork url)\"",
"test": "vitest run",
"test:watch": "vitest"
},
"dependencies": {
"@automerge/automerge": "3.3.0-fragments.1",
Expand All @@ -27,9 +29,11 @@
"@typescript-eslint/parser": "^8.40.0",
"eslint": "^9.34.0",
"globals": "^16.4.0",
"happy-dom": "^15.11.7",
"typescript-eslint": "^8.41.0",
"vite": "^7.1.9",
"vite-plugin-css-injected-by-js": "^3.5.2",
"vite-plugin-solid": "^2.11.10"
"vite-plugin-solid": "^2.11.10",
"vitest": "^3.2.4"
}
}
14 changes: 14 additions & 0 deletions comments-view/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import {defineConfig} from "vitest/config"
import solid from "vite-plugin-solid"

export default defineConfig({
plugins: [solid()],
test: {
environment: "happy-dom",
globals: true,
passWithNoTests: true,
},
resolve: {
conditions: ["development", "browser"],
},
})
11 changes: 8 additions & 3 deletions contact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
"build": "node esbuild/build.ts",
"dev": "node esbuild/watch.ts",
"pushwatch": "pnpm dev pushwork",
"register": "pw-modules add \"$MODULE_SETTINGS_DOC_URL\" \"$(pushwork url)\""
"register": "pw-modules add \"$MODULE_SETTINGS_DOC_URL\" \"$(pushwork url)\"",
"test": "vitest run",
"test:watch": "vitest"
},
"keywords": [],
"author": "Ink & Switch",
Expand All @@ -29,7 +31,7 @@
"@inkandswitch/patchwork-providers": "^0.2.1",
"@inkandswitch/patchwork-providers-react": "^0.2.1",
"@radix-ui/react-avatar": "^1.1.10",
"lucide-react": "^0.469.0",
"lucide-react": "^0.469.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
Expand All @@ -41,6 +43,9 @@
"@vitejs/plugin-react": "^4.5.1",
"esbuild": "^0.23.1",
"eslint-plugin-react-hooks": "^4.6.2",
"typescript": "^5.8.3"
"happy-dom": "^15.11.7",
"typescript": "^5.8.3",
"vite": "^7.1.9",
"vitest": "^3.2.4"
}
}
11 changes: 11 additions & 0 deletions contact/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import {defineConfig} from "vitest/config"
import react from "@vitejs/plugin-react"

export default defineConfig({
plugins: [react()],
test: {
environment: "happy-dom",
globals: true,
passWithNoTests: true,
},
})
10 changes: 9 additions & 1 deletion doc-openwith/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{
"name": "document open with",
"type": "module",
"main": "doc-openwith.js"
"main": "doc-openwith.js",
"devDependencies": {
"happy-dom": "^15.11.7",
"vitest": "^3.2.4"
},
"scripts": {
"test": "vitest run",
"test:watch": "vitest"
}
}
9 changes: 9 additions & 0 deletions doc-openwith/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import {defineConfig} from "vitest/config"

export default defineConfig({
test: {
environment: "happy-dom",
globals: true,
passWithNoTests: true,
},
})
10 changes: 9 additions & 1 deletion doc-presence/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{
"name": "document presence",
"type": "module",
"main": "doc-presence.js"
"main": "doc-presence.js",
"devDependencies": {
"happy-dom": "^15.11.7",
"vitest": "^3.2.4"
},
"scripts": {
"test": "vitest run",
"test:watch": "vitest"
}
}
9 changes: 9 additions & 0 deletions doc-presence/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import {defineConfig} from "vitest/config"

export default defineConfig({
test: {
environment: "happy-dom",
globals: true,
passWithNoTests: true,
},
})
8 changes: 6 additions & 2 deletions doc-title/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"dev": "vite build --watch",
"build": "vite build",
"sync": "vite build && pushwork sync",
"register": "pw-modules add \"$MODULE_SETTINGS_DOC_URL\" \"$(pushwork url)\""
"register": "pw-modules add \"$MODULE_SETTINGS_DOC_URL\" \"$(pushwork url)\"",
"test": "vitest run",
"test:watch": "vitest"
},
"dependencies": {
"@automerge/automerge": "^3.2.5",
Expand All @@ -23,8 +25,10 @@
"@typescript-eslint/parser": "^8.40.0",
"eslint": "^9.34.0",
"globals": "^16.4.0",
"happy-dom": "^15.11.7",
"typescript-eslint": "^8.41.0",
"vite": "^7.1.9",
"vite-plugin-css-injected-by-js": "^3.5.2"
"vite-plugin-css-injected-by-js": "^3.5.2",
"vitest": "^3.2.4"
}
}
Loading
Loading