This commit is contained in:
11
plopfile.js
Normal file
11
plopfile.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const viewGenerator = require('plop-templates/view/prompt')
|
||||
const curdGenerator = require('plop-templates/curd/prompt')
|
||||
const componentGenerator = require('plop-templates/component/prompt')
|
||||
const mockGenerator = require('plop-templates/mock/prompt')
|
||||
|
||||
module.exports = (plop) => {
|
||||
plop.setGenerator('view', viewGenerator)
|
||||
plop.setGenerator('curd', curdGenerator)
|
||||
plop.setGenerator('component', componentGenerator)
|
||||
plop.setGenerator('mock&api', mockGenerator)
|
||||
}
|
||||
Reference in New Issue
Block a user