创建微信小程序页面的命令行工具
app.json
,添加生成页面$ yarn add create-wxapp-page
$ create-wxapp-page --help
(使用yes模式,没有配置的内容使用默认值进行配置)
$ create-wxapp-page --name test --indent 2 --yes
(不使用yes模式,没有配置的内容,需要通过回答问题,进行配置)
$ create-wxapp-page --name test
#回答问题
#自动生成...
/path/my-page
, path/my-page
, your/path/
, my-page
)$ create-wxapp-page reset
$ create-wxapp-page dir
$ create-wxapp-page open
create-wxapp-page open
命令打开模版目录Tips 若需要重置使用默认模版,可以执行 create-wxapp-page reset
命令
MIT