auto-code-generate v1.2.2
Preface
Every time we write a new module, we need to create the corresponding directory and the corresponding html, css, js, ts, vue, java and other files, these actions are repeated, so you can enter the command back through my tool, you can generate the directory and file, and we can read the template file, Build the appropriate file from the template file.
Install
npm install -g auto-code-generate
How to use
zz-config.json
Build a config.json file in your project, demo as follows.
{
"urls": [
{
"path": "/src/api/request/",
"tpl": "api.ts"
},
{
"path": "/src/interface/",
"tpl": "interface.ts"
},
{
"path": "/src/assets/scss/",
"tpl": "component.scss"
},
{
"path": "/src/view/",
"tpl": "index.vue"
}
]
}
path
is path of generate directiories in this directory.
tpl
is path of the template file.
template
Create a template directory and place you template files under it.
Command
zz-zuto directionName/moduleName1 directionName/moduleName2 ...
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago