1
0
mirror of https://github.com/exane/not-gwent-online synced 2024-11-23 19:36:53 +00:00

reverse gulp...

This commit is contained in:
exane 2015-07-03 15:16:21 +02:00
parent c127f1a8df
commit 00529ffd5c

View File

@ -81,12 +81,29 @@ gulp.task("index", function(){
}) })
gulp.task('resize sm', function(done){ gulp.task('resize sm', function(done){
if(fs.existsSync(__dirname + "/assets/cards/sm/monster/arachas1.png")) {
console.log("skip generating sm images");
return done(); return done();
}
return gulp.src('./assets/original_cards/**/*.png')
.pipe(gm(function(gmfile){
return gmfile.resize(null, 120);
}))
.pipe(imagemin())
.pipe(gulp.dest('./assets/cards/sm/'));
}); });
gulp.task('resize lg', ["resize sm"], function(done){ gulp.task('resize lg', ["resize sm"], function(done){
if(fs.existsSync(__dirname + "/assets/cards/lg/monster/arachas1.png")) {
console.log("skip generating lg images");
return done(); return done();
}
return gulp.src('./assets/original_cards/**/*.png')
.pipe(gm(function(gmfile){
return gmfile.resize(null, 450);
}))
.pipe(imagemin())
.pipe(gulp.dest('./assets/cards/lg/'));
}); });
gulp.task("sprite", ["resize lg"], function(){ gulp.task("sprite", ["resize lg"], function(){