README.md 1.4 KB
Newer Older
W
wjmcat 已提交
1 2
# code-generator

W
wjmcat 已提交
3
![Upload Python Package](https://github.com/wj-Mcat/code-generator/workflows/Upload%20Python%20Package/badge.svg)
W
wjmcat 已提交
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
![](https://img.shields.io/badge/build-passing-brightgreen)
![](https://img.shields.io/badge/python-3.7+-brightgreen)


![](./docs/logo.png)

## features

- can generate all-language code, eg: `python`, `vue`, `java`, `scala`, `go` and more
- generate code with powerful template **<jinja2>**
- template can contains control command, eg: `if`, `for`, `set variable`
- can **easily** run on other template repo.

## quick start

W
wjmcat 已提交
19
1 . clone the repo
W
wjmcat 已提交
20
```shell script
W
wjmcat 已提交
21
git clone https://github.com/wj-Mcat/code-generator
W
wjmcat 已提交
22 23
```

W
wjmcat 已提交
24
2 . run the example generation
W
wjmcat 已提交
25

W
wjmcat 已提交
26 27 28 29 30 31 32
```shell script
./examples/generate.sh
```

3 . [Optional] change the template to generate your own code

> you can change the code in `examples/config`, `examples/plugins`, `examples/templates`
W
wjmcat 已提交
33

W
wjmcat 已提交
34
## command description
W
wjmcat 已提交
35

W
wjmcat 已提交
36 37 38 39 40
> you don't need to write any code to run `code-generator`, only for configuration, templates, plugins

```shell script

```
W
wjmcat 已提交
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56

## changelog

- version 0.0.2
    - complete the basic interface: `templates`, `plugins`, `config`
    - can run well for template code generator

- version 0.0.1
    - deploy the pypi package
    - complete a simple code-generator
    
## Author

![[wj-Mcat](https://www.github.com/wj-Mcat)](https://avatars3.githubusercontent.com/u/10242208?s=260)

[wj-Mcat](https://www.github.com/wj-Mcat)