{"id":14982220,"url":"https://github.com/bigmurry/gulp-oss-sync","last_synced_at":"2025-10-29T11:31:21.990Z","repository":{"id":18080374,"uuid":"83014136","full_name":"BigMurry/gulp-oss-sync","owner":"BigMurry","description":"A gulp plugin to sync files with Aliyun OSS","archived":false,"fork":false,"pushed_at":"2022-01-13T13:36:00.000Z","size":212,"stargazers_count":11,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-26T18:21:44.569Z","etag":null,"topics":["gulp-plugin","oss","stream"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/BigMurry.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":"2017-02-24T07:29:53.000Z","updated_at":"2023-08-08T02:17:12.000Z","dependencies_parsed_at":"2022-07-25T23:30:53.311Z","dependency_job_id":null,"html_url":"https://github.com/BigMurry/gulp-oss-sync","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BigMurry%2Fgulp-oss-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BigMurry%2Fgulp-oss-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BigMurry%2Fgulp-oss-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BigMurry%2Fgulp-oss-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BigMurry","download_url":"https://codeload.github.com/BigMurry/gulp-oss-sync/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238817384,"owners_count":19535518,"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":["gulp-plugin","oss","stream"],"created_at":"2024-09-24T14:04:58.551Z","updated_at":"2025-10-29T11:31:16.621Z","avatar_url":"https://github.com/BigMurry.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gulp-oss-sync\nA gulp plugin to sync files with Aliyun OSS\n\nInspired by [gulp-awspublish](https://github.com/pgherveou/gulp-awspublish)\n\n[![NPM](https://nodei.co/npm/gulp-oss-sync.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/gulp-oss-sync/)\n\n## Introduction\nUse local cache file to store last published file path and file hash. If the file is in the cache file and the hash is unchanged, then ignore this file.\n\n## Screen shots\n![screen shot](https://raw.githubusercontent.com/bigmurry/gulp-oss-sync/master/test/capture.jpeg)\n\n## Features\n- Use cache file to save network traffic\n- Automatic delete useless file in OSS\n\n## How to use\n\n```js\nconst gulp = require('gulp');\nconst ossSync = require('gulp-oss-sync');\n\nconst ossConf = {\n  connect: {\n    \"region\": \"\u003cyour oss region\u003e\",\n    \"accessKeyId\": \"\u003cyour access key id here\u003e\",\n    \"accessKeySecret\": \"\u003cyour access key secret kere\u003e\",\n    \"bucket\": \"\u003cyour bucket name here\u003e\"\n  },\n  controls: {\n    \"headers\": {\n      \"Cache-Control\": \"no-cache\"\n    }\n  },\n  setting: {\n    dir: \"foo/bar\", // root directory name\n    noClean: false, // compare with the last cache file to decide if the file deletion is need\n    force: false, // ignore cache file and force re-upload all the files\n    quiet: true, // quiet option for oss deleteMulti operation\n    fileName: (path)=\u003e { return path } // modify oss file path\n  }\n};\nconst cacheConf = {\n  cacheFileName: '.oss-cache-test' // the filename for the cache file\n};\n\ngulp.task('publish', function () {\n  return gulp.src(['**/*.png'])\n    .pipe(ossSync(ossConf, cacheConf));\n})\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigmurry%2Fgulp-oss-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbigmurry%2Fgulp-oss-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigmurry%2Fgulp-oss-sync/lists"}