2017 © Pedro Peláez
 

library vue-generators

Laravel Vue Generators

image

beckenrode/vue-generators

Laravel Vue Generators

  • Thursday, August 24, 2017
  • by beckenrode
  • Repository
  • 1 Watchers
  • 2 Stars
  • 37 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 42 % Grown

The README.md

Laravel Vue Generators

StyleCI, (*1)

This Laravel package provides the following two generators to speed up your Vue development process:, (*2)

  • make:vue-component
  • make:vue-mixin

Usage

Step 1: Install Through Composer

composer require beckenrode/vue-generator

Step 2: Add the Service Provider

Laravel 5.5

Laravel's Package Discovery automatically discovers this package., (*3)

Laravel < 5.5

Open config/app.php, and add a new item to the Package Service Providers array., (*4)

Beckenrode\VueGenerators\VueGeneratorsServiceProvider::class,

Step 3: Configuration (Optional)

You may want to adjust your Component/Mixin stubs or change the path in which they are generated. To do this you simply need to publish the configuration file., (*5)

Laravel 5.5

php artisan vendor:publish

Laravel < 5.5

php artisan vendor:publish --provider="Beckenrode\VueGenerators\VueGeneratorsServiceProvider"

This will publish the following configuration file to config/vue-generators.php:, (*6)

<?php

return [

    /*
    * Location of the stubs to use
    */
    //'component_stub' => __DIR__.'/component.stub',
    //'mixin_stub' => __DIR__.'/mixin.stub',

    /*
    * Location of where to generate the files
    */
    'components_path' => '/resources/assets/js/components/',
    'mixins_path'     => '/resources/assets/js/mixins/'

];

Examples

Vue Component

php artisan make:vue-component MyNewComponent

This will generate the following MyNewComponent.vue Vue component in /resources/assets/js/components/:, (*7)

<template>

</template>







<style>

</style>

Vue Mixin

php artisan make:vue-mixin MyNewMixin

This will generate the following MyNewMixin.js Vue mixin in /resources/assets/js/mixins/:, (*8)

export default {
    // Assets
    components: {},

    // Composition
    mixins: [],

    extends: {}

    // Data
    data() {
        return {}
    },

    props: {},

    propsData: {},

    computed: {},

    methods: {},

    watch: {},

    // Lifecycle Hooks
    beforeCreate() {},

    created() {},

    beforeMount() {},

    mounted() {},

    beforeUpdate() {},

    updated() {},

    activated() {},

    deactivated() {},

    beforeDestroy() {},

    destroyed() {}
}

Testing


Development

Want to contribute? Great!, (*9)

License

The MIT License (MIT), (*10)

Free Software, Hell Yeah!, (*11)

The Versions

24/08 2017

dev-master

9999999-dev

Laravel Vue Generators

  Sources   Download

MIT

The Development Requires

by Brandon Eckenrode

laravel generators vue laravel-5-package laravel-generator laravel-artisan-command

23/08 2017

v1.0.2

1.0.2.0

Laravel Vue Generators

  Sources   Download

MIT

The Development Requires

by Brandon Eckenrode

laravel generators vue

23/08 2017

v1.0.1

1.0.1.0

Laravel Vue Generators

  Sources   Download

MIT

The Development Requires

by Brandon Eckenrode

laravel generators vue

23/08 2017

v1.0.0

1.0.0.0

Laravel Vue Generators

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

by Brandon Eckenrode

laravel generators vue