create-einja-app 0.2.15 → 0.2.17

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-einja-app",
3
- "version": "0.2.15",
3
+ "version": "0.2.17",
4
4
  "description": "CLI tool to create new projects with Einja Management Template",
5
5
  "type": "module",
6
6
  "bin": {
@@ -18,10 +18,10 @@ if [[ "$file_path" =~ \.(ts|tsx|js|jsx|json)$ ]]; then
18
18
  cd "$CLAUDE_PROJECT_DIR" 2>/dev/null || exit 0
19
19
 
20
20
  # biome check(format + lint)を実行、自動修正可能なものは修正
21
- npx biome check --write "$file_path" 2>/dev/null || true
21
+ pnpm exec biome check --write "$file_path" 2>/dev/null || true
22
22
 
23
23
  # 修正後に残っているlintエラーをチェック(any型など自動修正できないもの)
24
- lint_errors=$(npx biome lint "$file_path" 2>&1 | grep -E "lint/|noExplicitAny|error" | head -20)
24
+ lint_errors=$(pnpm exec biome lint "$file_path" 2>&1 | grep -E "lint/|noExplicitAny|error" | head -20)
25
25
 
26
26
  if [ -n "$lint_errors" ]; then
27
27
  echo "" >&2
@@ -27,12 +27,9 @@ jobs:
27
27
  - name: Install dependencies
28
28
  run: pnpm install --frozen-lockfile
29
29
 
30
- - name: Generate Prisma Client
31
- run: pnpm db:generate
32
-
33
- - name: Generate Panda CSS
30
+ - name: Generate artifacts
34
31
  run: |
35
- pnpm --filter @einja/web panda
32
+ pnpm generate
36
33
  # Panda CSS生成確認
37
34
  if [ ! -d "apps/web/styled-system" ]; then
38
35
  echo "Error: styled-system directory was not created"
@@ -79,6 +79,27 @@ excluded_tools: []
79
79
  # initial prompt for the project. It will always be given to the LLM upon activating the project
80
80
  # (contrary to the memories, which are loaded on demand).
81
81
  initial_prompt: ""
82
-
82
+ # the name by which the project can be referenced within Serena
83
83
  project_name: "einja-management-template"
84
+
85
+ # list of tools to include that would otherwise be disabled (particularly optional tools that are disabled by default)
84
86
  included_optional_tools: []
87
+
88
+ # list of mode names to that are always to be included in the set of active modes
89
+ # The full set of modes to be activated is base_modes + default_modes.
90
+ # If the setting is undefined, the base_modes from the global configuration (serena_config.yml) apply.
91
+ # Otherwise, this setting overrides the global configuration.
92
+ # Set this to [] to disable base modes for this project.
93
+ # Set this to a list of mode names to always include the respective modes for this project.
94
+ base_modes:
95
+
96
+ # list of mode names that are to be activated by default.
97
+ # The full set of modes to be activated is base_modes + default_modes.
98
+ # If the setting is undefined, the default_modes from the global configuration (serena_config.yml) apply.
99
+ # Otherwise, this overrides the setting from the global configuration (serena_config.yml).
100
+ # This setting can, in turn, be overridden by CLI parameters (--mode).
101
+ default_modes:
102
+
103
+ # fixed set of tools to use as the base tool set (if non-empty), replacing Serena's default set of tools.
104
+ # This cannot be combined with non-empty excluded_tools or included_optional_tools.
105
+ fixed_tools: []
@@ -18,12 +18,17 @@
18
18
 
19
19
  | 作業 | 委託先 |
20
20
  |------|--------|
21
- | コミット・プッシュ | `task-committer` |
22
21
  | コンフリクト解消 | `conflict-resolver` |
23
22
  | コード実装 | `task-executer` |
24
23
  | 品質検証(QA) | `task-qa` |
25
24
  | 実装レビュー | `task-reviewer` |
26
25
 
26
+ #### Skill(直接呼び出し)
27
+
28
+ | 作業 | 使用するSkill |
29
+ |------|--------------|
30
+ | コミット・プッシュ | `einja-task-commit` Skill |
31
+
27
32
  #### ビルトインサブエージェント(探索・計画用)
28
33
 
29
34
  | 作業 | 委託先 | 説明 |
@@ -4,8 +4,9 @@
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "dev": "rm -rf .next && next dev --turbopack --port ${PORT_WEB:-3000}",
7
- "build": "panda codegen && next build",
7
+ "build": "next build",
8
8
  "start": "next start",
9
+ "generate": "panda codegen",
9
10
  "panda": "panda codegen",
10
11
  "lint": "biome check .",
11
12
  "lint:fix": "biome check --write",
@@ -56,5 +56,34 @@
56
56
  "formatter": {
57
57
  "trailingCommas": "es5"
58
58
  }
59
- }
59
+ },
60
+ "overrides": [
61
+ {
62
+ "include": ["apps/**"],
63
+ "linter": {
64
+ "rules": {
65
+ "correctness": {
66
+ "noRestrictedImports": {
67
+ "level": "error",
68
+ "options": {
69
+ "paths": {
70
+ "@prisma/client": "@prisma/clientは@repo/server-core経由で使用してください",
71
+ "../packages/server-core": "packages/server-coreへの相対パスimportは禁止です。@repo/server-coreを使用してください",
72
+ "../packages/server-core/src": "packages/server-coreへの相対パスimportは禁止です。@repo/server-coreを使用してください",
73
+ "../../packages/server-core": "packages/server-coreへの相対パスimportは禁止です。@repo/server-coreを使用してください",
74
+ "../../packages/server-core/src": "packages/server-coreへの相対パスimportは禁止です。@repo/server-coreを使用してください",
75
+ "../../../packages/server-core": "packages/server-coreへの相対パスimportは禁止です。@repo/server-coreを使用してください",
76
+ "../../../packages/server-core/src": "packages/server-coreへの相対パスimportは禁止です。@repo/server-coreを使用してください",
77
+ "../../../../packages/server-core": "packages/server-coreへの相対パスimportは禁止です。@repo/server-coreを使用してください",
78
+ "../../../../packages/server-core/src": "packages/server-coreへの相対パスimportは禁止です。@repo/server-coreを使用してください",
79
+ "../../../../../packages/server-core": "packages/server-coreへの相対パスimportは禁止です。@repo/server-coreを使用してください",
80
+ "../../../../../packages/server-core/src": "packages/server-coreへの相対パスimportは禁止です。@repo/server-coreを使用してください"
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
87
+ }
88
+ ]
60
89
  }
@@ -19,6 +19,7 @@
19
19
  "build:dev": "dotenvx run -f .env.develop -- turbo run build",
20
20
  "build:local": "turbo run build",
21
21
  "start": "turbo run start",
22
+ "generate": "turbo run generate",
22
23
  "lint": "turbo run lint",
23
24
  "lint:fix": "turbo run lint:fix",
24
25
  "format": "turbo run format",
@@ -7,6 +7,7 @@
7
7
  "./testing": "./src/testing/index.ts"
8
8
  },
9
9
  "scripts": {
10
+ "generate": "prisma generate",
10
11
  "db:generate": "prisma generate",
11
12
  "db:push": "prisma db push",
12
13
  "db:migrate": "prisma migrate dev",
@@ -3,11 +3,11 @@
3
3
  "globalDependencies": ["**/.env.*local"],
4
4
  "tasks": {
5
5
  "build": {
6
- "dependsOn": ["^build"],
6
+ "dependsOn": ["generate", "^generate", "^build"],
7
7
  "outputs": [".next/**", "!.next/cache/**", "dist/**"]
8
8
  },
9
9
  "dev": {
10
- "dependsOn": ["panda"],
10
+ "dependsOn": ["generate", "^generate"],
11
11
  "cache": false,
12
12
  "persistent": true,
13
13
  "passThroughEnv": ["PORT", "PORT_WEB", "DATABASE_URL", "NEXTAUTH_URL", "AUTH_SECRET"]
@@ -16,6 +16,9 @@
16
16
  "cache": false,
17
17
  "outputs": ["styled-system/**"]
18
18
  },
19
+ "generate": {
20
+ "cache": false
21
+ },
19
22
  "lint": {
20
23
  "dependsOn": ["^lint"]
21
24
  },
@@ -29,10 +32,10 @@
29
32
  "dependsOn": ["^format:fix"]
30
33
  },
31
34
  "typecheck": {
32
- "dependsOn": ["^typecheck"]
35
+ "dependsOn": ["generate", "^generate", "^typecheck"]
33
36
  },
34
37
  "test": {
35
- "dependsOn": ["^build"],
38
+ "dependsOn": ["generate", "^generate", "^build"],
36
39
  "outputs": ["coverage/**"]
37
40
  },
38
41
  "test:watch": {