gulp-sketch icon indicating copy to clipboard operation
gulp-sketch copied to clipboard

gulp-sketch task not completing

Open ronakdigite opened this issue 7 years ago • 0 comments

Hi, I am trying to run an independent gulp task, which will convert all my sketch files in a folder to pngs in another folder.

I am running the following task as per the given syntax:

gulp.task('sketch', function(){
return gulp.src('sketch-files/*.sketch')
.pipe(sketch({
export: 'artboards',
formats: 'png'
})).on('error', gutil.log)
.pipe(gulp.dest('preview'));
});

The task starts but never ends and i am thrown out of the gulp task. No pngs generated either... I am using gulp-sketch 1.0.5 and sketch version 45.2

Folder structure, ---gulpfile.js ---sketch-files ---preview all at the same level

Terminal Output: untitled-1

ronakdigite avatar Jul 27 '17 04:07 ronakdigite