{"id":24630937,"url":"https://github.com/jarweb/nidavel","last_synced_at":"2026-05-07T21:35:02.416Z","repository":{"id":43967123,"uuid":"251493187","full_name":"Jarweb/nidavel","owner":"Jarweb","description":"a tool for building lib wrap by rollup","archived":false,"fork":false,"pushed_at":"2023-01-05T18:01:15.000Z","size":2676,"stargazers_count":2,"open_issues_count":20,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T03:48:57.483Z","etag":null,"topics":["library","rollup","typescript"],"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/Jarweb.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}},"created_at":"2020-03-31T03:40:55.000Z","updated_at":"2023-03-10T08:13:02.000Z","dependencies_parsed_at":"2023-02-04T09:15:58.332Z","dependency_job_id":null,"html_url":"https://github.com/Jarweb/nidavel","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jarweb%2Fnidavel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jarweb%2Fnidavel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jarweb%2Fnidavel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jarweb%2Fnidavel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jarweb","download_url":"https://codeload.github.com/Jarweb/nidavel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244560384,"owners_count":20472218,"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":["library","rollup","typescript"],"created_at":"2025-01-25T07:13:50.370Z","updated_at":"2026-05-07T21:35:02.376Z","avatar_url":"https://github.com/Jarweb.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nidavel is a planet\n\n## 特性：\n\n- 支持 cjs、umd、esm\n- 默认支持 ts\n- 默认支持 eslint。需要手动添加 .eslintrc.json 文件\n- 默认通过 bable + preset-typeScript 进行编译\n- 集成 babel react 优化插件和 esnext 实验性插件\n- 默认入口 src/index.ts， 默认输出目录 dist\n- 默认不进行代码压缩\n- 默认打包不会添加 polyfill，建议在应用打包中进行 polyfill，以避免 polyfill 重复\n\n\n## 使用：\n\n```code\nimport configRollup from 'nidavel'\n\n// simple\nexport default configRollup(options)\n\n// overrides\nexport defualt configRollup(options, (config) =\u003e {\n  return {\n    ...config,\n    ...{\n      // overrides\n    }\n  }\n})\n```\n\n## 配置：\n\n```code\ntype Target = 'cjs' | 'esm' | 'umd'\n\ninterface Options {\n  target: Target[],\n  globals?: {[key: string]: string}, // 外部引入的依赖\n  input?: string, // 入口，default src/index.ts\n  external?: string[], // 排除打包的库\n  alias?: { [key: string]: string },\n  isTypescript?: boolean, // default true\n  minify?: boolean, // default false\n  filesize?: boolean, // default true\n  eslintOptions?: any,\n  replaceOptions?: any\n}\n\ninterface OptionsOverrideCallback {\n  (config: RollupOptions): RollupOptions\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjarweb%2Fnidavel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjarweb%2Fnidavel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjarweb%2Fnidavel/lists"}