Files
vue-cli/packages/@vue/cli/lib/promptModules/vuex.js
2018-03-06 19:10:11 +01:00

15 lines
324 B
JavaScript

module.exports = cli => {
cli.injectFeature({
name: 'Vuex',
value: 'vuex',
description: 'Manage the app state with a centralized store',
link: 'https://vuex.vuejs.org/'
})
cli.onPromptComplete((answers, options) => {
if (answers.features.includes('vuex')) {
options.vuex = true
}
})
}