{"id":21588913,"url":"https://github.com/cantonjs/create-wxapp-page","last_synced_at":"2025-07-09T12:07:41.660Z","repository":{"id":57210702,"uuid":"88041387","full_name":"cantonjs/create-wxapp-page","owner":"cantonjs","description":"创建微信小程序页面的命令行工具","archived":false,"fork":false,"pushed_at":"2019-04-22T08:06:48.000Z","size":136,"stargazers_count":42,"open_issues_count":1,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-27T07:45:37.406Z","etag":null,"topics":["cli","component","mini-program","page","template","wxapp","wxapp-page"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cantonjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.html","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-12T10:50:02.000Z","updated_at":"2023-02-23T08:18:22.000Z","dependencies_parsed_at":"2022-08-31T04:01:34.780Z","dependency_job_id":null,"html_url":"https://github.com/cantonjs/create-wxapp-page","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cantonjs%2Fcreate-wxapp-page","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cantonjs%2Fcreate-wxapp-page/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cantonjs%2Fcreate-wxapp-page/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cantonjs%2Fcreate-wxapp-page/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cantonjs","download_url":"https://codeload.github.com/cantonjs/create-wxapp-page/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cantonjs%2Fcreate-wxapp-page/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":257701636,"owners_count":22588462,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","component","mini-program","page","template","wxapp","wxapp-page"],"created_at":"2024-11-24T16:11:55.718Z","updated_at":"2025-07-09T12:07:41.637Z","avatar_url":"https://github.com/cantonjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# create-wxapp-page\n\n[![Build Status](https://travis-ci.org/cantonjs/create-wxapp-page.svg?branch=master)](https://travis-ci.org/cantonjs/create-wxapp-page)\n\n## 功能\n\n- 自动化生成微信小程序页面，样式支持自定义\n- 自动更新`app.json`,添加生成页面\n- [NEW]自动化生成微信小程序组件，样式支持自定义\n- [NEW]支持自定义模板\n\n## 安装\n\n```bash\n$ yarn add create-wxapp-page\n```\n\n\n## 用法\n\n### 查看帮助\n```bash\n$ create-wxapp-page --help\n```\n\n### 创建页面\n#### 示例一\n（使用yes模式，没有配置的内容使用默认值进行配置）\n```bash\n$ create-wxapp-page --name test --indent 2 --yes\n```\n\n#### 示例二\n（不使用yes模式，没有配置的内容，需要通过回答问题，进行配置）\n```bash\n$ create-wxapp-page --name test\n#回答问题\n#自动生成...\n```\n\n#### 参数\n- dir: 文件路径\n- name: page的名称，支持带相对/绝对路径(`/path/my-page`, `path/my-page`, `your/path/`, `my-page`)\n- type: 创建的页面类型，page，component可选，默认page\n- style: 样式文件后缀名，支持 less, scss, wxss 或自定义\n- json: 是否需要生成配置文件\n- indent: 缩进的方式，默认tab，支持数字\n- yes: 使用默认值生成相关文件\n- help: 查看帮助\n\n### 重置模板\n```bash\n$ create-wxapp-page reset\n```\n\n### 查看模板位置\n```bash\n$ create-wxapp-page dir\n```\n\n### 打开模板目录\n```bash\n$ create-wxapp-page open\n```\n\n\n## 自定义模版\n\n1. 通过 `create-wxapp-page open` 命令打开模版目录\n2. 编辑并替换默认模版\n3. 完成\n\n*Tips* 若需要重置使用默认模版，可以执行 `create-wxapp-page reset` 命令\n\n\n## 更新日志\n[Changelog](/CHANGELOG.md)\n\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcantonjs%2Fcreate-wxapp-page","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcantonjs%2Fcreate-wxapp-page","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcantonjs%2Fcreate-wxapp-page/lists"}