{"id":26791655,"url":"https://github.com/B-SOUL-Studio/cli","last_synced_at":"2025-03-29T15:16:53.671Z","repository":{"id":57107616,"uuid":"460272240","full_name":"B-SOUL-Studio/cli","owner":"B-SOUL-Studio","description":"⚡A scaffolding tool  with command `der go`","archived":false,"fork":false,"pushed_at":"2022-05-17T06:12:58.000Z","size":3296,"stargazers_count":61,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T15:16:47.956Z","etag":null,"topics":["cli","dotenv","javascript","lerna","monorepo","nodejs","npm-package","scaffolding","tool"],"latest_commit_sha":null,"homepage":"https://der-cli.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/B-SOUL-Studio.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}},"created_at":"2022-02-17T03:48:58.000Z","updated_at":"2024-09-04T01:10:35.000Z","dependencies_parsed_at":"2022-08-20T17:11:29.369Z","dependency_job_id":null,"html_url":"https://github.com/B-SOUL-Studio/cli","commit_stats":null,"previous_names":["der-cli/der-cli"],"tags_count":47,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B-SOUL-Studio%2Fcli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B-SOUL-Studio%2Fcli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B-SOUL-Studio%2Fcli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B-SOUL-Studio%2Fcli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/B-SOUL-Studio","download_url":"https://codeload.github.com/B-SOUL-Studio/cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246200326,"owners_count":20739568,"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","dotenv","javascript","lerna","monorepo","nodejs","npm-package","scaffolding","tool"],"created_at":"2025-03-29T15:16:52.842Z","updated_at":"2025-03-29T15:16:53.666Z","avatar_url":"https://github.com/B-SOUL-Studio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\r\n\t\u003cimg width='100px' src='https://fastly.jsdelivr.net/gh/yesmore/img/img/logo-der.png' alt='der'/\u003e\r\n\u003c/p\u003e\r\n\u003cp align=\"center\"\u003e\r\n    \u003ca href=\"https://www.npmjs.org/package/@der-cli/core\" target='_blank'\u003e\r\n    \t\u003cimg src=\"https://img.shields.io/npm/v/@der-cli/core?style=flat-square\"\u003e\r\n    \u003c/a\u003e\r\n    \u003ca href=\"https://npmcharts.com/compare/@der-cli/core?minimal=true\" target='_blank'\u003e\r\n    \t\u003cimg src=\"https://img.shields.io/npm/dt/@der-cli/core?style=flat-square\"\u003e\r\n    \u003c/a\u003e\r\n    \u003ca href=\"https://www.lernajs.cn/\" target='_blank'\u003e\r\n    \t\u003cimg src=\"https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg?style=flat-square\"\u003e\r\n    \u003c/a\u003e\r\n    \u003cbr\u003e\r\n    \u003cimg src=\"https://img.shields.io/github/stars/der-cli/der-cli.svg?logo=github\u0026style=flat-square\" alt=\"star\"/\u003e\r\n\t\u003cimg src=\"https://img.shields.io/github/license/der-cli/der-cli?style=flat-square\" alt=\"GPL\"/\u003e\r\n\u003c/p\u003e\r\n\u003cp align=\"center\"\u003e⚡𝓓𝓮𝓻 - A scaffolding tool for FE\u003c/p\u003e\r\n\r\n## What's 𝓓𝓮𝓻?\r\n\r\nA **scaffolding tool** to improve development efficiency for FE, build with **Node.js**.\r\n\r\n## 𝓓𝓮𝓻 can do\r\n\r\n- [x] Create a new project\r\n- [x] Auto commit \u0026 create a remote repo(github/gitee)\r\n- [x] Version control(Git Flow)\r\n- [x] Specification submission code\r\n\r\n## Quick Start\r\n\r\n#### Install CLI\r\n\r\n```shell\r\n$ npm install @der-cli/core -g\r\n# or\r\n$ yarn global add @der-cli/core\r\n```\r\n\r\n#### Create a project with 'der init'\r\n\r\n```shell\r\n$ mikdir mytest \u0026\u0026 cd mytest\r\n\r\n$ der init test-demo\r\n```\r\n\r\nBefore initialization, you can execute the **`der tpl`** command to see which templates are available(Network dependent).\r\n\r\n#### Commit to Github/Gitee with 'der go'\r\n\r\nThis command initializes the repo locally (.git) and commits the code to the remote repo.\r\n\r\nPlease check:\r\n\r\n- package.json\r\n- App Token\r\n\r\n```shell\r\n$ der go\r\n```\r\n\r\n**Note**: ` der go` will commit the code to the remote repo with the same name of the project ( **repo name is the name attribute value of package.json**). If the remote repo does not exist, it will be created **automatically**. This requires you to prepare your remote repo APP Token in advance. GitHub users can apply for a token [here](https://github.com/settings/tokens). For Gitee users, see [App Token](https://github.com/der-cli/cli/blob/master/docs/Documents.md#App-Token).\r\n\r\nIf you have created a remote repo, check package.json file, you can use this command directly.\r\n\r\nAfter executing the command, a `dev / x.x.x` branch will be generated remotely.\r\n\r\n#### Release tag with 'der go -re'\r\n\r\n```shell\r\n$ der go --release\r\n# or abbreviation\r\n$ der go -re\r\n```\r\n\r\n该命令会将代码合并到 master 分发删除当前版本开发分支，创建同版本 tag 分支合并到远程 master 分支，然后提交至远程仓库（远程与本地操作同步）。\r\n\r\n例: dev/1.0.1 =\u003e release/1.0.1，详见 [Git_Flow](https://github.com/der-cli/cli/blob/master/docs/Documents.md#Git-Flow-自动化).\r\n\r\n每次执行 `der go [-re]` 时，脚手架会检查代码冲突，检查通过则正常提交， 未通过会退出命令进程，这需要你手动解决代码冲突，控制台会将冲突代码位置打印出来，解决冲突再次执行即可。\r\n\r\n## More Commands\r\n\r\n#### View template list\r\n\r\n```shell\r\n$ der tpl\r\n\r\n# Or only project template\r\n$ der tpl --pro\r\n# Or only component template\r\n$ der tpl --com\r\n```\r\n\r\n#### View local cache\r\n\r\n```shell\r\n$ der cache --all\r\n\r\n# or\r\n$ der cache --git [--token]\r\n# or\r\n$ der cache --template\r\n# or\r\n$ der cache --dependencies\r\n```\r\n\r\n#### Empty local cache\r\n\r\n\u003e For scaffold cache, see [Cache](https://github.com/der-cli/cli/blob/master/docs/Documents.md#Cache-缓存).\r\n\r\n```shell\r\n# Default: clean all\r\n$ der clean\r\n$ der clean --all\r\n\r\n# or just clean dependencies\r\n$ der clean --dep\r\n```\r\n\r\n#### DEBUG Mode\r\n\r\n```shell\r\n$ der --debug\r\n# or\r\n$ der -d\r\n```\r\n\r\nMore Commands [here](https://github.com/der-cli/cli/blob/master/docs/Documents.md).\r\n\r\n#### Debug local package\r\n\r\nsee [docs](./docs/Documents.md)\r\n\r\n## TODOs\r\n\r\n- [ ] Add feat: choice yarn/npm\r\n- [ ] Add feat: add page cmd(may)\r\n- [ ] Add feat: add component cmd(may)\r\n- [ ] Add feat: Commit code to GitHub and gitee at the same time\r\n\r\n## Documents\r\n\r\n详情参考: [docs](https://github.com/der-cli/cli/blob/master/docs/Documents.md)\r\n\r\n## Change Log\r\n\r\n[CHANGELOG](./CHANGELOG.md)\r\n\r\n## Q \u0026 A\r\n\r\n#### 1.Can I Commit code directly after initialization？\r\n\r\nA: Sure. The premise is to prepare your [App Token](https://github.com/der-cli/cli/blob/master/docs/Documents.md#App-Token).\r\n\r\n#### 2.Can I use the 'der go' command for projects I create directly?\r\n\r\nA: Sure. `der go` will be based on your **package.json** content creates a repository and commits branch code.\r\n\r\n## Licence\r\n\r\nDer cli is open source software licensed as [GPL](LICENSE)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FB-SOUL-Studio%2Fcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FB-SOUL-Studio%2Fcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FB-SOUL-Studio%2Fcli/lists"}