Skip to content

Commit bb49f68

Browse files
committed
Add Readme.
1 parent 6b55d86 commit bb49f68

File tree

1 file changed

+76
-13
lines changed

1 file changed

+76
-13
lines changed

README.md

Lines changed: 76 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,81 @@
1-
# Laravel Lang Bundler
2-
[![Build Status](https://travis-ci.org/zachleigh/laravel-lang-bundler.svg?branch=master)](https://travis-ci.org/zachleigh/laravel-lang-bundler)
3-
[![Latest Stable Version](https://poser.pugx.org/zachleigh/laravel-lang-bundler/version.svg)](//packagist.org/packages/zachleigh/laravel-lang-bundler)
4-
[![Total Downloads](https://poser.pugx.org/zachleigh/laravel-lang-bundler/downloads)](https://packagist.org/packages/zachleigh/laravel-lang-bundler)
5-
[![StyleCI](https://styleci.io/repos/72352058/shield?style=flat)](https://styleci.io/repos/72352058)
6-
[![License](https://poser.pugx.org/zachleigh/laravel-lang-bundler/license.svg)](//packagist.org/packages/zachleigh/laravel-lang-bundler)
7-
##### Make bundles of translation values.
1+
# Laravel Vue Generators
2+
[![Build Status](https://travis-ci.org/zachleigh/laravel-vue-generators.svg?branch=master)](https://travis-ci.org/zachleigh/laravel-vue-generators)
3+
[![Latest Stable Version](https://poser.pugx.org/zachleigh/laravel-vue-generators/version.svg)](//packagist.org/packages/zachleigh/laravel-vue-generators)
4+
[![Total Downloads](https://poser.pugx.org/zachleigh/laravel-vue-generators/downloads)](https://packagist.org/packages/zachleigh/laravel-vue-generators)
5+
[![StyleCI](https://styleci.io/repos/73324143/shield?style=flat)](https://styleci.io/repos/72352058)
6+
[![License](https://poser.pugx.org/zachleigh/laravel-vue-generators/license.svg)](//packagist.org/packages/zachleigh/laravel-vue-generators)
7+
##### Generate Vue js file stubs via artisan commands.
88

99
### Contents
10-
- [Why](#why)
1110
- [Install](#install)
1211
- [Usage](#usage)
13-
- [Advanced Usage](#advanced-usage)
14-
- [Commands](#commands)
15-
- [Configuration](#configuration)
16-
- [Limitations](#limitations)
1712
- [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

Comments
 (0)