create-runlot 0.1.0-rc.21 → 0.1.0-rc.23

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 (2) hide show
  1. package/dist/index.js +19 -14
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@ var USAGE = [
18
18
  "",
19
19
  " Next.js\xB7Hono\xB7\uC815\uC801 \uC0AC\uC774\uD2B8 \uC911 \uD558\uB098\uB85C \uD504\uB85C\uC81D\uD2B8\uB97C \uB9CC\uB4ED\uB2C8\uB2E4.",
20
20
  " --template \uC774 \uC5C6\uACE0 \uD130\uBBF8\uB110\uC774\uBA74 \uD15C\uD50C\uB9BF \uC120\uD0DD\uC744 \uC694\uCCAD\uD569\uB2C8\uB2E4.",
21
- " \uB9CC\uB4E0 \uB4A4: cd <dir> && runlot add pg auth storage && runlot deploy"
21
+ " \uB9CC\uB4E0 \uB4A4: cd <dir> && runlot deploy"
22
22
  ].join("\n");
23
23
  var NAME_RE = /^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/;
24
24
  function pkgJson(obj) {
@@ -107,12 +107,12 @@ function nextReadme(name) {
107
107
  "posts 20\uAC1C\uB97C \uADF8\uB9AC\uB294 \uC11C\uBC84 \uCEF4\uD3EC\uB10C\uD2B8 \uC608\uC81C\uC785\uB2C8\uB2E4.",
108
108
  "",
109
109
  "```",
110
- "runlot add pg auth storage",
111
110
  "runlot deploy",
112
111
  "```",
113
112
  "",
114
- "Postgres\xB7\uC778\uC99D\xB7\uC624\uBE0C\uC81D\uD2B8 \uC2A4\uD1A0\uB9AC\uC9C0\uAC00 \uBD99\uC740 \uB2E4\uC74C `runlot deploy` \uD558\uBA74 App Router \uAC00",
115
- "\uADF8\uB300\uB85C workerd \uC704\uC5D0\uC11C \uC2E4\uD589\uB429\uB2C8\uB2E4 (OpenNext, docs/nextjs.md).",
113
+ "`runlot.json` \uC758 `database`\xB7`auth`\xB7`storage` \uC120\uC5B8\uC744 \uBC30\uD3EC\uAC00 \uC77D\uC5B4 Postgres\xB7\uC778\uC99D\xB7",
114
+ "\uC624\uBE0C\uC81D\uD2B8 \uC2A4\uD1A0\uB9AC\uC9C0\uB97C \uB9CC\uB4E4\uACE0, App Router \uAC00 \uADF8\uB300\uB85C workerd \uC704\uC5D0\uC11C \uC2E4\uD589\uB429\uB2C8\uB2E4",
115
+ "(OpenNext, docs/nextjs.md).",
116
116
  ""
117
117
  ].join("\n");
118
118
  }
