Crasman Studio push plugin for gulp
What is this
Modern version of the legendary push.php. Windows users can ditch Cygwin - no PHP here, only Node.
Installation
$ npm install gulp-studio-push --save-dev$ echo '.studio-credentials' >> .gitignore # Add .studio-credentials to .gitignore file
Ignoring unwanted files
Ignore patterns can be added to .studio-ignore
file.
.studio-ignore example:
.DS_Storedist/img/*.gif!dist/img/allowed.gif
Examples
Push with different cache times for dev / production folders and Service Workers
gulp;
Different gulp tasks for pushing specific folders
const gulp = ;const studioPush = ;const studioSettings = studio: 'foo.studio.crasman.fi' proxy: 'http://foo.intra:8080/' folders: folderId: '568a7a2aadd4532b0f4f4f5b' localFolder: 'dist/js' includeSubFolders: true // Create and upload child folders too folderId: '568a7a27add453aa1a4f4f58' localFolder: 'dist/css' folderId: '568a7a27add453aa1a4f4f58' localFolder: 'dist/img' folderId: '568a7a27add453aa1a4f4f58' localFolder: 'other/folder' ; // Upload all foldersgulp; // Upload dist/img foldergulp; // Upload all folders starting with 'dist' (dist/js, dist/css, dist/img)gulp; // Upload css and jsgulp;