basic2/plopfile.js
2021-08-27 10:32:21 +08:00

8 lines
396 B
JavaScript

module.exports = function(plop) {
plop.setWelcomeMessage('请选择需要创建的模式:')
plop.setGenerator('page', require('./plop-templates/page/prompt'))
plop.setGenerator('component', require('./plop-templates/component/prompt'))
plop.setGenerator('store', require('./plop-templates/store/prompt'))
plop.setGenerator('mock', require('./plop-templates/mock/prompt'))
}