Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,30 @@ module.exports = {
type: 'string',
required: false,
message: 'Project description',
default: 'A Vue.js project',
default: 'A metaTeam template project.',
},
author: {
when: 'isNotTest',
type: 'string',
message: 'Author',
},
platform: {
when: 'isNotTest',
type: 'list',
message: '平台模板',
choices: [
{
name: 'admin-template',
value: 'adminTmp',
short: 'adminTmp'
},
{
name: 'web-app-template',
value: 'webApp',
short: 'webApp'
}
]
},
build: {
when: 'isNotTest',
type: 'list',
Expand All @@ -74,6 +91,16 @@ module.exports = {
type: 'confirm',
message: 'Install vue-router?',
},
vuex: {
when: 'isNotTest',
type: 'confirm',
message: 'Use vuex ?',
},
mock: {
when: 'isNotTest',
type: 'confirm',
message: 'Use mock.js ?',
},
lint: {
when: 'isNotTest',
type: 'confirm',
Expand Down Expand Up @@ -169,6 +196,8 @@ module.exports = {
'test/unit/specs/index.js': "unit && runner === 'karma'",
'test/unit/setup.js': "unit && runner === 'jest'",
'test/e2e/**/*': 'e2e',
"src/store/**/*": "vuex",
"src/mock/**/*": "mock",
'src/router/**/*': 'router',
},
complete: function(data, { chalk }) {
Expand Down
Loading