{"id":22903369,"url":"https://github.com/walrusjs/update-deploy-config","last_synced_at":"2025-04-01T07:22:51.440Z","repository":{"id":47943933,"uuid":"219701712","full_name":"walrusjs/update-deploy-config","owner":"walrusjs","description":"🛠️修改部署配置","archived":false,"fork":false,"pushed_at":"2022-12-10T07:54:09.000Z","size":1334,"stargazers_count":1,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T03:45:33.929Z","etag":null,"topics":[],"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/walrusjs.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}},"created_at":"2019-11-05T09:05:30.000Z","updated_at":"2021-02-27T09:17:07.000Z","dependencies_parsed_at":"2023-01-25T23:30:21.017Z","dependency_job_id":null,"html_url":"https://github.com/walrusjs/update-deploy-config","commit_stats":null,"previous_names":["walrus-plus/update-deploy-config"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walrusjs%2Fupdate-deploy-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walrusjs%2Fupdate-deploy-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walrusjs%2Fupdate-deploy-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/walrusjs%2Fupdate-deploy-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/walrusjs","download_url":"https://codeload.github.com/walrusjs/update-deploy-config/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246598725,"owners_count":20803078,"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-12-14T02:36:07.415Z","updated_at":"2025-04-01T07:22:51.408Z","avatar_url":"https://github.com/walrusjs.png","language":"TypeScript","readme":"\u003ch1 align=\"center\"\u003eupdate-deploy-config\u003c/h1\u003e\n\n修改部署配置的工具，主要供CI使用\n\n\u003e 本项目主要为了配合 [@alitajs/umi-plugin-deploy-config](https://github.com/alitajs/umi-plugin-packages/tree/master/packages/umi-plugin-deploy-config) 插件 解决CI流程自动化修改配置\n\n## 安装\n\n```\n// npm \nnpm install --dev @walrus/update-deploy-config\n\n// yarn\nyarn add --dev @walrus/update-deploy-config\n```\n\n**或者安装到全局**\n\n## 使用\n\n* 添加配置文件\n\n```\n// deploy.config.ts || deploy.config.js\nimport { resolve } from 'path';\n\nexport default {\n  // config.js 存在的目录 必须设置\n  dir: resolve(__dirname),\n  // 配置文件名称 默认config.js\n  file: 'config.js',\n  // 迭代器 \n  iterator: (key, obj) =\u003e {\n    if (key === 'baseURL') {\n      return 'test';\n    }\n    return obj[key];\n  }\n}\n```\n\n* 执行命令\n\n```\nupdate-deploy\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwalrusjs%2Fupdate-deploy-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwalrusjs%2Fupdate-deploy-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwalrusjs%2Fupdate-deploy-config/lists"}