create-kor 0.1.0 → 0.2.1

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.
Files changed (3) hide show
  1. package/README.md +47 -0
  2. package/index.js +3 -0
  3. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,47 @@
1
+ # create-kor
2
+
3
+ Scaffold a new **kor** full-stack monorepo in seconds.
4
+
5
+ ## Usage
6
+
7
+ ```bash
8
+ pnpm create kor <project-name>
9
+ # or
10
+ npx create-kor <project-name>
11
+ ```
12
+
13
+ This will:
14
+
15
+ 1. Clone the [kor](https://github.com/mastoj/kor) monorepo template into a new `<project-name>` directory
16
+ 2. Set the root `package.json` name to your project name
17
+ 3. Create `apps/web/.env.local` with a default API URL
18
+ 4. Initialise a fresh git repository with an initial commit
19
+
20
+ ## Getting started
21
+
22
+ ```bash
23
+ cd <project-name>
24
+ pnpm install
25
+ pnpm dev
26
+ ```
27
+
28
+ - **Web app** — [http://localhost:3000](http://localhost:3000)
29
+ - **API** — [http://localhost:3001](http://localhost:3001)
30
+
31
+ ## What's inside
32
+
33
+ The scaffolded project is a pnpm monorepo with:
34
+
35
+ | Path | Description |
36
+ |---|---|
37
+ | `apps/web` | Next.js frontend (React Server Components, tRPC client) |
38
+ | `apps/api` | Hono API server with tRPC router |
39
+ | `packages/ui` | Shared UI components (Base UI) |
40
+ | `packages/db` | Drizzle ORM schema & client (SQLite / PostgreSQL) |
41
+ | `packages/domain` | Business logic / domain services |
42
+ | `packages/shared` | Shared types and utilities |
43
+
44
+ ## Requirements
45
+
46
+ - Node.js >= 20
47
+ - pnpm
package/index.js CHANGED
@@ -31,6 +31,9 @@ try {
31
31
  process.exit(1);
32
32
  }
33
33
 
34
+ // Remove the scaffolding package from the generated project
35
+ fs.rmSync(path.join(dest, "create-kor"), { recursive: true, force: true });
36
+
34
37
  // Update root package.json name
35
38
  const pkgPath = path.join(dest, "package.json");
36
39
  const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf-8"));
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "create-kor",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "Create a new kor project",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "create-kor": "./index.js"
8
8
  },
9
- "files": ["index.js"],
9
+ "files": ["index.js", "README.md"],
10
10
  "dependencies": {
11
11
  "tiged": "^2.12.7"
12
12
  },