{"id":15782137,"url":"https://github.com/himanoa/dependencies-based-clone","last_synced_at":"2025-03-31T16:36:20.118Z","repository":{"id":196714635,"uuid":"695396215","full_name":"himanoa/dependencies-based-clone","owner":"himanoa","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-07T03:34:47.000Z","size":257,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T00:37:32.847Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/himanoa.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}},"created_at":"2023-09-23T03:55:49.000Z","updated_at":"2023-09-28T18:19:24.000Z","dependencies_parsed_at":"2024-10-26T00:38:17.768Z","dependency_job_id":"e7e958f9-bb95-4d85-abff-bbce84eda1f5","html_url":"https://github.com/himanoa/dependencies-based-clone","commit_stats":{"total_commits":66,"total_committers":1,"mean_commits":66.0,"dds":0.0,"last_synced_commit":"5b814f7c36c66434d561e48a971214cbbe92ed15"},"previous_names":["himanoa/copy-module","himanoa/dependencies-based-clone"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himanoa%2Fdependencies-based-clone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himanoa%2Fdependencies-based-clone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himanoa%2Fdependencies-based-clone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/himanoa%2Fdependencies-based-clone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/himanoa","download_url":"https://codeload.github.com/himanoa/dependencies-based-clone/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246498837,"owners_count":20787398,"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":[],"created_at":"2024-10-04T19:03:43.793Z","updated_at":"2025-03-31T16:36:20.084Z","avatar_url":"https://github.com/himanoa.png","language":"TypeScript","readme":"## dependencies-based-clone\n\nA tool to clone TypeScript source files into a separate directory based on dependency relationships and rules.\n\n### How to use\n\n1. Initialize the configuration:\n\n```bash\nnpx @himanoa/dependencies-based-clone init-config\n```\n2. Open dbc.config.json with your editor.\n3. Define your copy rules:\n  - from: A regular expression that matches the source files you want to clone.\n  - to: The destination file name. You can use placeholders like $1 which will expand groups defined in the from regex.\n\nExample:\n\n```json\n{\n  \"rules\": [{\n    \"from\": \"path/to/source/(.*)\\.ts\",\n    \"to\": \"path/to/destination/$1.js\"\n  }]\n}\n```\n\n4. Execute the clone:\n\n```bash\nnpx @himanoa/dependencies-based-clone clone src/index.ts\n```\n\n\nThis will start from src/index.ts, resolve its imports, and recursively clone files based on your rules.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimanoa%2Fdependencies-based-clone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhimanoa%2Fdependencies-based-clone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimanoa%2Fdependencies-based-clone/lists"}