diff --git a/deploy-docs.sh b/deploy-docs.sh index a9f76366a4..360e6f9dc0 100644 --- a/deploy-docs.sh +++ b/deploy-docs.sh @@ -5,4 +5,4 @@ cd _book git init git add -A git commit -m 'update book' -git push -f git@github.com:vuejs-templates/webpack.git master:gh-pages +git push -f git@github.com:git-wlking/VUT.git master:git-wlking diff --git a/meta.js b/meta.js index a521f9bdd0..e0139dc42f 100644 --- a/meta.js +++ b/meta.js @@ -74,6 +74,16 @@ module.exports = { type: 'confirm', message: 'Install vue-router?', }, + axios: { + when: 'isNotTest', + type: 'confirm', + message: 'Install axios?', + }, + vuex: { + when: 'isNotTest', + type: 'confirm', + message: 'Install vuex?', + }, lint: { when: 'isNotTest', type: 'confirm', @@ -170,6 +180,8 @@ module.exports = { 'test/unit/setup.js': "unit && runner === 'jest'", 'test/e2e/**/*': 'e2e', 'src/router/**/*': 'router', + 'src/store/**/*': 'vuex', + 'src/api/**/*': 'axios', }, complete: function(data, { chalk }) { const green = chalk.green diff --git a/template/package.json b/template/package.json index 207322b98c..032f4a9aa7 100644 --- a/template/package.json +++ b/template/package.json @@ -26,7 +26,9 @@ }, "dependencies": { "vue": "^2.5.2"{{#router}}, - "vue-router": "^3.0.1"{{/router}} + "vue-router": "^3.0.1"{{/router}}{{#axios}}, + "axios": "^0.18.0"{{/axios}} {{#vuex}}, + "vuex": "^2.4.1"{{/vuex}} }, "devDependencies": { {{#lint}} diff --git a/template/src/App.vue b/template/src/App.vue index 0156030e49..b0ae090027 100644 --- a/template/src/App.vue +++ b/template/src/App.vue @@ -1,6 +1,7 @@