{"id":22642603,"url":"https://github.com/zeffon/monorepo","last_synced_at":"2026-04-18T00:01:56.070Z","repository":{"id":41038492,"uuid":"507220529","full_name":"zeffon/monorepo","owner":"zeffon","description":"It's a monorepo template from vite.","archived":false,"fork":false,"pushed_at":"2023-02-06T07:44:16.000Z","size":257,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T05:42:42.696Z","etag":null,"topics":["monorepository","template","vite","vitejs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/zeffon.png","metadata":{"files":{"readme":"README-zh-CN.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-25T05:17:19.000Z","updated_at":"2022-10-13T02:29:03.000Z","dependencies_parsed_at":"2023-01-24T16:45:23.800Z","dependency_job_id":null,"html_url":"https://github.com/zeffon/monorepo","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/zeffon/monorepo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeffon%2Fmonorepo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeffon%2Fmonorepo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeffon%2Fmonorepo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeffon%2Fmonorepo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeffon","download_url":"https://codeload.github.com/zeffon/monorepo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeffon%2Fmonorepo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31950891,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["monorepository","template","vite","vitejs"],"created_at":"2024-12-09T05:07:34.174Z","updated_at":"2026-04-18T00:01:56.036Z","avatar_url":"https://github.com/zeffon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Language : [English](./README.md) | 简体中文\n\n\u003ch1 align=\"center\"\u003emonorepo\u003c/h1\u003e\n\n这是一个单体仓库模板\n\n\u003e 该模板来自 [vite](https://github.com/vitejs/vite) 项目。\n\n## 使用\n\n### 替换名称变量\n\n`your_repo_name` 是该 **github** 仓库名称\n`project_name` 是该仓库 `packages/project_name` 项目名称\n\n使用该单体仓库模板时，\n\n1. 请全局替换 `your_repo_name` -\u003e `你的 **github** 仓库名称`\n2. 请全局替换 `project_name` -\u003e `packages 目录下项目名称`\n\n### 配置 github 项目中 Actions 密钥\n\n\u003e 如果你不需要将项目进行发布，可以不需要进行配置 Actions 密钥，跳过该环节。\n\n在 `monorepo` 项目中发布时需要两个 Actions 密钥变量支持。\n一个是 Github 的授权令牌 `ACCESS_TOKEN`，另一个是发布到 NPM 上的 授权令牌 `NPM_TOKEN`。\n需要在 `Github -\u003e 当前项目 -\u003e Settings -\u003e Secrets -\u003e Actions` 中添加密钥变量值。\n这两个的名称分别是 **`ACCESS_TOKEN`** 和 **`NPM_TOKEN`**，对应的 value 获取方式如下。\n\n- 获取的 **`ACCESS_TOKEN`** 的方式，参见[该文档](https://docs.github.com/cn/developers/apps/managing-github-apps/editing-a-github-apps-permissions)\n- 获取的 **`NPM_TOKEN`** 的方式，参见[该文档](https://docs.npmjs.com/creating-and-viewing-access-tokens)\n\n\u003e 如果要采用其它变量名，记得更改项目中 `publish.yml` 和 `release-tag.yml` 对应的变量名。\n\n### 发布项目\n\n发布项目很简单，只需要在控制台中运行 `pnpm release` 命令，即可运行 `release.ts` 脚本。\n通过选择所发布的版本号，会自动创建对应版本的`tag`，脚本也会自动提交 `commit` 和 `tag`。\n提交到 github，会触发对应 workflow actions `publish.yml` 和 `release-tag.yml`。\n\n- `publish.yml` 会将我们所需要发布的包发布到 NPM 上。（需要配置`NPM_TOKEN`）\n- `release-tag.yml` 会帮助我们创建对应 Tag 版本信息。（需要配置`ACCESS_TOKEN`）\n\n## License\n\n[MIT](https://opensource.org/licenses/MIT)\n\nCopyright (c) 2022-present, Zeffon Wu\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeffon%2Fmonorepo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeffon%2Fmonorepo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeffon%2Fmonorepo/lists"}