1
0
mirror of https://github.com/exane/not-gwent-online synced 2024-12-23 21:03:14 +00:00

small gulp change

This commit is contained in:
exane 2015-06-27 14:39:33 +02:00
parent c41aa52369
commit 9b71d0d06b

View File

@ -83,7 +83,7 @@ gulp.task("index", function(){
gulp.task('resize sm', function(done){
if(fs.existsSync(__dirname + "/assets/cards/sm/monster/arachas1.png")) {
console.log("skip resizing sm");
console.log("skip generating sm images");
return done();
}
return gulp.src('./assets/original_cards/**/*.png')
@ -95,7 +95,7 @@ gulp.task('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 resizing lg");
console.log("skip generating lg images");
return done();
}
return gulp.src('./assets/original_cards/**/*.png')
@ -106,10 +106,10 @@ gulp.task('resize lg', ["resize sm"], function(done){
});
gulp.task("sprite", ["resize lg"], function(){
/*if(fs.existsSync(__dirname + "/public/build/")) {
console.log("skip resizing");
if(fs.existsSync(__dirname + "/public/build/cards-lg-monster.png")) {
console.log("skip sprite generating");
return;
}*/
}
sprity.src({
src: "./assets/cards/**/*.png",
style: "cards.css",