create-guren-app 1.11.1 → 1.13.0
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/package.json +1 -1
- package/templates/api-only/.github/workflows/ci.yml +6 -16
- package/templates/api-only/.oxlintrc.json +20 -0
- package/templates/api-only/package.json +5 -2
- package/templates/default/.github/workflows/ci.yml +6 -16
- package/templates/default/.oxlintrc.json +20 -0
- package/templates/default/package.json +5 -2
package/package.json
CHANGED
|
@@ -17,19 +17,9 @@ jobs:
|
|
|
17
17
|
- name: Install dependencies
|
|
18
18
|
run: bun install --frozen-lockfile
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
- name: Integrity check
|
|
27
|
-
run: bunx guren check --ci --routes routes/api.ts
|
|
28
|
-
|
|
29
|
-
# Exits non-zero on failing findings. Scans dependencies too; pass
|
|
30
|
-
# --no-deps if this runner cannot reach the npm registry.
|
|
31
|
-
- name: Security audit
|
|
32
|
-
run: bunx guren audit --json --routes routes/api.ts
|
|
33
|
-
|
|
34
|
-
- name: Tests
|
|
35
|
-
run: bun test
|
|
20
|
+
# Every verification stage in one exit code: codegen, typecheck, lint,
|
|
21
|
+
# check, audit, test. --deps scans dependencies too; drop it if this
|
|
22
|
+
# runner cannot reach the npm registry. `bunx guren gate` runs the same
|
|
23
|
+
# stages locally.
|
|
24
|
+
- name: Gate
|
|
25
|
+
run: bunx guren gate --deps
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
3
|
+
// The guren rules ship with @guren/cli: await-async-assertion (a bare
|
|
4
|
+
// `expect(...).rejects` statement can never fail its test) and the comment rules.
|
|
5
|
+
"jsPlugins": ["@guren/cli/oxlint"],
|
|
6
|
+
"ignorePatterns": ["node_modules/**", ".guren/**", "dist/**", "public/build/**"],
|
|
7
|
+
"rules": {
|
|
8
|
+
"guren/await-async-assertion": "error",
|
|
9
|
+
// Comment hygiene is advisory: the agent harness feeds these back after every
|
|
10
|
+
// edit, while `bun run lint` stays green on them.
|
|
11
|
+
"guren/comment-length": "warn",
|
|
12
|
+
"guren/comment-banner": "warn",
|
|
13
|
+
"guren/comment-step-label": "warn",
|
|
14
|
+
"guren/comment-history": "warn",
|
|
15
|
+
"guren/comment-param-restates": "warn",
|
|
16
|
+
"no-unused-vars": ["warn", { "ignoreRestSiblings": true, "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }]
|
|
17
|
+
}
|
|
18
|
+
// Type-aware rules (typescript/no-floating-promises and friends) need
|
|
19
|
+
// `bun add -d oxlint-tsgolint` and `"options": { "typeAware": true }`.
|
|
20
|
+
}
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
"console": "bun bin/console.ts",
|
|
10
10
|
"codegen": "bunx guren codegen --routes routes/api.ts --force",
|
|
11
11
|
"typecheck": "tsc --noEmit",
|
|
12
|
+
"lint": "bunx oxlint",
|
|
13
|
+
"lint:fix": "bunx oxlint --fix",
|
|
12
14
|
"db:make": "bunx guren make:migration",
|
|
13
15
|
"db:migrate": "bunx guren db:migrate",
|
|
14
16
|
"db:reset": "bunx guren db:reset",
|
|
@@ -18,8 +20,8 @@
|
|
|
18
20
|
"test": "bun test"
|
|
19
21
|
},
|
|
20
22
|
"dependencies": {
|
|
21
|
-
"@guren/cli": "^2.
|
|
22
|
-
"@guren/core": "^1.
|
|
23
|
+
"@guren/cli": "^2.16.0",
|
|
24
|
+
"@guren/core": "^1.14.0",
|
|
23
25
|
"@guren/orm": "^2.6.3",
|
|
24
26
|
"drizzle-orm": "1.0.0-rc.4"
|
|
25
27
|
},
|
|
@@ -27,6 +29,7 @@
|
|
|
27
29
|
"@guren/testing": "^1.9.0",
|
|
28
30
|
"bun-types": "^1.3.1",
|
|
29
31
|
"drizzle-kit": "1.0.0-rc.4",
|
|
32
|
+
"oxlint": "~1.81.0",
|
|
30
33
|
"typescript": "^5.4.0"
|
|
31
34
|
}
|
|
32
35
|
}
|
|
@@ -17,19 +17,9 @@ jobs:
|
|
|
17
17
|
- name: Install dependencies
|
|
18
18
|
run: bun install --frozen-lockfile
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
- name: Integrity check
|
|
27
|
-
run: bunx guren check --ci
|
|
28
|
-
|
|
29
|
-
# Exits non-zero on failing findings. Scans dependencies too; pass
|
|
30
|
-
# --no-deps if this runner cannot reach the npm registry.
|
|
31
|
-
- name: Security audit
|
|
32
|
-
run: bunx guren audit --json
|
|
33
|
-
|
|
34
|
-
- name: Tests
|
|
35
|
-
run: bun test
|
|
20
|
+
# Every verification stage in one exit code: codegen, typecheck, lint,
|
|
21
|
+
# check, audit, test. --deps scans dependencies too; drop it if this
|
|
22
|
+
# runner cannot reach the npm registry. `bunx guren gate` runs the same
|
|
23
|
+
# stages locally.
|
|
24
|
+
- name: Gate
|
|
25
|
+
run: bunx guren gate --deps
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
3
|
+
// The guren rules ship with @guren/cli: await-async-assertion (a bare
|
|
4
|
+
// `expect(...).rejects` statement can never fail its test) and the comment rules.
|
|
5
|
+
"jsPlugins": ["@guren/cli/oxlint"],
|
|
6
|
+
"ignorePatterns": ["node_modules/**", ".guren/**", "dist/**", "public/build/**"],
|
|
7
|
+
"rules": {
|
|
8
|
+
"guren/await-async-assertion": "error",
|
|
9
|
+
// Comment hygiene is advisory: the agent harness feeds these back after every
|
|
10
|
+
// edit, while `bun run lint` stays green on them.
|
|
11
|
+
"guren/comment-length": "warn",
|
|
12
|
+
"guren/comment-banner": "warn",
|
|
13
|
+
"guren/comment-step-label": "warn",
|
|
14
|
+
"guren/comment-history": "warn",
|
|
15
|
+
"guren/comment-param-restates": "warn",
|
|
16
|
+
"no-unused-vars": ["warn", { "ignoreRestSiblings": true, "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }]
|
|
17
|
+
}
|
|
18
|
+
// Type-aware rules (typescript/no-floating-promises and friends) need
|
|
19
|
+
// `bun add -d oxlint-tsgolint` and `"options": { "typeAware": true }`.
|
|
20
|
+
}
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
"dev:server": "bun --hot bin/serve.ts",
|
|
10
10
|
"console": "bun bin/console.ts",
|
|
11
11
|
"typecheck": "tsc --noEmit",
|
|
12
|
+
"lint": "bunx oxlint",
|
|
13
|
+
"lint:fix": "bunx oxlint --fix",
|
|
12
14
|
"test": "bun test",
|
|
13
15
|
"build": "bun run codegen && bunx vite build",
|
|
14
16
|
"preview": "NODE_ENV=production bun bin/serve.ts",
|
|
@@ -19,8 +21,8 @@
|
|
|
19
21
|
"db:seed": "bunx guren db:seed"
|
|
20
22
|
},
|
|
21
23
|
"dependencies": {
|
|
22
|
-
"@guren/cli": "^2.
|
|
23
|
-
"@guren/core": "^1.
|
|
24
|
+
"@guren/cli": "^2.16.0",
|
|
25
|
+
"@guren/core": "^1.14.0",
|
|
24
26
|
"@guren/inertia-client": "^1.1.3",
|
|
25
27
|
"@guren/orm": "^2.6.3",
|
|
26
28
|
"@inertiajs/react": "^3.6.1",
|
|
@@ -38,6 +40,7 @@
|
|
|
38
40
|
"bun-types": "^1.3.1",
|
|
39
41
|
"drizzle-kit": "1.0.0-rc.4",
|
|
40
42
|
"mermaid": "^11.0.0",
|
|
43
|
+
"oxlint": "~1.81.0",
|
|
41
44
|
"tailwindcss": "^4.2.2",
|
|
42
45
|
"typescript": "^5.4.0",
|
|
43
46
|
"vite": "^8.0.0"
|