{"id":22345522,"url":"https://github.com/xn-sakina/dora","last_synced_at":"2025-08-12T18:17:59.532Z","repository":{"id":65535105,"uuid":"594216524","full_name":"xn-sakina/dora","owner":"xn-sakina","description":"Dora is a deps precompile utils (esm to cjs)","archived":false,"fork":false,"pushed_at":"2023-11-17T14:31:10.000Z","size":437,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-30T03:55:04.145Z","etag":null,"topics":["dependencie-precompile","dora"],"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/xn-sakina.png","metadata":{"files":{"readme":"README.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-01-27T21:50:57.000Z","updated_at":"2025-01-01T12:55:31.000Z","dependencies_parsed_at":"2025-07-30T03:42:26.539Z","dependency_job_id":"3a8f628e-6617-48c6-840c-7672e0a4bbaf","html_url":"https://github.com/xn-sakina/dora","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/xn-sakina/dora","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xn-sakina%2Fdora","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xn-sakina%2Fdora/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xn-sakina%2Fdora/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xn-sakina%2Fdora/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xn-sakina","download_url":"https://codeload.github.com/xn-sakina/dora/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xn-sakina%2Fdora/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270111022,"owners_count":24529193,"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","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["dependencie-precompile","dora"],"created_at":"2024-12-04T09:17:59.330Z","updated_at":"2025-08-12T18:17:58.793Z","avatar_url":"https://github.com/xn-sakina.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @xn-sakina/dora\n\nDora is a deps precompile utils\n\n## Usage\n\n```bash\n  # 1. install dep\n  pnpm i -D @xn-sakina/dora\n\n  # 2. create config file\n\n  # 3. precompile deps\n  pnpm dora build\n```\n\n### Config\n\n#### Simple\n\n```ts\n// dora.config.ts\nimport { defineConfig } from '@xn-sakina/dora'\n\nexport default defineConfig({\n  deps: ['chalk'],\n})\n```\n\n#### Complex\n\n```ts\n// dora.config.ts\nimport { defineConfig } from '@xn-sakina/dora'\nimport fs from 'fs'\nimport path from 'path'\n\nexport default defineConfig({\n  deps: [\n    {\n      name: 'sass-loader',\n      hooks: {\n        onRunTaskBefore(opts) {\n          const sassLoaderPath = require.resolve('sass-loader')\n          const utilsPath = path.join(path.dirname(sassLoaderPath), 'utils.js')\n          const originalContent = fs.readFileSync(utilsPath, 'utf-8')\n\n          fs.writeFileSync(\n            utilsPath,\n            originalContent.replace(\n              /require\\.resolve\\([\"'](sass|node-sass)[\"']\\)/g,\n              'eval(\"require\").resolve(\"$1\")'\n            ),\n            'utf-8'\n          )\n\n          opts.externals = {\n            ...opts.externals,\n            'node-sass': 'node-sass',\n            sass: 'sass',\n            fibers: 'fibers',\n          }\n          console.log('opts: ', opts)\n        },\n      },\n    },\n  ],\n})\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxn-sakina%2Fdora","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxn-sakina%2Fdora","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxn-sakina%2Fdora/lists"}