Skip to content

Commit 17b926e

Browse files
feat(create-spacetime): deployment config improvements, code refactor
1 parent 6477062 commit 17b926e

9 files changed

Lines changed: 417 additions & 386 deletions

File tree

pnpm-lock.yaml

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

templates/create-spacetime/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-spacetime",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"type": "module",
55
"author": {
66
"name": "Clockwork Labs",
@@ -35,7 +35,7 @@
3535
"test": "npm run build && node dist/index.js test-app --dry-run"
3636
},
3737
"dependencies": {
38-
"chalk": "^5.3.0",
38+
"chalk": "^5.3.2",
3939
"commander": "^12.0.0",
4040
"cross-spawn": "^7.0.3",
4141
"degit": "^2.8.4",
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
export const DEFAULT_TARGET_DIR = "my-spacetime-app";
2+
3+
export const SPACETIME_VERSIONS = {
4+
SDK: "^1.3.1",
5+
RUNTIME: "1.3.*",
6+
CLI: "1.3",
7+
} as const;
8+
9+
export const SERVER_CONFIG = {
10+
LOCAL_PORT: 3000,
11+
MAINCLOUD_URI: "wss://maincloud.spacetimedb.com",
12+
LOCAL_URI: "ws://localhost:3000",
13+
} as const;
14+
15+
export const TIMEOUTS = {
16+
COMMAND_TIMEOUT: 10000,
17+
SERVER_START_DELAY: 3000,
18+
} as const;
19+
20+
export const SPACETIME_SDK_PACKAGE = "@clockworklabs/spacetimedb-sdk";

0 commit comments

Comments
 (0)