{"id":19377760,"url":"https://github.com/komomoo/dio","last_synced_at":"2025-04-23T18:33:53.739Z","repository":{"id":38323515,"uuid":"170474555","full_name":"komomoo/dio","owner":"komomoo","description":"📦 零配置 JavaScript、TypeScript、Vue 包构建工具，基于 Rollup","archived":false,"fork":false,"pushed_at":"2022-06-23T06:47:18.000Z","size":504,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-20T00:39:16.727Z","etag":null,"topics":["javascript-bundler","package-bundler","rollup","vue","vue-bundler","zero-config-bundler"],"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/komomoo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-02-13T08:58:18.000Z","updated_at":"2022-12-07T02:49:57.000Z","dependencies_parsed_at":"2022-08-25T02:21:19.744Z","dependency_job_id":null,"html_url":"https://github.com/komomoo/dio","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komomoo%2Fdio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komomoo%2Fdio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komomoo%2Fdio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komomoo%2Fdio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/komomoo","download_url":"https://codeload.github.com/komomoo/dio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250490731,"owners_count":21439201,"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":["javascript-bundler","package-bundler","rollup","vue","vue-bundler","zero-config-bundler"],"created_at":"2024-11-10T09:03:21.133Z","updated_at":"2025-04-23T18:33:53.454Z","avatar_url":"https://github.com/komomoo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dio\n\n\u003e 📦 零配置 javascript 包/库构建工具，基于 rollup\n\n## ✨ 特性\n\n- 零配置/极简\n- 为构建 库/模块包 而生\n- rollup 拥有 AST，能实现完整的 tree-sharking，构建出的体积更小。相较于 webpack 更适用于库构建\n- 支持 javascript、typescript、vue\n\n## 🚀 快速开始\n\n### 安装\n\n```bash\nyarn add -D dio-bundler # 或 npm i -D dio-bundler\n```\n\n### 使用\n\n**第一步**：package.json 中新增 scripts：\n\n```js\n  \"scripts\": {\n    \"build\": \"dio\"\n  },\n```\n\n**第二步**：命令行进入项目目录，运行：\n\n```bash\nyarn build # 或 npm run build\n```\n\ndio 默认以 `src/index.js` 为入口，在 `dist` 目录输出 `'umd', 'es', 'cjs'` 三种格式的构建包（包含未压缩和已压缩版本）。\n\n\u003cimg src=\"https://github.com/komomoo/dio/blob/master/docs/assets/cli.png?raw=true\"\u003e\n\n### 自定义配置\n\n可在项目根目录新建 `dio.config.js` 自定义 dio 构建配置（或在 `package.json` 中使用 `dioConfig` 对象配置）。\n\n[dio 默认配置/配置示例](https://github.com/komomoo/dio/blob/master/src/config/dio.config.js)\n\n\u003cbr\u003e\n\u003cbr\u003e\n😉😘 如果它对你有所帮助，可以点一下 \u003cb\u003e⭐️\u003ca href=\"#\"\u003eStar\u003c/a\u003e\u003c/b\u003e ~\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT)\n\nCopyright (c) 2018-present, komo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkomomoo%2Fdio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkomomoo%2Fdio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkomomoo%2Fdio/lists"}