Created
December 23, 2015 14:40
-
-
Save mitsuruog/eddfcb0081d63154f342 to your computer and use it in GitHub Desktop.
Revisions
-
mitsuruog created this gist
Dec 23, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,35 @@ const gulp = require('gulp'); const imageResize = require('gulp-image-resize'); const remoteSrc = require('gulp-remote-src'); const bootstrapThemes = [ 'Cerulean', 'Cosmo', 'Cyborg', 'Darkly', 'Flatly', 'Journal', 'Lumen', 'Paper', 'Readable', 'Sandstone', 'Simplex', 'Slate', 'Spacelab', 'Superhero', 'United', 'Yeti' ].map((theme) => theme.toLowerCase()); gulp.task('bootswatch', () => { bootstrapThemes.map((theme) => { remoteSrc(['thumbnail.png'], { base: `https://bootswatch.com/${theme}/` }) .pipe(imageResize({ width: 350 })) .pipe(rename(`${theme}.png`)) .pipe(gulp.dest('thumbnails')) }); });