vue-auto

use Vue in a simpler way.

vue-auto can help you inject all components automatically, It makes your project simpler, cleaner.


Features


Usage

  1. install: npm i vue-auto or yarn add vue-auto.

  2. create components/ and pages/ folder.

  3. import to your main.js:

    import Vue from 'vue'
    import { install } from 'vue-auto'
    
    install(Vue)

Any component will be automatically injected into the global, you can also customize component prefixe.


with router:

import Vue from 'vue'
import Router from 'vue-router'
import { withRouters } from 'vue-auto'
Vue.use(Router)

export default new Router({
  routes: withRouters([
    { path: '/', name: 'home' },
    { path: '/about', name: 'about' },
  ])
})

Options


Examples


LICENSE

MIT


This project is open-sourced on GitHub.