xmake
xmake copied to clipboard
xmake create support custom template
Is your feature request related to a problem? Please describe.
我想用xmake作为嵌入式的编译工具,但是内件的模板没有,只能自己手动复制文件,再编辑xmake
Describe the solution you'd like
提供一个可以从指定的模板创建新项目的功能,可以参考npm一系的实现
- 最简单的就是直接指定一个git仓库,直接拉下来(例如 xmake create -t https://github.com/xxx/yyy)
- 再进一步就是定义一个创建初始化项目的流程插入点,我们可以在模板仓库里定义一些列的初始化动作(可以使用lua脚本)
- 更进一步就是像管理lib仓库一样管理初始化仓库,可以直接像注册lib仓库一样注册模板仓库(例如 xmake create -t stm32f103hal 或者 xmake create -t @yufei/stm32f103hal)
Describe alternatives you've considered
No response
Additional context
No response