yarn global add vue-make-cli
# or
npm install -g vue-make-cli
vue-make --help
# your page will be create in src/pages
vue-make page /product/index
# your view will be create in src/views
vue-make view /product/index
vue-make.json
{
"styleType": "css",
"page": {
"directory": "./src/pages",
"targetDirectoryPrefix": "",
"stylePrefix": "",
"layout": false
},
"view": {
"directory": "./src/views",
"targetDirectoryPrefix": "",
"stylePrefix": "",
"layout": false
},
"component": {
"directory": "./src/components",
"targetDirectoryPrefix": "",
"stylePrefix": ""
},
"directive": {
"directory": "./src/directives"
},
"mixin": {
"directory": "./src/mixins"
},
"store": {
"directory": "./src/store"
}
}