node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

gulp-google-drive

Gulp-Google-Drive

Gulp module to load all files from a Google Drive folder and emit them in a Vinyl stream.

Usage

config = {
    clientId: '...'
    clientSecret: '...'
    refreshToken: '...'
}
drive = require('gulp-google-drive', config)
gulp.task('fetch-assets', (done)->
    drive.src('dir-id')
    .pipe(cached('assets'))
    .pipe(drive.fetch)
    .pipe(remember('assets'))
    .pipe(gulp.dest('public/'))