{"id":37403284,"url":"https://github.com/slaawwa/gulp-git-sftp","last_synced_at":"2026-01-16T05:48:15.403Z","repository":{"id":57257659,"uuid":"85643675","full_name":"slaawwa/gulp-git-sftp","owner":"slaawwa","description":"Fast deploy (Gulp plugin for sftp deploy with git)","archived":false,"fork":false,"pushed_at":"2017-06-17T23:01:29.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-27T23:38:36.857Z","etag":null,"topics":["config","configuration","deploy","devtools","ftp","git","gulp","package-json","sftp"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/gulp-git-sftp","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/slaawwa.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}},"created_at":"2017-03-21T01:09:19.000Z","updated_at":"2017-06-18T13:18:10.000Z","dependencies_parsed_at":"2022-08-25T19:12:00.278Z","dependency_job_id":null,"html_url":"https://github.com/slaawwa/gulp-git-sftp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/slaawwa/gulp-git-sftp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaawwa%2Fgulp-git-sftp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaawwa%2Fgulp-git-sftp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaawwa%2Fgulp-git-sftp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaawwa%2Fgulp-git-sftp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slaawwa","download_url":"https://codeload.github.com/slaawwa/gulp-git-sftp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaawwa%2Fgulp-git-sftp/sbom","scorecard":{"id":830903,"data":{"date":"2025-08-11","repo":{"name":"github.com/slaawwa/gulp-git-sftp","commit":"360f76b47dad41f6dc62479be0a6fce109f3d704"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/10 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-23T17:46:34.543Z","repository_id":57257659,"created_at":"2025-08-23T17:46:34.543Z","updated_at":"2025-08-23T17:46:34.543Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28477414,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T03:13:13.607Z","status":"ssl_error","status_checked_at":"2026-01-16T03:11:47.863Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["config","configuration","deploy","devtools","ftp","git","gulp","package-json","sftp"],"created_at":"2026-01-16T05:48:15.291Z","updated_at":"2026-01-16T05:48:15.376Z","avatar_url":"https://github.com/slaawwa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url]\n\n[npm-url]: https://www.npmjs.com/package/gulp-git-sftp\n[downloads-image]: https://img.shields.io/npm/dm/gulp-git-sftp.svg\n[npm-image]: https://img.shields.io/npm/v/gulp-git-sftp.svg\n\n## Install `gulp-git-sftp` with `--save-dev`\n\n```sh\n$ npm i gulp-git-sftp -D\n```\n\n## What is gulp-git-sftp?\n\n- **gulp** - gulp...\n- **git** - git...\n- **sftp** - sftp...\n- **Simple** - By providing only a minimal API surface, gulp is easy to learn and simple to use\n\n## Sample use\n\n```sh\n# Load index.html and my.css and delete old.html\n$ gulp dep:files -f=index.html,my.css,del:old.html\n```\n\n```sh\n# Load and delete all changes form git (what `git add` now)\n# So, it is cool use before commit for preprod server for hot test\n$ gulp dep:git\n```\n\n```sh\n# Load all files to server\n$ gulp deploy\n```\n\n```sh\n# Delete all files to server\n$ gulp deploy --del\n```\n\n```sh\n# Load all files to server from `dist` (local directory) to `public` (remote directory)\n$ gulp deploy --basePath=dist --remotePath=public\n```\n\n```sh\n# Delete `public` directory on remote side\n$ gulp deploy --remotePath=public --del\n```\n\n### for more information about config watch [Help] directory\n```sh\n# Deploy files to prod server in config \n$ gulp deploy --dephost=prod\n```\n\n\n## Sample `gulpfile.js`\n\nThis file will give you a taste of what gulp does.\n\n```js\nvar ggs = require('gulp-git-sftp'),\n    cnf = require('./config/cnf'), // Look in help directory\n    argv = require('yargs').argv,\n    gulp = require('gulp'),\n    CNF = ggs.cnf(cnf);\n    \n    console.log('CNF:', CNF)\n\nvar FTP = ggs.ftp(CNF);\n\nvar conn = FTP.conn();\n\ngulp.task('dep:files', function() {\n    \n    var files = argv.f;\n        \n    if (!files) return;\n    \n    files = FTP._file2format( files.split(',') );\n    console.log(files)\n    \n    // TODO: need add return for correct work with stream \n    // return ggs.git({...}, (err)=\u003e{...});\n    ggs.git({\n        conn: conn,\n        files: files,\n        basePath: CNF.basePath,\n        remotePath: CNF.remotePath,\n    }, function(err) {\n        if (err) console.log('ERRROR2:', err);\n        console.log('Files from -f to FTP is deployed!!!')\n        return true;\n    });\n});\n\ngulp.task('dep:git', function() {\n    // TODO: need add return for correct work with stream \n    // return ggs.git({...}, (err)=\u003e{...});\n    ggs.git({\n        conn: conn,\n        basePath: CNF.basePath,\n        remotePath: CNF.remotePath,\n    }, function(err) {\n        if (err) console.log('ERRROR2:', err);\n        console.log('Files from git to FTP is deployed!!!')\n        return true;\n    });\n});\n\ngulp.task('deploy', function() {\n       \n    if (!argv.del) {\n        return gulp.src( [`${CNF.basePath}/**/*`, '!node_modules{,/**}', '!bower{,/**}', '!bower_components{,/**}', '**/.htaccess'], { base: CNF.basePath, buffer: false } )\n            .pipe( conn.newer( CNF.remotePath || argv.remotePath ) ) // only upload newer files \n            .pipe( conn.dest( CNF.remotePath || argv.remotePath ) );\n    } else {\n        // conn.delete(CNF.remotePath+'dd', function(e) {\n        return conn.rmdir(CNF.remotePath, function(e) {\n            console.log('deleted:', CNF.remotePath);\n        });\n    }\n});\n\n// BUILD TASKS \n// ...\n\n```\n## Create aliases in `package.json`\n\nSomething like that:\n\n```\n\"scripts\": {\n    \"depfront:prod\": \"gulp deploy --remotePath=frontend --basePath=frontend --dephost=prod\",\n    \"depfront\": \"gulp deploy --remotePath=frontend --basePath=frontend\",\n    \"depback:prod\": \"gulp deploy --remotePath=backend --basePath=backend --dephost=prod\",\n    \"depback\": \"gulp deploy --remotePath=backend --basePath=backend\",\n    \"deploy:prod\": \"gulp deploy --dephost=prod\",\n    \"deploy\": \"gulp deploy\",\n    \"depfront:del:prod\": \"gulp deploy --remotePath=frontend --dephost=prod --del\",\n    \"depfront:del\": \"gulp deploy --remotePath=frontend --del\",\n    \"depback:del:prod\": \"gulp deploy --remotePath=backend --dephost=prod --del\",\n    \"depback:del\": \"gulp deploy --remotePath=backend --del\",\n    \"deploy:del:prod\": \"gulp deploy --dephost=prod --del\",\n    \"deploy:del\": \"gulp deploy --del\"\n} \n```\n\n   [Help]: \u003chttps://github.com/slaawwa/gulp-git-sftp/tree/master/help\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslaawwa%2Fgulp-git-sftp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslaawwa%2Fgulp-git-sftp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslaawwa%2Fgulp-git-sftp/lists"}