rastik1584/generator-vue
最新稳定版本:v1.1
Composer 安装命令:
composer require rastik1584/generator-vue
包简介
Generate vue in laravel
README 文档
README
This package adding artisan commands to list folder structure and create vue file or vue crud in specific folder path.
Installation:
composer require rastik1584/generator-vue
Publish the config file:
php artisan vendor:publish --provider="rastik1584\GeneratorVue\GeneratorVueServiceProvider"
Laravel version 9.*
Commands:
php artisan generator-vue:directory-list {--path}
Show directories from base path resources/js/*. Not showing files only directories.
Added two show method list and path. Show path add option --path .
php artisan generator-vue:make-vue <directory> <filename> {--d}
Create vue file from added directory path. Base path is resources/js .
When directory is not exists add option --d to creating directory.
php artisan generator-vue:make-vue-crud <directory> {--d}
Generate vue files with CRUD (Index,Create,Edit,Form) in directory path.
When directory is not exists add option --d to create directory.
Version 1.1:
Update config file to separate paths and templates, add crud vue filenames. Add new commands.
Added this new commands:
php artisan generator-vue:get-config-list {--all} {--template}
Return config settings. From base ( no options ) return only paths. Template option return only base template paths
All option return all settings in config file.
php artisan generator-vue:make-hook <name> {--path=} {--ts} {--d}
Generate hook file from resource path add /hooks folder and base creating .js hook. Optional --path generate exists or create new folder structure from hooks.
Option --d from creating new folders. --ts option generate TypeScript hook.
License: MIT
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-12-03