We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
问题 当前虽然已有默认模板,但是假如升级模板就必须升级包。
方案 因此打算支持项目级别的自定义模板功能。在没有配置文件时,使用内置默认模板。
tua.config.js
tua-mp.config.js
templateDir
.templates
module.exports = { templateDir: 'some/path', }
eject
$ tuamp eject # OR $ tuamp e
指定模板下次再做吧...
add
-t, --template
$ tuamp add api --template=<template> <name> $ tuamp add page -t=<template> <name> $ tuamp add comp -t=<template> <name> $ tuamp add comp -t=<template> -g <name>
The text was updated successfully, but these errors were encountered:
refactor(service): #68, tua-mp.config.js -> tua.config.js
55d10dd
1a28dae
BuptStEve
No branches or pull requests
问题
当前虽然已有默认模板,但是假如升级模板就必须升级包。
方案
因此打算支持项目级别的自定义模板功能。在没有配置文件时,使用内置默认模板。
tua.config.js
,没有时再找tua-mp.config.js
templateDir
,即所有模板文件夹的路径,默认值为.templates
。eject
命令将默认模板导出$ tuamp eject # OR $ tuamp e
[ ] 对于所有add
命令新增-t, --template
选项,用于指定模板The text was updated successfully, but these errors were encountered: