{"id":17380232,"url":"https://github.com/ulivz/gulp-replace","last_synced_at":"2026-05-09T06:35:25.982Z","repository":{"id":66083658,"uuid":"77694698","full_name":"ulivz/gulp-replace","owner":"ulivz","description":"🍜 a Gulp file-replace and markdown-log-created  task.","archived":false,"fork":false,"pushed_at":"2019-07-30T16:20:22.000Z","size":10,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-22T09:42:43.808Z","etag":null,"topics":["gulp","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ulivz.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-30T15:35:21.000Z","updated_at":"2022-02-16T04:45:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"444bbf3c-b796-428a-8283-289e79ca6577","html_url":"https://github.com/ulivz/gulp-replace","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ulivz/gulp-replace","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulivz%2Fgulp-replace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulivz%2Fgulp-replace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulivz%2Fgulp-replace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulivz%2Fgulp-replace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ulivz","download_url":"https://codeload.github.com/ulivz/gulp-replace/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulivz%2Fgulp-replace/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32809857,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"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":["gulp","nodejs"],"created_at":"2024-10-16T06:41:50.919Z","updated_at":"2026-05-09T06:35:25.957Z","avatar_url":"https://github.com/ulivz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# replace\na Gulp file-replace and markdown-log-created task.\n\n\u003cbr\u003e\n\n## Quick Start\n\nBackup your files, and create a copy of what you need to do, then config your path of files in the `replace.config/config.json`,\n\nThis is an example:\n```\n{\n  \"path\": [\n    {\n      \"source\": \"replace.config/init/source/A.js\",\n      \"target_bak\": \"replace.config/init/bak/A.js\",\n      \"target\": \"src/A.js\"\n    },\n    {\n      \"source\": \"replace.config/init/source/B.js\",\n      \"target_bak\": \"replace.config/init/bak/B.js\",\n      \"target\": \"src/B.js\"\n    }\n  ]\n}\n```\n\nNext install the required dependencies for the project:\n```\nnpm install --save-dev gulp run-sequence fs path del events\n```\n\nThen you can replace the file with this instruction:\n```\ngulp replace\n```\n\nand Use the following instructions to restore the file:\n```\ngulp resume\n```\n\nYou can also see the markdown file for the project execution process in:\n```\nreplace.config/log/\n```\nA markdown file like this will give you a better understanding of the asynchronous execution of this project:\n\n---\n\n **Create Time**: 12/31/2016, 1:00:51 AM\u003cbr\u003eType: replace\n\nstatus|description\n---|---\nstart|getJSON\nfinish|getJSON\nstart|mapJSON\nfile[0]|**source**:\t\treplace.config/init/source/A.js\u003cbr\u003e**target**:\t\tsrc/A.js\nfile[1]|**source**:\t\treplace.config/init/source/B.js\u003cbr\u003e**target**:\t\tsrc/B.js\nfinish|mapJSON\ndelete|target files\nstart|replace\nfinish|replace [file1]\nfinish|replace [file0]\nfinish|replace\nfinish|ALL\n\n---\n\n## Parameter Description:\n\nparameters | note\n---|---\nsource|path of the file to replace\ntarget_bak|path of the target file backup\ntarget|path of the target file\n\n## Declaration\n\nWe can not determine what name should be used, so All versions of the same file must use the same name\n\u003cbr\u003e\n\n\n\n\n\n\n\n\n\n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fulivz%2Fgulp-replace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fulivz%2Fgulp-replace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fulivz%2Fgulp-replace/lists"}