yz-cli
Version:
yazuo web project scaffold
38 lines (37 loc) • 1 kB
JavaScript
module.exports = {
prompt: {
name: {
type: 'input',
message: '输入项目名称',
validate: value => !!value.length || '项目名称不能为空!',
},
author: {
type: 'input',
message: '输入作者',
validate: value => !!value.length || '作者不能为空!',
},
// lint: {
// type: 'confirm',
// message: '是否使用es-lint?'
// },
// router: {
// type: 'confirm',
// message: '是否使用vue-router?'
// },
// vuex: {
// type: 'confirm',
// message: '是否使用Vuex?'
// },
// flow: {
// type: 'confirm',
// message: '是否使用flow?'
// }
},
filters: {
save: ['src', 'index.js', 'README.md', 'index.html', 'index.ejs', '.gitignore', '.eslintignore', 'tools/config.js'],
// 'router': ['src/router/**/*'],
// 'vuex': ['src/store/**/*']
},
// 拉取模板后不使用模板引擎构建的文件
noCompiles: ['src/**/*', 'ya/**/*'],
};