Commit fc5d72d8 authored by Vadym Gidulian's avatar Vadym Gidulian

Merge branch 'dev'

parents 5a4fcaad a10138a4
......@@ -3,12 +3,12 @@
"version": "version",
"scripts": {
"prestart": "npm install",
"prestart": "yarn",
"start": "gulp && concurrently \"gulp watch\" \"lite-server\"",
"build-testing": "npm install && gulp --env testing",
"build-staging": "npm install && gulp --env staging",
"build": "npm install && gulp --env production"
"build-testing": "yarn && gulp --env testing",
"build-staging": "yarn && gulp --env staging",
"build": "yarn && gulp --env production"
},
"devDependencies": {
......
'use strict';
module.exports = {
Vue: require('vue/dist/vue.runtime.common')
};
'use strict';
var Vue = require('vue/dist/vue.common');
var Vue = require('./_deps').Vue;
var app = new Vue({
el: '#app',
......@@ -8,6 +8,10 @@ var app = new Vue({
router: require('./app.router'),
store: require('./app.store'),
created: function () {
this.$store.dispatch('getData');
this.$store.dispatch('fetchData');
}
});
if (process.env.NODE_ENV !== 'production') {
window.app = app;
}
'use strict';
var Vue = require('vue/dist/vue.common');
var Vue = require('./_deps').Vue;
var VueRouter = require('vue-router');
Vue.use(VueRouter);
......
'use strict';
var Vue = require('vue/dist/vue.common');
var Vue = require('./_deps').Vue;
var Vuex = require('vuex');
Vue.use(Vuex);
......@@ -10,7 +10,7 @@ module.exports = new Vuex.Store({
module: require('./store/module.store')
},
actions: {
getData: function (context) {
fetchData: function (context) {
context.dispatch('module/...');
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment