Skip to content

Commit

Permalink
Add gulp’s watch task
Browse files Browse the repository at this point in the history
  • Loading branch information
romashamin committed Jul 24, 2015
1 parent 8ceb590 commit d2a2d7b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions gulpfile.js
@@ -1,5 +1,5 @@
var gulp = require('gulp');
var concat = require('gulp-concat');
var gulp = require('gulp'),
concat = require('gulp-concat');

var srcFiles = [
'./src/header.coscript',
Expand All @@ -14,13 +14,15 @@ gulp.task('concat', function() {
.pipe(gulp.dest('./State-Machine.sketchplugin/Contents/Sketch/'));
});

gulp.task('copy', function() {
gulp.task('copy', ['concat'], function() {
return gulp.src(['./State-Machine.sketchplugin/**/*'], { base: './' })
.pipe(gulp.dest('/Users/roma/Library/Containers/com.bohemiancoding.sketch3/Data/Library/Application Support/com.bohemiancoding.sketch3/Plugins/'));
});

gulp.task('build', ['concat', 'copy']);

gulp.task('default', function() {
gulp.start(['build']);
gulp.task('default', ['build']);

gulp.task('watch', function() {
gulp.watch(srcFiles, ['build']);
});

0 comments on commit d2a2d7b

Please sign in to comment.