@famgia/omnify-laravel 0.0.107 → 0.0.109
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/{chunk-7YHLXBF5.js → chunk-GDFAEEEG.js} +35 -1
- package/dist/{chunk-7YHLXBF5.js.map → chunk-GDFAEEEG.js.map} +1 -1
- package/dist/index.cjs +34 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/plugin.cjs +27 -0
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.js +1 -1
- package/package.json +4 -4
- package/stubs/ai-guides/cursor/laravel-controller.mdc.stub +30 -0
- package/stubs/ai-guides/cursor/laravel.mdc.stub +15 -1
- package/stubs/ai-guides/cursor/omnify-migrations.mdc.stub +109 -0
- package/stubs/ai-guides/laravel/openapi.md.stub +85 -5
package/dist/index.cjs
CHANGED
|
@@ -931,6 +931,16 @@ function generateCreateMigration(blueprint, options = {}) {
|
|
|
931
931
|
const indexContent = renderIndexes(blueprint);
|
|
932
932
|
const content = `<?php
|
|
933
933
|
|
|
934
|
+
/**
|
|
935
|
+
* DO NOT EDIT - This file is auto-generated by Omnify.
|
|
936
|
+
* Any changes will be overwritten on next generation.
|
|
937
|
+
*
|
|
938
|
+
* To modify the schema, edit the corresponding YAML file in schemas/
|
|
939
|
+
* and run: npx omnify generate
|
|
940
|
+
*
|
|
941
|
+
* @generated by @famgia/omnify-laravel
|
|
942
|
+
*/
|
|
943
|
+
|
|
934
944
|
use Illuminate\\Database\\Migrations\\Migration;
|
|
935
945
|
use Illuminate\\Database\\Schema\\Blueprint;
|
|
936
946
|
use Illuminate\\Support\\Facades\\Schema;
|
|
@@ -972,6 +982,13 @@ function generateDropMigration(tableName, options = {}) {
|
|
|
972
982
|
` : "";
|
|
973
983
|
const content = `<?php
|
|
974
984
|
|
|
985
|
+
/**
|
|
986
|
+
* DO NOT EDIT - This file is auto-generated by Omnify.
|
|
987
|
+
* Any changes will be overwritten on next generation.
|
|
988
|
+
*
|
|
989
|
+
* @generated by @famgia/omnify-laravel
|
|
990
|
+
*/
|
|
991
|
+
|
|
975
992
|
use Illuminate\\Database\\Migrations\\Migration;
|
|
976
993
|
use Illuminate\\Database\\Schema\\Blueprint;
|
|
977
994
|
use Illuminate\\Support\\Facades\\Schema;
|
|
@@ -1284,6 +1301,16 @@ function generateAlterMigrationContent(tableName, change, options = {}) {
|
|
|
1284
1301
|
` : "";
|
|
1285
1302
|
return `<?php
|
|
1286
1303
|
|
|
1304
|
+
/**
|
|
1305
|
+
* DO NOT EDIT - This file is auto-generated by Omnify.
|
|
1306
|
+
* Any changes will be overwritten on next generation.
|
|
1307
|
+
*
|
|
1308
|
+
* To modify the schema, edit the corresponding YAML file in schemas/
|
|
1309
|
+
* and run: npx omnify generate
|
|
1310
|
+
*
|
|
1311
|
+
* @generated by @famgia/omnify-laravel
|
|
1312
|
+
*/
|
|
1313
|
+
|
|
1287
1314
|
use Illuminate\\Database\\Migrations\\Migration;
|
|
1288
1315
|
use Illuminate\\Database\\Schema\\Blueprint;
|
|
1289
1316
|
use Illuminate\\Support\\Facades\\Schema;
|
|
@@ -1341,6 +1368,13 @@ function generateDropTableMigration(schemaName, options = {}) {
|
|
|
1341
1368
|
` : "";
|
|
1342
1369
|
const content = `<?php
|
|
1343
1370
|
|
|
1371
|
+
/**
|
|
1372
|
+
* DO NOT EDIT - This file is auto-generated by Omnify.
|
|
1373
|
+
* Any changes will be overwritten on next generation.
|
|
1374
|
+
*
|
|
1375
|
+
* @generated by @famgia/omnify-laravel
|
|
1376
|
+
*/
|
|
1377
|
+
|
|
1344
1378
|
use Illuminate\\Database\\Migrations\\Migration;
|
|
1345
1379
|
use Illuminate\\Database\\Schema\\Blueprint;
|
|
1346
1380
|
use Illuminate\\Support\\Facades\\Schema;
|