2017 © Pedro Peláez
 

project laravel-vue-generators

Generate Vue js files via artisan commands.

image

zachleigh/laravel-vue-generators

Generate Vue js files via artisan commands.

  • Monday, January 30, 2017
  • by zachleigh
  • Repository
  • 6 Watchers
  • 81 Stars
  • 3,801 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 7 Forks
  • 0 Open issues
  • 9 Versions
  • 14 % Grown

The README.md

Laravel Vue Generators

Latest Stable Version License Build Status Quality Score StyleCI Total Downloads, (*1)

Generate Vue js file stubs via artisan commands.

Contents

Upgrade Information

Version 0.1.* to Version 0.2.0

Version 0.2.0 adds Laravel 5.4 support. For Laravel 5.3, please use Version 0.1.4:, (*2)

composer require zachleigh/laravel-vue-generators:0.1.*

Install

Install via composer:, (*3)

composer require zachleigh/laravel-vue-generators

In Laravel's config/app.php file, add the service provider to the array with the 'providers' key., (*4)

VueGenerators\ServiceProvider::class

Publish the config file:, (*5)

php artisan vendor:publish --provider="VueGenerators\ServiceProvider"

Usage

This package currently contains two commands: component and mixin., (*6)

component

Create a Vue js component file., (*7)

php artisan vueg:component {name} {--empty} {--path=}
name

Name of the component., (*8)

php artisan vueg:component MyComponent

Will create a file called MyComponent.vue at resources/assets/js/components/MyComponent.vue., (*9)

empty

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., (*10)

php artisan vueg:component MyComponent --empty

Will create a file with no component methods., (*11)

path

By default, all components will be saved in resources/assets/js/components/. Specify a custom path with the path flag. Path root is in resources/., (*12)

php artisan vueg:component MyComponent --path=assets/js/custom/folder

Will create a file called MyComponent.vue at resources/assets/js/custom/folder/MyComponent.vue., (*13)

mixin

Create a Vue js mixin file., (*14)

php artisan vueg:mixin {name} {--empty} {--path=}
name

Name of the mixin., (*15)

php artisan vueg:mixin MyMixin

Will create a file called MyMixin.vue at resources/assets/js/mixins/MyMixin.vue., (*16)

empty

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., (*17)

php artisan vueg:mixin MyMixin --empty

Will create a file with no mixin methods., (*18)

path

By default, all mixins will be saved in resources/assets/js/mixins/. Specify a custom path with the path flag. Path root is in resources/., (*19)

php artisan vueg:mixin MyMixin --path=assets/js/custom/folder

Will create a file called MyMixin.vue at resources/assets/js/custom/folder/MyMixin.vue., (*20)

Configuration

Set default paths for components and mixins. All paths are relative to Laravel's resources directory., (*21)

'paths' => [
    'components' => 'path/to/components',
    'mixins'     => 'path/to/mixins',
]

Testing

composer test

Contributing

Contributions are more than welcome. Fork, improve and make a pull request. For bugs, ideas for improvement or other, please create an issue., (*22)

The Versions

30/01 2017

dev-master

9999999-dev

Generate Vue js files via artisan commands.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Zach Leigh

laravel generators vue

30/01 2017

dev-dev

dev-dev

Generate Vue js files via artisan commands.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Zach Leigh

laravel generators vue

30/01 2017

v0.2.1

0.2.1.0

Generate Vue js files via artisan commands.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Zach Leigh

laravel generators vue

25/01 2017

v0.2.0

0.2.0.0

Generate Vue js files via artisan commands.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Zach Leigh

laravel generators vue

06/01 2017

v0.1.4

0.1.4.0

Generate Vue js files via artisan commands.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

by Zach Leigh

laravel generators vue

04/12 2016

v0.1.3

0.1.3.0

Generate Vue js files via artisan commands.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

by Zach Leigh

laravel generators vue

30/11 2016

v0.1.2

0.1.2.0

Generate Vue js files via artisan commands.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

by Zach Leigh

09/11 2016

v0.1.1

0.1.1.0

Generate Vue js files via artisan commands.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

by Zach Leigh

09/11 2016

v0.1.0

0.1.0.0

Generate Vue js files via artisan commands.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

by Zach Leigh