{"id":29123261,"url":"https://github.com/yasshi2525/export-gitproject","last_synced_at":"2026-05-02T05:04:51.280Z","repository":{"id":298002930,"uuid":"997966095","full_name":"yasshi2525/export-gitproject","owner":"yasshi2525","description":"copy and replace current git project with custom rules for exporting another git project.","archived":false,"fork":false,"pushed_at":"2025-06-07T16:02:52.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-08T21:36:56.137Z","etag":null,"topics":["git"],"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/yasshi2525.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-07T15:27:12.000Z","updated_at":"2025-06-07T15:29:10.000Z","dependencies_parsed_at":"2025-06-08T21:36:59.392Z","dependency_job_id":"f8393b21-61db-4f8e-bd1d-1e7853acde96","html_url":"https://github.com/yasshi2525/export-gitproject","commit_stats":null,"previous_names":["yasshi2525/export-gitproject"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/yasshi2525/export-gitproject","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasshi2525%2Fexport-gitproject","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasshi2525%2Fexport-gitproject/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasshi2525%2Fexport-gitproject/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasshi2525%2Fexport-gitproject/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yasshi2525","download_url":"https://codeload.github.com/yasshi2525/export-gitproject/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasshi2525%2Fexport-gitproject/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262648210,"owners_count":23342784,"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":["git"],"created_at":"2025-06-29T18:37:20.864Z","updated_at":"2026-05-02T05:04:46.256Z","avatar_url":"https://github.com/yasshi2525.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# export-gitproject\n\n既存の Git プロジェクトを別のプロジェクトとしてエクスポートします。\nファイルを別のファイルで置き換えたり、一部のファイルを除外してエクスポートできます。\n\n## 使い方\n\n```bash\nexport-gitproject [--config=\u003cpath\u003e] [--cwd=\u003cpath\u003e]\n```\n\n| オプション名    | 必須か | 値の例               | 省略時のデフォルト値     | 説明                                          |\n| --------------- | ------ | -------------------- | ------------------------ | --------------------------------------------- |\n| `--config`,`-c` | No     | `custom.config.json` | `export-gitproject.json` | 設定ファイルのパスを指定します                |\n| `--cwd`,`-d`    | No     | `other_project`      | `.`                      | 出力対象の Git プロジェクトディレクトリのパス |\n\n### 設定ファイル\n\n本コマンドの実行には設定ファイル `./export-gitproject.json` が必要です。\n設定ファイルのパスはコマンドオプション `--config`,`-c` で変更できます。\n\n`./export-gitproject.json` の例\n\n```json\n{\n    \"copy\": {\n        \"exclude\": [\"replace\"]\n    },\n    \"replace\": [\n        {\n            \"from\": \"replace/overwritten_by\",\n            \"to\": \"replace/original\"\n        }\n    ]\n}\n```\n\n| パラメタ                   | 必須か | 値の例           | 省略時のデフォルト値 | 説明                                                                   |\n| -------------------------- | ------ | ---------------- | -------------------- | ---------------------------------------------------------------------- |\n| `out`                      | No     | `\"dest\"`         | `\"out\"`              | エクスポート先のパス                                                   |\n| `copy.exclude`             | No     | `[\"lib\"]`        | `[]`                 | エクスポートしないパターン                                             |\n| `replace`                  | No     |                  | `[]`                 | ファイルを置き換えるルール                                             |\n| `replace[].from`           | Yes    | `\"dummy-images\"` | -                    | `to`ディレクトリはこのディレクトリに置き換えられます                   |\n| `replace[].to`             | Yes    | `\"images\"`       | -                    | このディレクトリは`from`ディレクトリに置き換えられます                 |\n| `replace[].errorOnUnmatch` | No     | `true`           | `false`              | `from`と`to`ディレクトリのファイル構成に差があった場合にエラーとするか |\n\n`copy.exclude` は `.gitignore` で指定可能なパターンを指定できます。\nなお、設定によらず `.git`, `.gitignore` にマッチするファイル, 設定ファイル はエクスポートされません。\n\nなお、設定ファイルの JSON スキーマは[こちら](https://raw.githubusercontent.com/yasshi2525/export-gitproject/main/config.schema.json)で公開しています。\n\n# License\n\nMIT License\n\n# Author\n\nyasshi2525 [X](https://x.com/yasshi2525)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyasshi2525%2Fexport-gitproject","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyasshi2525%2Fexport-gitproject","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyasshi2525%2Fexport-gitproject/lists"}