summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/static_site_editor/store/index.js
blob: 43256979dddfa4ebfc05d243dbf755c4424c8779 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import Vuex from 'vuex';
import Vue from 'vue';
import createState from './state';
import * as getters from './getters';
import * as actions from './actions';
import mutations from './mutations';

Vue.use(Vuex);

const createStore = ({ initialState } = {}) => {
  return new Vuex.Store({
    state: createState(initialState),
    getters,
    actions,
    mutations,
  });
};

export default createStore;