{"id":24419120,"url":"https://github.com/electroluxcode/command-plugin","last_synced_at":"2025-04-12T06:05:13.890Z","repository":{"id":213057959,"uuid":"691977691","full_name":"electroluxcode/command-plugin","owner":"electroluxcode","description":"commit | changelog | version 三个功能的脚手架","archived":false,"fork":false,"pushed_at":"2023-09-15T09:47:42.000Z","size":2156,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T06:04:58.267Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/electroluxcode.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-09-15T09:41:48.000Z","updated_at":"2023-12-13T11:54:19.000Z","dependencies_parsed_at":"2023-12-18T07:52:33.502Z","dependency_job_id":null,"html_url":"https://github.com/electroluxcode/command-plugin","commit_stats":null,"previous_names":["electroluxcode/command-plugin"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electroluxcode%2Fcommand-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electroluxcode%2Fcommand-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electroluxcode%2Fcommand-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/electroluxcode%2Fcommand-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/electroluxcode","download_url":"https://codeload.github.com/electroluxcode/command-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248525143,"owners_count":21118618,"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":[],"created_at":"2025-01-20T09:19:01.732Z","updated_at":"2025-04-12T06:05:13.834Z","avatar_url":"https://github.com/electroluxcode.png","language":"JavaScript","readme":"\u003cdiv align=\"center\"\u003e\u003ch1\u003e\n\u003cbr/\u003e\n🤖\n\u003cbr /\u003e\ncommand-plugin\n\u003cbr /\u003e\u003cbr /\u003e\n\u003c/h1\u003e\n\u003csup\u003e\n\u003cbr /\u003e\n\u003cbr /\u003e\n\u003ca href=\"https://gitee.com/electrolux/front-engineer-plugin\"\u003e\u003cimg src=\"https://img.shields.io/static/v1?label=version\u0026message=v0.1.27\u0026color=blue\" alt=\"npm package\" /\u003e\u003c/a\u003e\u003ca href=https://gitee.com/Electrolux\u003e\u003cimg src=\"https://img.shields.io/static/v1?label=Gitee\u0026message=Electrolux\u0026color=red\" alt=\"temp\" /\u003e\u003c/a\u003e\u003ca href=https://space.bilibili.com/286773126\u003e\u003cimg src=\"https://img.shields.io/static/v1?label=Bili\u0026message=Electrolux\u0026color=pink\" alt=\"temp\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://gitee.com/electrolux/front-engineer-plugin\"\u003e   \u003cimg src=\"https://img.shields.io/static/v1?label=Author\u0026message=Electrolux\u0026color=yellow\" alt=\"demos\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://gitee.com/electrolux/front-engineer-plugin\"\u003e   \u003cimg src=\"https://img.shields.io/static/v1?label=Contribute\u0026message=welcome\u0026color=green\" alt=\"demos\" /\u003e\u003c/a\u003e\n\u003cbr /\u003e\n\u003c/a\u003e\n\u003cbr /\u003e\nTranslations: \u003ca href=\"\"\u003e🇨🇳 汉语\u003c/a\u003e\n\u003c/sup\u003e\n\u003c/div\u003e\n\n\n\n\n## Introduce\n\n之前给element-plus 提pr的时候，发现element-plus有一个npm  run gz 用来规范代码提交和自动更新Changelog 。受到启发于是写了这个插件。这个插件在目前的前端项目中是通用的，在后续的开发中可以扩展脚手架和其他工具功能\n\n\n\n##  Quickstart\n\nbegin\n\n```shell\nnpm install command-plugin -g\n```\n\n启动\n\n```shell\ncommand-plugin gui\n```\n\n\n\n## Developer\n\n```js\n安装的时候会通过package.json的bin字段会被打包成二进制文件。这里是脚手架入口\n\n如果你想添加你自己工程化的东西。ts ./ --watch\n\n\n```\n\n\n\n- 首先将你的文件放进file 文件夹\n- 修改project.ts的 guiFn 方法和 增加 util/handleEvent.js导出的方法\n- 接下来的测试阶段可以npm link 进行软连接或者去到全局npm包的地方修改project\n\n\n\n\n\n## Feature\n\n这是一个js为基础用于代码提交的commander，可以进行比较轻松的进行脚手架和工具类的扩展。在进行提交的时候的可以选择是否更新CHANGELOG文件和是否更新package.json的版本号并且在给出 commit 的 type 和 scope 的指引\n\n\n\n- COMMIT 的指引: type(scope): message\n\n- CHANGELOG: 记录 `提交者` | `message`  | `version` |  `提交时间`\n\n- package.json: 更新version \n\n  \n\n## Example\n\n默认 自增和写入 changelog 和 version\n\n \u003cimg src=\"https://cdn.jsdelivr.net/npm/command-plugin/img/example1.png\"/\u003e\n\n\n\n\u003cimg src=\"https://cdn.jsdelivr.net/npm/command-plugin@0.0.17/img/example2.png\"/\u003e\n\n\n\n\n\n\n\n\n\n## Badge\n\n[![Size](https://img.shields.io/static/v1?label=plugin\u0026message=command-plugin\u0026color=green)](https://gitee.com/Electrolux)\n\n```\n[![Size](https://img.shields.io/static/v1?label=plugin\u0026message=command-plugin\u0026color=green)](https://gitee.com/Electrolux)\n```\n\n\n\n## Support\n\ncommand-plugin is developed by me. Please use command-plugin, star it on gitee or even become a [sponsor](https://gitee.com/Electrolux) to support us!\n\n\n\n\n\n\n\n\n\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felectroluxcode%2Fcommand-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felectroluxcode%2Fcommand-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felectroluxcode%2Fcommand-plugin/lists"}