{"id":20551983,"url":"https://github.com/osaton/gulp-studio-push","last_synced_at":"2025-08-01T16:08:41.284Z","repository":{"id":46693930,"uuid":"67595995","full_name":"osaton/gulp-studio-push","owner":"osaton","description":"Crasman Studio push plugin","archived":false,"fork":false,"pushed_at":"2022-12-02T02:45:41.000Z","size":259,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-30T15:50:01.366Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/osaton.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":"2016-09-07T10:14:58.000Z","updated_at":"2020-08-26T12:34:30.000Z","dependencies_parsed_at":"2023-01-23T06:00:31.950Z","dependency_job_id":null,"html_url":"https://github.com/osaton/gulp-studio-push","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/osaton/gulp-studio-push","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osaton%2Fgulp-studio-push","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osaton%2Fgulp-studio-push/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osaton%2Fgulp-studio-push/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osaton%2Fgulp-studio-push/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osaton","download_url":"https://codeload.github.com/osaton/gulp-studio-push/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osaton%2Fgulp-studio-push/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268257044,"owners_count":24221054,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"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":[],"created_at":"2024-11-16T02:34:42.215Z","updated_at":"2025-08-01T16:08:41.063Z","avatar_url":"https://github.com/osaton.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Crasman Studio push plugin for gulp\n\n## What is this\n\nModern version of the legendary push.php. Windows users can ditch Cygwin - no PHP here, only Node.\n\n## Installation\n\n```bash\n$ npm install gulp-studio-push --save-dev\n$ echo '.studio-credentials' \u003e\u003e .gitignore # Add .studio-credentials to .gitignore file\n```\n\n## Ignoring unwanted files\n[Ignore patterns](https://git-scm.com/docs/gitignore) can be added to `.studio-ignore` file.\n\n#### .studio-ignore example:\n```gitignore\n.DS_Store\ndist/img/*.gif\n!dist/img/allowed.gif\n```\n\n## Examples\n\n\n### Push with different cache times for dev / production folders and Service Workers\n```javascript\ngulp.task('push', function () {\n  const studioPush = require('gulp-studio-push');\n  const studioSettings = {\n    studio: 'foo.studio.crasman.fi',\n    proxy: 'http://foo.intra:8080/',\n    concurrentUploads: 4 // Default 5, max 5 \n    // Only needed if you don't want to use the default ignore file (.studio-ignore)\n    //ignoreFile: '.studio-ignore-2', \n    folders : [{\n      folderId: '5807aedb2b089f6b6f44cfaf',\n      localFolder: 'dist',\n      includeSubFolders: true,\n      createdFolderSettings: { // Cache settings for created folders\n        'dist/master': { // RegExp match\n          fileCacheMaxAge: 604800 // Week for master files\n        },\n        'dist/release-.*?': { // RegExp match\n          fileCacheMaxAge: 604800 // Week for release-0.1, release-0.2 etc.\n        },\n        'dist/.*?': { // RegExp match\n          fileCacheMaxAge: 1 // 1 second for everything else (dev branches)\n        }\n      },\n      createdFileHeaders: { // (version ^1.5.0)\n        // For master and release-* branch Service Workers (sw.js or service-worker.js)\n        'dist/(master|release-.*)/(sw.js|service-worker.js)': { // RegExp match\n          'Service-Worker-Allowed': '/', // Allow from root of domain\n          'Cache-Control': 'public, max-age=60, s-maxage=60' // Use very short max age for Service Workers in production\n        },\n        // development branch Service Workers\n        'dist/.*/(sw.js|service-worker.js)': { // RegExp match\n          'Service-Worker-Allowed': '/', // Allow from root of domain\n          'Cache-Control': 'private, must-revalidate, no-cache, no-store, max-age=0, s-maxage=0' // no cache for development branch Service Workers\n        }\n      }\n    }]\n  };\n  return gulp.src('dist').pipe(studioPush(studioSettings));\n});\n```\n\n### Different gulp tasks for pushing specific folders\n\n```javascript\nconst gulp = require('gulp');\nconst studioPush = require('gulp-studio-push');\nconst studioSettings = {\n  studio: 'foo.studio.crasman.fi',\n  proxy: 'http://foo.intra:8080/',\n  folders: [{\n    folderId: '568a7a2aadd4532b0f4f4f5b',\n    localFolder: 'dist/js',\n    includeSubFolders: true // Create and upload child folders too\n  }, {\n    folderId: '568a7a27add453aa1a4f4f58',\n    localFolder: 'dist/css'\n  }, {\n    folderId: '568a7a27add453aa1a4f4f58',\n    localFolder: 'dist/img'\n  }, {\n    folderId: '568a7a27add453aa1a4f4f58',\n    localFolder: 'other/folder'\n  }]\n};\n\n// Upload all folders\ngulp.task('push', function () {\n  return gulp.src('.').pipe(studioPush(studioSettings));\n});\n\n// Upload dist/img folder\ngulp.task('push-images', function () {\n  return gulp.src('dist/img').pipe(studioPush(studioSettings));\n});\n\n// Upload all folders starting with 'dist' (dist/js, dist/css, dist/img)\ngulp.task('push-dist', function () {\n  return gulp.src('dist').pipe(studioPush(studioSettings));\n});\n\n// Upload css and js\ngulp.task('push-foo', function () {\n  return gulp.src(['dist/js', 'dist/css']).pipe(studioPush(studioSettings));\n});\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosaton%2Fgulp-studio-push","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosaton%2Fgulp-studio-push","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosaton%2Fgulp-studio-push/lists"}