var gulp = require('gulp');
var concat = require('gulp-concat');

var srcFiles = [
  './src/header.coscript',
  './src/msstyle-helpers.coscript',
  './src/mslayer-helpers.coscript',
  './src/app.coscript'
];

gulp.task('concat', function() {
  return gulp.src(srcFiles)
    .pipe(concat('State-Machine.coscript'))
    .pipe(gulp.dest('./State-Machine.sketchplugin/Contents/Sketch/'));
});

gulp.task('copy', 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']);
});

@@ -2,16 +2,18 @@
 ar gulp 
+  
 = requir
@@ -25,13 +25,13 @@
 lp')
-;%0Avar
+,%0A   
  con
@@ -402,16 +402,28 @@
 ('copy',
+ %5B'concat'%5D,
  functio
@@ -719,16 +719,48 @@
 efault',
+ %5B'build'%5D);%0A%0Agulp.task('watch',
  functio
@@ -776,14 +776,24 @@
 ulp.
-start(
+watch(srcFiles, 
 %5B'bu

Add gulp’s watch task