{"id":18975619,"url":"https://github.com/shoppingzh/rollup-lib-template","last_synced_at":"2026-04-06T00:02:58.946Z","repository":{"id":47304831,"uuid":"438455205","full_name":"shoppingzh/rollup-lib-template","owner":"shoppingzh","description":"🔨 开箱即用的rollup库模板","archived":false,"fork":false,"pushed_at":"2024-08-22T13:29:38.000Z","size":63,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T01:05:28.946Z","etag":null,"topics":["lib","library","nodejs","rollup","typescript","util","utility"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/shoppingzh.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-15T01:24:19.000Z","updated_at":"2024-08-22T13:29:41.000Z","dependencies_parsed_at":"2024-06-23T14:49:43.569Z","dependency_job_id":"6f89b738-d5eb-4156-89c8-ceaad1095d31","html_url":"https://github.com/shoppingzh/rollup-lib-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoppingzh%2Frollup-lib-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoppingzh%2Frollup-lib-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoppingzh%2Frollup-lib-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoppingzh%2Frollup-lib-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shoppingzh","download_url":"https://codeload.github.com/shoppingzh/rollup-lib-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249224018,"owners_count":21232855,"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":["lib","library","nodejs","rollup","typescript","util","utility"],"created_at":"2024-11-08T15:19:55.156Z","updated_at":"2026-04-06T00:02:58.939Z","avatar_url":"https://github.com/shoppingzh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📦 rollup-lib-template\n\n开箱即用的rollup库模板。\n\n## 🚀 特性\n\n| | 功能 | 目的 | 待办 |\n| :--: | -- | -- | -- |\n| √ | git工作流 | 检查、美化代码，校验提交日志，生成版本日志等 | |\n| √ | 代码美化与校验 | 保证代码的一致性、可读性 | |\n| √ | TypeScript支持 | 强类型化，提升代码健壮性 | |\n| √ | 别名 | 更快编码 | |\n| √ | 包大小监控 | 控制包的大小，避免产物过大 | |\n| √ | babel | 输出兼容性更好的产物 | |\n| √ | terser | 降低打包产物的大小 | |\n| √ | CJS支持 | 支持通过 `require` 的方式引用模块 | |\n| √ | 移除无用代码 | 降低打包产物的大小，提升运行时效率 | |\n| √ | 环境变量 | 支持生成不同环境下的差异化产物 | 考虑代码中使用未配置的环境变量的情况 |\n| √ | 生成 `*.d.ts` 声明文件 | 更好的代码提示 |  | \n\n\n## 🔨 使用\n\n**下载项目**\n\n```bash\ngit clone https://github.com/shoppingzh/rollup-lib-template.git\n```\n\n\u003e 或者在 GitHub 中点击“Use this template”直接新建一个以此仓库为模板的新仓库。\n\n**准备**\n\n开始开发前，需要做如下准备：\n\n- 修改 `package.json`，修改包相关信息\n- 修改 `README.md`\n- 删除 `src` / `__tests__` 目录下的文件，编写自己的代码\n\n**开发**\n\n```bash\npnpm dev\n# yarn dev\n# npm run dev\n```\n\n\u003e 与构建不同，此脚本会监听文件变化，实时构建。\n\n**构建打包**\n\n```bash\npnpm build\n# yarn build\n# npm run build\n```\n\n**运行单元测试**\n\n```bash\npnpm test\n# yarn test\n# npm run test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshoppingzh%2Frollup-lib-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshoppingzh%2Frollup-lib-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshoppingzh%2Frollup-lib-template/lists"}