Skip to content

Commit

Permalink
Watch gulp build jsx.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yasar icli committed Jun 14, 2016
1 parent 5fec1af commit 5e81bfd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Gulpfile.js → gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,10 @@ gulp.task('build', function () {
return gulp.src('./livestamp.jsx').pipe(babel()).pipe(gulp.dest('./dist'));
});

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

// watch jsx.
gulp.watch('./livestamp.jsx', ['build']);
});

gulp.task('default', ['watch']);

0 comments on commit 5e81bfd

Please sign in to comment.