index.js 253 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
import Vue from 'vue';
import Vuex from 'vuex';
import * as actions from './actions';
import mutations from './mutations';
import state from './state';

Vue.use(Vuex);

export default () => new Vuex.Store({
  actions,
  mutations,
  state: state(),
});