Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.

Commit 0a740a7

Browse files
committed
chore: add syncserver script to package.json.
This makes it easy to start a local syncserver during development.
1 parent 3dac0c7 commit 0a740a7

File tree

7 files changed

+79
-2
lines changed

7 files changed

+79
-2
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
node_modules
22
docs-dist/
3-
data/*
3+
packages/*/data
44
!data/.placeholder
55
.turbo
66
packages/*/dist

data/.placeholder

Whitespace-only changes.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
},
66
"scripts": {
77
"build-api-docs": "turbo build-api-docs",
8+
"syncserver": "PORT=8095 DB_FILE=./data/data.sqlite turbo syncserver",
89
"publish-packages": "turbo build && beachball publish -m 'chore: publish packages.'"
910
},
1011
"devDependencies": {
1112
"@repo/tsconfig": "workspace:*",
1213
"beachball": "^2.54.0",
14+
"deno": "^2.3.1",
1315
"pkgroll": "^2.12.2",
1416
"turbo": "^2.5.2",
1517
"typescript": "^5.8.3"

packages/leaf-sync-ws/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"license": "MIT or Apache-2.0",
66
"type": "module",
77
"scripts": {
8-
"build": "pkgroll --minify --clean-dist --sourcemap && tsc"
8+
"build": "pkgroll --minify --clean-dist --sourcemap && tsc",
9+
"syncserver": "PORT=8095 DB_FILE=./data/data.sqlite npx deno run --import-map syncserver-dev-import-map.json -A --unstable-kv src/deno-server.ts"
910
},
1011
"exports": {
1112
".": {
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"imports": {
3+
"@muni-town/leaf": "../leaf/dist/index.js",
4+
"@muni-town/leaf-storage-deno-kv": "../leaf-storage-deno-kv/dist/index.js"
5+
}
6+
}

pnpm-lock.yaml

Lines changed: 64 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

turbo.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
"check-types": {
1313
"dependsOn": ["^check-types"]
1414
},
15+
"syncserver": {
16+
"dependsOn": ["build"],
17+
"persistent": true
18+
},
1519
"dev": {
1620
"persistent": true,
1721
"cache": false

0 commit comments

Comments
 (0)