@famgia/omnify 1.0.104 → 1.0.106
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/ai-guides/config-guide.md +15 -23
- package/package.json +9 -9
- package/scripts/postinstall.js +2 -2
|
@@ -64,11 +64,8 @@ export default defineConfig({
|
|
|
64
64
|
},
|
|
65
65
|
|
|
66
66
|
plugins: [
|
|
67
|
-
japan(),
|
|
68
|
-
laravel(
|
|
69
|
-
generateRequests: true, // Generate FormRequest classes
|
|
70
|
-
generateResources: true, // Generate API Resource classes
|
|
71
|
-
}),
|
|
67
|
+
japan(), // Japan-specific types
|
|
68
|
+
laravel(), // All generators enabled by default
|
|
72
69
|
typescript({
|
|
73
70
|
path: './resources/ts/omnify',
|
|
74
71
|
generateRules: true,
|
|
@@ -164,8 +161,8 @@ laravel({
|
|
|
164
161
|
| ------------------- | --------- | ------- | ------------------------------- |
|
|
165
162
|
| `generateModels` | `boolean` | `true` | Generate Eloquent model classes |
|
|
166
163
|
| `generateFactories` | `boolean` | `true` | Generate Laravel factory files |
|
|
167
|
-
| `generateRequests` | `boolean` | `
|
|
168
|
-
| `generateResources` | `boolean` | `
|
|
164
|
+
| `generateRequests` | `boolean` | `true` | Generate FormRequest classes |
|
|
165
|
+
| `generateResources` | `boolean` | `true` | Generate API Resource classes |
|
|
169
166
|
|
|
170
167
|
#### Other Options
|
|
171
168
|
|
|
@@ -304,24 +301,19 @@ export default defineConfig({
|
|
|
304
301
|
plugins: [
|
|
305
302
|
japan(), // Japan-specific types (load before laravel)
|
|
306
303
|
laravel({
|
|
307
|
-
//
|
|
308
|
-
|
|
309
|
-
modelsPath: 'app/Models',
|
|
310
|
-
baseModelsPath: 'app/Models/OmnifyBase',
|
|
311
|
-
providersPath: 'app/Providers',
|
|
312
|
-
factoriesPath: 'database/factories',
|
|
313
|
-
requestsPath: 'app/Http/Requests',
|
|
314
|
-
baseRequestsPath: 'app/Http/Requests/OmnifyBase',
|
|
315
|
-
resourcesPath: 'app/Http/Resources',
|
|
316
|
-
baseResourcesPath: 'app/Http/Resources/OmnifyBase',
|
|
304
|
+
// All generation flags are true by default:
|
|
305
|
+
// generateModels, generateFactories, generateRequests, generateResources
|
|
317
306
|
|
|
318
|
-
//
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
307
|
+
// Optional: customize paths (all use defaults, shown for reference)
|
|
308
|
+
// migrationsPath: 'database/migrations/omnify',
|
|
309
|
+
// modelsPath: 'app/Models',
|
|
310
|
+
// baseModelsPath: 'app/Models/OmnifyBase',
|
|
311
|
+
// requestsPath: 'app/Http/Requests',
|
|
312
|
+
// baseRequestsPath: 'app/Http/Requests/OmnifyBase',
|
|
313
|
+
// resourcesPath: 'app/Http/Resources',
|
|
314
|
+
// baseResourcesPath: 'app/Http/Resources/OmnifyBase',
|
|
323
315
|
|
|
324
|
-
fakerLocale: 'ja_JP',
|
|
316
|
+
fakerLocale: 'ja_JP', // Optional: customize Faker locale
|
|
325
317
|
}),
|
|
326
318
|
typescript({
|
|
327
319
|
path: './resources/ts/omnify',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@famgia/omnify",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.106",
|
|
4
4
|
"description": "Schema-driven database migration system with TypeScript types and Laravel migrations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"README.md"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@famgia/omnify-
|
|
29
|
-
"@famgia/omnify-
|
|
30
|
-
"@famgia/omnify-types": "0.0.
|
|
31
|
-
"@famgia/omnify-typescript": "0.0.
|
|
32
|
-
"@famgia/omnify-
|
|
33
|
-
"@famgia/omnify-atlas": "0.0.
|
|
34
|
-
"@famgia/omnify-
|
|
35
|
-
"@famgia/omnify-
|
|
28
|
+
"@famgia/omnify-cli": "0.0.102",
|
|
29
|
+
"@famgia/omnify-core": "0.0.96",
|
|
30
|
+
"@famgia/omnify-types": "0.0.94",
|
|
31
|
+
"@famgia/omnify-typescript": "0.0.84",
|
|
32
|
+
"@famgia/omnify-mcp": "0.0.82",
|
|
33
|
+
"@famgia/omnify-atlas": "0.0.90",
|
|
34
|
+
"@famgia/omnify-japan": "0.0.89",
|
|
35
|
+
"@famgia/omnify-laravel": "0.0.105"
|
|
36
36
|
},
|
|
37
37
|
"keywords": [
|
|
38
38
|
"omnify",
|
package/scripts/postinstall.js
CHANGED
|
@@ -350,12 +350,12 @@ function generateCombinedSchema(projectRoot) {
|
|
|
350
350
|
function copyAiGuides(projectRoot) {
|
|
351
351
|
// Always refresh AI guides on every install/update to ensure latest documentation
|
|
352
352
|
const dest = path.join(projectRoot, '.claude', 'omnify');
|
|
353
|
-
|
|
353
|
+
|
|
354
354
|
// Delete existing omnify folder to ensure clean update
|
|
355
355
|
if (fs.existsSync(dest)) {
|
|
356
356
|
fs.rmSync(dest, { recursive: true, force: true });
|
|
357
357
|
}
|
|
358
|
-
|
|
358
|
+
|
|
359
359
|
fs.mkdirSync(dest, { recursive: true });
|
|
360
360
|
|
|
361
361
|
const src = path.join(__dirname, '..', 'ai-guides');
|