feat: plop new generate store (#2805)

This commit is contained in:
monkeycf
2019-12-04 10:34:23 +08:00
committed by 花裤衩
parent ad444fe3ae
commit ded67b054a
3 changed files with 80 additions and 0 deletions

View File

@@ -1,7 +1,9 @@
const viewGenerator = require('./plop-templates/view/prompt')
const componentGenerator = require('./plop-templates/component/prompt')
const storeGenerator = require('./plop-templates/store/prompt.js')
module.exports = function(plop) {
plop.setGenerator('view', viewGenerator)
plop.setGenerator('component', componentGenerator)
plop.setGenerator('store', storeGenerator)
}