@@ -122,6 +122,9 @@ function nextTemplate(ctx) {
122
122
  if (org) runlotConfig["org"] = org;
123
123
  runlotConfig["framework"] = "next";
124
124
  runlotConfig["assets"] = "public";
125
+ runlotConfig["database"] = true;
126
+ runlotConfig["auth"] = true;
127
+ runlotConfig["storage"] = true;
125
128
  const packageJson = {
126
129
  name,
127
130
  version: "0.0.0",
@@ -137,8 +140,8 @@ function nextTemplate(ctx) {
137
140
  "react-dom": "^19.2.8",
138
141
  // 버전 범위는 release.yml 의 npm 잡이 태그와 같은 번호로 다시 쓴다 —
139
142
  // 여기 적힌 값은 마지막 공개 버전이다.
140
- "@runlot/next": "^0.1.0-rc.21",
141
- "@runlot/pg": "^0.1.0-rc.21"
143
+ "@runlot/next": "^0.1.0-rc.23",
144
+ "@runlot/pg": "^0.1.0-rc.23"
142
145
  },
143
146
  devDependencies: {
144
147
  typescript: "^5.7.2",
@@ -167,7 +170,7 @@ var HONO_INDEX_TS = [
167
170
  'import type { Db, Storage } from "@runlot/pg";',
168
171
  'import type { AuthBinding } from "@runlot/auth";',
169
172
  "",
170
- "// db\xB7auth\xB7storage \uB294 `runlot add pg auth storage` \uB4A4\uC5D0 \uC2E4\uC81C \uAC12\uC774 \uC628\uB2E4.",
173
+ "// db\xB7auth\xB7storage \uB294 runlot.json \uC758 \uC120\uC5B8\uC774\uB2E4. `runlot deploy` \uAC00 \uB9CC\uB4E0\uB2E4.",
171
174
  "interface Env {",
172
175
  " db: Db;",
173
176
  " auth: AuthBinding;",
@@ -205,11 +208,11 @@ function honoReadme(name) {
205
208
  "\uC2A4\uD1A0\uB9AC\uC9C0 \uC5C5\uB85C\uB4DC) \uB450 \uACBD\uB85C\uAC00 \uC788\uC2B5\uB2C8\uB2E4.",
206
209
  "",
207
210
  "```",
208
- "runlot add pg auth storage",
209
211
  "runlot deploy",
210
212
  "```",
211
213
  "",
212
- "\uC704 \uB458\uC744 \uC2E4\uD589\uD558\uBA74 `Env` \uC758 `db`\xB7`auth`\xB7`storage` \uAC00 \uC2E4\uC81C \uBC14\uC778\uB529\uC744 \uBC1B\uC2B5\uB2C8\uB2E4.",
214
+ "`runlot.json` \uC758 `database`\xB7`auth`\xB7`storage` \uC120\uC5B8\uC744 \uBC30\uD3EC\uAC00 \uC77D\uC5B4 \uB9CC\uB4E4\uACE0,",
215
+ "`Env` \uC758 `db`\xB7`auth`\xB7`storage` \uAC00 \uC2E4\uC81C \uBC14\uC778\uB529\uC744 \uBC1B\uC2B5\uB2C8\uB2E4.",
213
216
  ""
214
217
  ].join("\n");
215
218
  }
@@ -219,6 +222,9 @@ function honoTemplate(ctx) {
219
222
  if (org) runlotConfig["org"] = org;
220
223
  runlotConfig["main"] = "src/index.ts";
221
224
  runlotConfig["assets"] = "public";
225
+ runlotConfig["database"] = true;
226
+ runlotConfig["auth"] = true;
227
+ runlotConfig["storage"] = true;
222
228
  const packageJson = {
223
229
  name,
224
230
  version: "0.0.0",
@@ -226,8 +232,8 @@ function honoTemplate(ctx) {
226
232
  type: "module",
227
233
  dependencies: {
228
234
  hono: "^4.10.7",
229
- "@runlot/pg": "^0.1.0-rc.21",
230
- "@runlot/auth": "^0.1.0-rc.21"
235
+ "@runlot/pg": "^0.1.0-rc.23",
236
+ "@runlot/auth": "^0.1.0-rc.23"
231
237
  },
232
238
  devDependencies: {
233
239
  typescript: "^5.7.2",
@@ -285,11 +291,11 @@ function staticReadme(name) {
285
291
  "\uC815\uC801 \uC0AC\uC774\uD2B8 \uD15C\uD50C\uB9BF\uC785\uB2C8\uB2E4. `public/index.html` \uD558\uB098\uBFD0\uC774\uACE0 \uC6CC\uCEE4\uB294 \uC5C6\uC2B5\uB2C8\uB2E4.",
286
292
  "",
287
293
  "```",
288
- "runlot add pg auth storage",
289
294
  "runlot deploy",
290
295
  "```",
291
296
  "",
292
- "\uC6CC\uCEE4\uAC00 \uD544\uC694 \uC5C6\uC73C\uBA74 \uC704 \uCCAB \uC904\uC740 \uAC74\uB108\uB6F0\uC5B4\uB3C4 \uB429\uB2C8\uB2E4 \u2014 \uC790\uC0B0\uB9CC \uADF8\uB300\uB85C \uBC30\uD3EC\uB429\uB2C8\uB2E4.",
297
+ "\uC6CC\uCEE4\uAC00 \uC5C6\uC73C\uB2C8 \uB370\uC774\uD130\uBCA0\uC774\uC2A4\xB7\uC778\uC99D\xB7\uC2A4\uD1A0\uB9AC\uC9C0\uB3C4 \uC5C6\uC2B5\uB2C8\uB2E4. \uB098\uC911\uC5D0 \uC6CC\uCEE4\uB97C \uB354\uD558\uBA74",
298
+ '`runlot.json` \uC5D0 `"database": true` \uCC98\uB7FC \uC801\uACE0 \uBC30\uD3EC\uD558\uC138\uC694 \u2014 \uBC30\uD3EC\uAC00 \uB9CC\uB4ED\uB2C8\uB2E4.',
293
299
  ""
294
300
  ].join("\n");
295
301
  }
@@ -329,7 +335,6 @@ function scaffold(opts) {
329
335
  }
330
336
  console.log(`${dir} \uC744 \uB9CC\uB4E4\uC5C8\uC2B5\uB2C8\uB2E4.`);
331
337
  console.log(` cd ${target}`);
332
- console.log(" runlot add pg auth storage");
333
338
  console.log(org ? " runlot deploy" : " runlot deploy --org <slug>");
334
339
  return { dir, files: relPaths };
335
340
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-runlot",
3
- "version": "0.1.0-rc.21",
3
+ "version": "0.1.0-rc.23",
4
4
  "description": "npm create runlot — Next.js·Hono·정적 사이트 템플릿",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -21,7 +21,7 @@
21
21
  "esbuild": "^0.24.2",
22
22
  "typescript": "^5.7.2",
23
23
  "@types/node": "^22.10.2",
24
- "@runlot/config": "0.1.0-rc.21"
24
+ "@runlot/config": "0.1.0-rc.23"
25
25
  },
26
26
  "engines": {
27
27
  "node": ">=20"