0.1.0 • Published 6 years ago
vue-cli-plugin-mauromadeit v0.1.0
vue-cli-plugin-mauromadeit
My usual setup
Preinstall
Always commit before invoking a plugin. Makes it easier to reset if something goes wrong.
git ci -am 'preinvoke'
Works well with Vuetify
yarn add vue-cli-plugin-vuetify
yarn add vuetify
Install
yarn add https://github.com/maurop123/vue-cli-plugin-mauromadeit.git
vue invoke mauromadeit
Postinstall
Some stuff still has to be setup manually. See below.
Most app types
add mauromadeit-vue-commons
yarn add https://github.com/maurop123/vue-commons.git
Blog specific
// src/store/index.js
import { store as CommonStore } from 'mauromadeit-vue-commons'
const { getCollection, set } = CommonStore
...
export const state = {
posts: [],
}
...
export const mutations = {
setPosts: set('posts'),
}
export const actions = {
getPosts: getCollection({
path: 'destinations/a-life-examined/posts',
mutation: 'setPosts',
}),
}
// src/views/Home.vue
<template>
...
<div class="headline">A Life Examined</div>$
...