cantonjs / Create Wxapp Page
Licence: mit
创建微信小程序页面的命令行工具
Stars: ✭ 37
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Create Wxapp Page
Cgx
💻🔥CLI to generate the recommended documentation/files to improve contribution (Github, Gitlab, CodeCommit and Bitbucket)
Stars: ✭ 190 (+413.51%)
Mutual labels: cli, template
Swaggen
OpenAPI/Swagger 3.0 Parser and Swift code generator
Stars: ✭ 385 (+940.54%)
Mutual labels: cli, template
Scaffdog
🐶 scaffdog is Markdown driven scaffolding tool.
Stars: ✭ 237 (+540.54%)
Mutual labels: cli, template
Boilr
⚡️ boilerplate template manager that generates files or directories from template repositories
Stars: ✭ 1,268 (+3327.03%)
Mutual labels: cli, template
Arkit
JavaScript architecture diagrams and dependency graphs
Stars: ✭ 671 (+1713.51%)
Mutual labels: cli, component
Gomplate
A flexible commandline tool for template rendering. Supports lots of local and remote datasources.
Stars: ✭ 1,270 (+3332.43%)
Mutual labels: cli, template
Wxapp Boilerplate
使用 webpack, babel, scss 开发的微信/支付宝小程序项目脚手架
Stars: ✭ 367 (+891.89%)
Mutual labels: mini-program, wxapp
Create React Library
⚡CLI for creating reusable react libraries.
Stars: ✭ 4,554 (+12208.11%)
Mutual labels: cli, component
Console
The Console component eases the creation of beautiful and testable command line interfaces.
Stars: ✭ 8,988 (+24191.89%)
Mutual labels: cli, component
Template
A super-simple way to create new projects based on templates.
Stars: ✭ 120 (+224.32%)
Mutual labels: cli, template
Extension Create
Create modern cross-browser extensions with no build configuration.
Stars: ✭ 167 (+351.35%)
Mutual labels: cli, template
create-wxapp-page
功能
- 自动化生成微信小程序页面,样式支持自定义
- 自动更新
app.json
,添加生成页面 - [NEW]自动化生成微信小程序组件,样式支持自定义
- [NEW]支持自定义模板
安装
$ yarn add create-wxapp-page
用法
查看帮助
$ create-wxapp-page --help
创建页面
示例一
(使用yes模式,没有配置的内容使用默认值进行配置)
$ create-wxapp-page --name test --indent 2 --yes
示例二
(不使用yes模式,没有配置的内容,需要通过回答问题,进行配置)
$ create-wxapp-page --name test
#回答问题
#自动生成...
参数
- dir: 文件路径
- name: page的名称,支持带相对/绝对路径(
/path/my-page
,path/my-page
,your/path/
,my-page
) - type: 创建的页面类型,page,component可选,默认page
- style: 样式文件后缀名,支持 less, scss, wxss 或自定义
- json: 是否需要生成配置文件
- indent: 缩进的方式,默认tab,支持数字
- yes: 使用默认值生成相关文件
- help: 查看帮助
重置模板
$ create-wxapp-page reset
查看模板位置
$ create-wxapp-page dir
打开模板目录
$ create-wxapp-page open
自定义模版
- 通过
create-wxapp-page open
命令打开模版目录 - 编辑并替换默认模版
- 完成
Tips 若需要重置使用默认模版,可以执行 create-wxapp-page reset
命令
更新日志
License
MIT
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].