|
1 |
| -# Laravel Lang Bundler |
2 |
| -[](https://travis-ci.org/zachleigh/laravel-lang-bundler) |
3 |
| -[](//packagist.org/packages/zachleigh/laravel-lang-bundler) |
4 |
| -[](https://packagist.org/packages/zachleigh/laravel-lang-bundler) |
5 |
| -[](https://styleci.io/repos/72352058) |
6 |
| -[](//packagist.org/packages/zachleigh/laravel-lang-bundler) |
7 |
| -##### Make bundles of translation values. |
| 1 | +# Laravel Vue Generators |
| 2 | +[](https://travis-ci.org/zachleigh/laravel-vue-generators) |
| 3 | +[](//packagist.org/packages/zachleigh/laravel-vue-generators) |
| 4 | +[](https://packagist.org/packages/zachleigh/laravel-vue-generators) |
| 5 | +[](https://styleci.io/repos/72352058) |
| 6 | +[](//packagist.org/packages/zachleigh/laravel-vue-generators) |
| 7 | +##### Generate Vue js file stubs via artisan commands. |
8 | 8 |
|
9 | 9 | ### Contents
|
10 |
| - - [Why](#why) |
11 | 10 | - [Install](#install)
|
12 | 11 | - [Usage](#usage)
|
13 |
| - - [Advanced Usage](#advanced-usage) |
14 |
| - - [Commands](#commands) |
15 |
| - - [Configuration](#configuration) |
16 |
| - - [Limitations](#limitations) |
17 | 12 | - [Testing](#testing)
|
18 |
| - - [Contributing](#contributing) |
| 13 | + - [Contributing](#contributing) |
| 14 | + |
| 15 | +### Install |
| 16 | +Install via composer: |
| 17 | +``` |
| 18 | +composer require zachleigh/laravel-vue-generators |
| 19 | +``` |
| 20 | +In Laravel's config/app.php file, add the service provider to the array with the 'providers' key. |
| 21 | +``` |
| 22 | +VueGenerators\ServiceProvider::class |
| 23 | +``` |
| 24 | + |
| 25 | +### Usage |
| 26 | +This package currently contains two commands: `component` and `mixin`. |
| 27 | +##### component |
| 28 | +Create a Vue js component file. |
| 29 | +``` |
| 30 | +php artisan vueg:component {name} {--empty} {--path=assets.js.components} |
| 31 | +``` |
| 32 | +###### name |
| 33 | +Name of the component. |
| 34 | +``` |
| 35 | +php artisan vueg:component MyComponent |
| 36 | +``` |
| 37 | +Will create a file called MyComponent.vue at resources/assets/js/components/MyComponent.vue. |
| 38 | +###### empty |
| 39 | +By default, the component will be filled with all available component methods (data, props, computed etc.). Use empty flag to create an empty component with no methods. |
| 40 | +``` |
| 41 | +php artisan vueg:component MyComponent --empty |
| 42 | +``` |
| 43 | +Will create a file with no component methods. |
| 44 | +###### path |
| 45 | +By default, all components will be saved in resources/assets/js/components/. Specify a custom, period divide path with the path flag. Path root is in resources/. |
| 46 | +``` |
| 47 | +php artisan vueg:component MyComponent --path=assets.js.custom.folder |
| 48 | +``` |
| 49 | +Will create a file called MyComponent.vue at resources/assets/js/custom/folder/MyComponent.vue. |
| 50 | + |
| 51 | +##### mixin |
| 52 | +Create a Vue js mixin file. |
| 53 | +``` |
| 54 | +php artisan vueg:mixin {name} {--empty} {--path=assets.js.mixins} |
| 55 | +``` |
| 56 | +###### name |
| 57 | +Name of the mixin. |
| 58 | +``` |
| 59 | +php artisan vueg:mixin MyMixin |
| 60 | +``` |
| 61 | +Will create a file called MyMixin.vue at resources/assets/js/mixins/MyMixin.vue. |
| 62 | +###### empty |
| 63 | +By default, the mixin will be filled with all available mixin methods (data, props, computed etc.). Use empty flag to create an empty mixin with no methods. |
| 64 | +``` |
| 65 | +php artisan vueg:mixin MyMixin --empty |
| 66 | +``` |
| 67 | +Will create a file with no mixin methods. |
| 68 | +###### path |
| 69 | +By default, all mixins will be saved in resources/assets/js/mixins/. Specify a custom, period divide path with the path flag. Path root is in resources/. |
| 70 | +``` |
| 71 | +php artisan vueg:mixin MyMixin --path=assets.js.custom.folder |
| 72 | +``` |
| 73 | +Will create a file called MyMixin.vue at resources/assets/js/custom/folder/MyMixin.vue. |
| 74 | + |
| 75 | +### Testing |
| 76 | +``` |
| 77 | +composer test |
| 78 | +``` |
| 79 | + |
| 80 | +### Contributing |
| 81 | +Contributions are more than welcome. Fork, improve and make a pull request. For bugs, ideas for improvement or other, please create an [issue](https://github.com/zachleigh/laravel-lang-bundler/issues). |
0 commit comments