1.2.2 • Published 4 years ago

auto-code-generate v1.2.2

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

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 ...
1.2.0

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago