2017 © Pedro Peláez
 

library laravel-vue-component-generator

Generates a new Vue component with boilerplate in Laravel project

image

suomato/laravel-vue-component-generator

Generates a new Vue component with boilerplate in Laravel project

  • Thursday, July 27, 2017
  • by suomato
  • Repository
  • 1 Watchers
  • 4 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 4 % Grown

The README.md

Laravel Vue Component Generator

Introduction

If you love to use Artisan and Vue is the frontend framework of your choice, this package is for you! The laravel-vue-component-generator package gives you a new Artisan command which lets you generate the Vue component very fast., (*1)

Artisan Command

php aritsan make:vue-component {name}

During the command execution you have to choose the template engine (HTML / pug) and the CSS Pre-prosessor (CSS / LESS / Sass / Scss / Stylus). The Vue component will be generated to /resources/assets/js/components/ with boilerplate based on your choice., (*2)

Code Example

command, (*3)

Example.vue is created to /resources/assets/js/components/, (*4)

Here is the component boilerplate:, (*5)

command, (*6)

Installation

composer require suomato/laravel-vue-component-generator

After that, add the ServiceProvider to the providers array in config/app.php, (*7)

Suomato\VueComponentGenerator\VueComponentGeneratorServiceProvider::class,

Enjoy using the new Artisan command., (*8)

Config

If you don't want to choose the same template engine and CSS Pre-processor over and over again or if you're not happy with the default boilerplate, feel free to edit config or views. To publish the config and views use:, (*9)

php artisan vendor:publish --provider="Suomato\VueComponentGenerator\VueComponentGeneratorServiceProvider"
  • Config is located /config/vue-component-generator.php
  • Views is located /resources/views/vendor/laravel-vue-component-generator

The Versions

27/07 2017

dev-master

9999999-dev

Generates a new Vue component with boilerplate in Laravel project

  Sources   Download

MIT

The Requires

 

The Development Requires

by Toni Suomalainen

laravel generator vue-component

27/07 2017

v1.0.1

1.0.1.0

Generates a new Vue component with boilerplate in Laravel project

  Sources   Download

MIT

The Requires

 

The Development Requires

by Toni Suomalainen

laravel generator vue-component

27/07 2017

v1.0

1.0.0.0

Generates a new Vue component with boilerplate in Laravel project

  Sources   Download

MIT

The Requires

 

The Development Requires

by Toni Suomalainen

laravel generator vue-component