@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.js
CHANGED
package/dist/plugin.cjs
CHANGED
|
@@ -783,6 +783,16 @@ function generateCreateMigration(blueprint, options = {}) {
|
|
|
783
783
|
const indexContent = renderIndexes(blueprint);
|
|
784
784
|
const content = `<?php
|
|
785
785
|
|
|
786
|
+
/**
|
|
787
|
+
* DO NOT EDIT - This file is auto-generated by Omnify.
|
|
788
|
+
* Any changes will be overwritten on next generation.
|
|
789
|
+
*
|
|
790
|
+
* To modify the schema, edit the corresponding YAML file in schemas/
|
|
791
|
+
* and run: npx omnify generate
|
|
792
|
+
*
|
|
793
|
+
* @generated by @famgia/omnify-laravel
|
|
794
|
+
*/
|
|
795
|
+
|
|
786
796
|
use Illuminate\\Database\\Migrations\\Migration;
|
|
787
797
|
use Illuminate\\Database\\Schema\\Blueprint;
|
|
788
798
|
use Illuminate\\Support\\Facades\\Schema;
|
|
@@ -1086,6 +1096,16 @@ function generateAlterMigrationContent(tableName, change, options = {}) {
|
|
|
1086
1096
|
` : "";
|
|
1087
1097
|
return `<?php
|
|
1088
1098
|
|
|
1099
|
+
/**
|
|
1100
|
+
* DO NOT EDIT - This file is auto-generated by Omnify.
|
|
1101
|
+
* Any changes will be overwritten on next generation.
|
|
1102
|
+
*
|
|
1103
|
+
* To modify the schema, edit the corresponding YAML file in schemas/
|
|
1104
|
+
* and run: npx omnify generate
|
|
1105
|
+
*
|
|
1106
|
+
* @generated by @famgia/omnify-laravel
|
|
1107
|
+
*/
|
|
1108
|
+
|
|
1089
1109
|
use Illuminate\\Database\\Migrations\\Migration;
|
|
1090
1110
|
use Illuminate\\Database\\Schema\\Blueprint;
|
|
1091
1111
|
use Illuminate\\Support\\Facades\\Schema;
|
|
@@ -1143,6 +1163,13 @@ function generateDropTableMigration(schemaName, options = {}) {
|
|
|
1143
1163
|
` : "";
|
|
1144
1164
|
const content = `<?php
|
|
1145
1165
|
|
|
1166
|
+
/**
|
|
1167
|
+
* DO NOT EDIT - This file is auto-generated by Omnify.
|
|
1168
|
+
* Any changes will be overwritten on next generation.
|
|
1169
|
+
*
|
|
1170
|
+
* @generated by @famgia/omnify-laravel
|
|
1171
|
+
*/
|
|
1172
|
+
|
|
1146
1173
|
use Illuminate\\Database\\Migrations\\Migration;
|
|
1147
1174
|
use Illuminate\\Database\\Schema\\Blueprint;
|
|
1148
1175
|
use Illuminate\\Support\\Facades\\Schema;
|