create-guren-app 1.17.2 → 1.17.3
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/cli.js
CHANGED
|
@@ -1365,6 +1365,10 @@ const TEMPLATES_ROOT = fileURLToPath(new URL("../templates", import.meta.url));
|
|
|
1365
1365
|
function templateDir(name) {
|
|
1366
1366
|
return join(TEMPLATES_ROOT, name);
|
|
1367
1367
|
}
|
|
1368
|
+
const DEFAULT_RESOURCE_EXAMPLE = {
|
|
1369
|
+
name: "posts",
|
|
1370
|
+
fields: "title:string,body:text"
|
|
1371
|
+
};
|
|
1368
1372
|
const DEFAULT_TRANSFORM_FILES = [
|
|
1369
1373
|
"README.md",
|
|
1370
1374
|
"package.json",
|
|
@@ -1408,7 +1412,11 @@ const blueprintRegistry = {
|
|
|
1408
1412
|
ssr: ["default-ssr", "blog"]
|
|
1409
1413
|
},
|
|
1410
1414
|
transformFiles: BLOG_TRANSFORM_FILES,
|
|
1411
|
-
includesAuth: true
|
|
1415
|
+
includesAuth: true,
|
|
1416
|
+
resourceExample: {
|
|
1417
|
+
name: "tags",
|
|
1418
|
+
fields: "name:string"
|
|
1419
|
+
}
|
|
1412
1420
|
},
|
|
1413
1421
|
worker: {
|
|
1414
1422
|
name: "worker",
|
|
@@ -2054,7 +2062,8 @@ runMain(defineCommand({
|
|
|
2054
2062
|
if (blueprint.apiOnly) consola.log(" bunx guren make:controller Post # then register its actions in routes/api.ts");
|
|
2055
2063
|
else {
|
|
2056
2064
|
if (!blueprint.includesAuth && !authInstalled) consola.log(" bunx guren add auth");
|
|
2057
|
-
|
|
2065
|
+
const example = blueprint.resourceExample ?? DEFAULT_RESOURCE_EXAMPLE;
|
|
2066
|
+
consola.log(` bunx guren add resource ${example.name} --fields "${example.fields}"`);
|
|
2058
2067
|
}
|
|
2059
2068
|
consola.log("");
|
|
2060
2069
|
consola.info("Generate types and set up database:");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-guren-app",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.3",
|
|
4
4
|
"description": "Scaffold a Guren app: a Bun-first fullstack TypeScript framework with Laravel-style conventions, Inertia.js + React, Drizzle ORM, and an agent harness for Claude Code and other coding agents.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"guren",
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"test": "bun test"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@guren/cli": "^2.
|
|
24
|
-
"@guren/core": "^1.
|
|
25
|
-
"@guren/orm": "^2.
|
|
23
|
+
"@guren/cli": "^2.28.0",
|
|
24
|
+
"@guren/core": "^1.22.0",
|
|
25
|
+
"@guren/orm": "^2.13.0",
|
|
26
26
|
"drizzle-orm": "1.0.0-rc.4"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@guren/testing": "^1.14.
|
|
29
|
+
"@guren/testing": "^1.14.1",
|
|
30
30
|
"bun-types": "^1.3.1",
|
|
31
31
|
"drizzle-kit": "1.0.0-rc.4",
|
|
32
32
|
"oxlint": "~1.81.0",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"db:seed": "bunx guren db:seed"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@guren/cli": "^2.
|
|
25
|
-
"@guren/core": "^1.
|
|
24
|
+
"@guren/cli": "^2.28.0",
|
|
25
|
+
"@guren/core": "^1.22.0",
|
|
26
26
|
"@guren/inertia-client": "^1.2.2",
|
|
27
|
-
"@guren/orm": "^2.
|
|
27
|
+
"@guren/orm": "^2.13.0",
|
|
28
28
|
"@inertiajs/react": "^3.6.1",
|
|
29
29
|
"drizzle-orm": "1.0.0-rc.4",
|
|
30
30
|
"react": "^19.0.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"zod": "^4.5.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@guren/testing": "^1.14.
|
|
35
|
+
"@guren/testing": "^1.14.1",
|
|
36
36
|
"@tailwindcss/vite": "^4.2.2",
|
|
37
37
|
"@types/react": "^19.0.0",
|
|
38
38
|
"@types/react-dom": "^19.0.0",
|