create-donghanh 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -95,7 +95,11 @@ async function main() {
95
95
  console.log(" Next steps:");
96
96
  console.log(` cd ${target}`);
97
97
  console.log(" bun install");
98
- console.log(" bun run db:init # initialize D1 database");
98
+ if (template === "minimal") {
99
+ console.log(" bun run db:init # initialize D1 database");
100
+ } else {
101
+ console.log(" bun run db:push # push schema to D1");
102
+ }
99
103
  console.log(" bun run dev # start dev server");
100
104
  console.log();
101
105
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-donghanh",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Scaffold a donghanh project — conversational UI with JSX",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -16,7 +16,7 @@ function BoardDetail({ data }: OperationProps<Data>) {
16
16
  cards: col.cards.map(c => c.title),
17
17
  }))} />
18
18
  {columns.map(col => (
19
- <Action key={col.id} operation="add-card" label={`Add card to ${col.name}`} variables={{ boardId: board.id, columnId: col.id }} />
19
+ <Action operation="add-card" label={`Add card to ${col.name}`} variables={{ boardId: board.id, columnId: col.id }} />
20
20
  ))}
21
21
  <Action operation="add-member" label="Add member" variables={{ boardId: board.id }} />
22
22
  </Brief>
@@ -19,7 +19,7 @@ function ListBoards({ data }: OperationProps<Data>) {
19
19
  You have {data.boards.length} board(s).
20
20
  <Display data={data.boards.map(b => `${b.name} (${b.card_count} cards, ${b.member_count} members)`)} />
21
21
  {data.boards.map(b => (
22
- <Action key={b.id} operation="board-detail" label={`View ${b.name}`} variables={{ boardId: b.id }} />
22
+ <Action operation="board-detail" label={`View ${b.name}`} variables={{ boardId: b.id }} />
23
23
  ))}
24
24
  <Action operation="create-board" label="Create new board" />
25
25
  </Brief>
@@ -17,6 +17,9 @@
17
17
  "hono": "^4.7.0"
18
18
  },
19
19
  "devDependencies": {
20
+ "@cloudflare/workers-types": "^4.0.0",
21
+ "@types/node": "^22.0.0",
22
+ "better-sqlite3": "^11.0.0",
20
23
  "drizzle-kit": "^0.31.0",
21
24
  "wrangler": "^4.0.0",
22
25
  "typescript": "^5.8.0"
@@ -2,6 +2,7 @@
2
2
  "compilerOptions": {
3
3
  "target": "ES2017",
4
4
  "lib": ["esnext"],
5
+ "types": ["@cloudflare/workers-types", "node"],
5
6
  "skipLibCheck": true,
6
7
  "strict": true,
7
8
  "noEmit": true,
@@ -10,5 +11,6 @@
10
11
  "jsx": "react-jsx",
11
12
  "jsxImportSource": "@donghanh/core"
12
13
  },
13
- "include": ["**/*.ts", "**/*.tsx"]
14
+ "include": ["**/*.ts", "**/*.tsx"],
15
+ "exclude": ["node_modules"]
14
16
  }
@@ -5,14 +5,16 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "wrangler dev",
8
- "deploy": "wrangler deploy"
8
+ "deploy": "wrangler deploy",
9
+ "db:init": "wrangler d1 execute my-donghanh-app-db --local --file=schema.sql"
9
10
  },
10
11
  "dependencies": {
11
- "@donghanh/core": "^0.1.0",
12
- "@donghanh/hono": "^0.1.0",
12
+ "@donghanh/core": "^0.1.1",
13
+ "@donghanh/hono": "^0.1.1",
13
14
  "hono": "^4.7.0"
14
15
  },
15
16
  "devDependencies": {
17
+ "@cloudflare/workers-types": "^4.0.0",
16
18
  "wrangler": "^4.0.0",
17
19
  "typescript": "^5.8.0"
18
20
  }
@@ -2,6 +2,7 @@
2
2
  "compilerOptions": {
3
3
  "target": "ES2017",
4
4
  "lib": ["esnext"],
5
+ "types": ["@cloudflare/workers-types"],
5
6
  "skipLibCheck": true,
6
7
  "strict": true,
7
8
  "noEmit": true,
@@ -10,5 +11,6 @@
10
11
  "jsx": "react-jsx",
11
12
  "jsxImportSource": "@donghanh/core"
12
13
  },
13
- "include": ["**/*.ts", "**/*.tsx"]
14
+ "include": ["**/*.ts", "**/*.tsx"],
15
+ "exclude": ["node_modules"]
14
16
  }