|
66 | 66 | */ |
67 | 67 |
|
68 | 68 | 'contexts' => [ |
69 | | - 'moox' => [ |
70 | | - 'base_path' => app_path('Moox'), |
71 | | - 'base_namespace' => 'App\\Moox', |
72 | | - ], |
73 | | - 'app' => [ |
74 | | - 'base_path' => app_path(), |
| 69 | + 'custom' => [ |
| 70 | + 'base_path' => app_path('Custom'), |
75 | 71 | 'base_namespace' => 'App', |
76 | 72 | 'generators' => [ |
77 | 73 | 'model' => [ |
|
115 | 111 | ], |
116 | 112 | ], |
117 | 113 | ], |
| 114 | + 'app' => [ |
| 115 | + 'base_path' => app_path(), |
| 116 | + 'base_namespace' => 'App', |
| 117 | + 'generators' => [ |
| 118 | + 'model' => [ |
| 119 | + 'path' => '%BasePath%\Models', |
| 120 | + 'namespace' => '%BaseNamespace%\\Models', |
| 121 | + 'template' => __DIR__.'/../src/Templates/Entity/model.php.stub', |
| 122 | + 'generator' => \Moox\Builder\Generators\Entity\ModelGenerator::class, |
| 123 | + ], |
| 124 | + 'resource' => [ |
| 125 | + 'path' => '%BasePath%\Resources', |
| 126 | + 'namespace' => '%BaseNamespace%\\Resources', |
| 127 | + 'template' => __DIR__.'/../src/Templates/Entity/resource.php.stub', |
| 128 | + 'page_templates' => [ |
| 129 | + 'List' => __DIR__.'/../src/Templates/Entity/pages/list.php.stub', |
| 130 | + 'Create' => __DIR__.'/../src/Templates/Entity/pages/create.php.stub', |
| 131 | + 'Edit' => __DIR__.'/../src/Templates/Entity/pages/edit.php.stub', |
| 132 | + 'View' => __DIR__.'/../src/Templates/Entity/pages/view.php.stub', |
| 133 | + ], |
| 134 | + 'generator' => \Moox\Builder\Generators\Entity\ResourceGenerator::class, |
| 135 | + ], |
| 136 | + 'plugin' => [ |
| 137 | + 'path' => '%BasePath%\Filament\Plugins', |
| 138 | + 'namespace' => '%BaseNamespace%\\Filament\\Plugins', |
| 139 | + 'template' => __DIR__.'/../src/Templates/Entity/plugin.php.stub', |
| 140 | + 'generator' => \Moox\Builder\Generators\Entity\PluginGenerator::class, |
| 141 | + ], |
| 142 | + 'migration' => [ |
| 143 | + 'path' => 'database\migrations', |
| 144 | + 'template' => __DIR__.'/../src/Templates/Entity/migration.php.stub', |
| 145 | + 'generator' => \Moox\Builder\Generators\Entity\MigrationGenerator::class, |
| 146 | + ], |
| 147 | + 'translation' => [ |
| 148 | + 'path' => 'lang\%locale%\entities', |
| 149 | + 'template' => __DIR__.'/../src/Templates/Entity/translation.php.stub', |
| 150 | + 'generator' => \Moox\Builder\Generators\Entity\TranslationGenerator::class, |
| 151 | + ], |
| 152 | + 'config' => [ |
| 153 | + 'path' => 'config\entities', |
| 154 | + 'template' => __DIR__.'/../src/Templates/Entity/config.php.stub', |
| 155 | + 'generator' => \Moox\Builder\Generators\Entity\ConfigGenerator::class, |
| 156 | + ], |
| 157 | + ], |
| 158 | + ], |
| 159 | + /* |
| 160 | + 'package' => [ |
| 161 | + 'base_path' => '$PackagePath', |
| 162 | + 'base_namespace' => '$PackageNamespace', |
| 163 | + 'generators' => [ |
| 164 | + 'model' => [ |
| 165 | + 'path' => '%BasePath%\src\Models', |
| 166 | + 'namespace' => '%BaseNamespace%\\Models', |
| 167 | + 'template' => __DIR__.'/../src/Templates/Entity/model.php.stub', |
| 168 | + 'generator' => \Moox\Builder\Generators\Entity\ModelGenerator::class, |
| 169 | + ], |
| 170 | + 'resource' => [ |
| 171 | + 'path' => '%BasePath%\src\Resources', |
| 172 | + 'namespace' => '%BaseNamespace%\\Resources', |
| 173 | + 'template' => __DIR__.'/../src/Templates/Entity/resource.php.stub', |
| 174 | + 'page_templates' => [ |
| 175 | + 'List' => __DIR__.'/../src/Templates/Entity/pages/list.php.stub', |
| 176 | + 'Create' => __DIR__.'/../src/Templates/Entity/pages/create.php.stub', |
| 177 | + 'Edit' => __DIR__.'/../src/Templates/Entity/pages/edit.php.stub', |
| 178 | + 'View' => __DIR__.'/../src/Templates/Entity/pages/view.php.stub', |
| 179 | + ], |
| 180 | + 'generator' => \Moox\Builder\Generators\Entity\ResourceGenerator::class, |
| 181 | + ], |
| 182 | + 'migration_stub' => [ |
| 183 | + 'path' => '%BasePath%\database\migrations', |
| 184 | + 'template' => __DIR__.'/../src/Templates/Entity/migration.php.stub', |
| 185 | + 'generator' => \Moox\Builder\Generators\Entity\MigrationGenerator::class, |
| 186 | + ], |
| 187 | + 'plugin' => [ |
| 188 | + 'path' => '%BasePath%\src', |
| 189 | + 'namespace' => '%BaseNamespace%', |
| 190 | + 'template' => __DIR__.'/../src/Templates/Entity/plugin.php.stub', |
| 191 | + 'generator' => \Moox\Builder\Generators\Entity\PluginGenerator::class, |
| 192 | + ], |
| 193 | + 'translation' => [ |
| 194 | + 'path' => '%BasePath%\resources\lang\entities', |
| 195 | + 'template' => __DIR__.'/../src/Templates/Entity/translation.php.stub', |
| 196 | + 'generator' => \Moox\Builder\Generators\Entity\TranslationGenerator::class, |
| 197 | + ], |
| 198 | + 'config' => [ |
| 199 | + 'path' => '%BasePath%\config\entities', |
| 200 | + 'template' => __DIR__.'/../src/Templates/Entity/config.php.stub', |
| 201 | + 'generator' => \Moox\Builder\Generators\Entity\ConfigGenerator::class, |
| 202 | + ], |
| 203 | + ], |
| 204 | + ], |
| 205 | + */ |
118 | 206 | 'preview' => [ |
119 | 207 | 'base_path' => app_path('Builder'), |
120 | 208 | 'base_namespace' => 'App\\Builder', |
|
0 commit comments