diff --git a/gulpfile.js b/gulpfile.js index 832aa83..8aae21d 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -88,3 +88,12 @@ gulp.task('default', ['webserver']); gulp.task('watch', function() { gulp.watch([paths.srcJS, paths.srcViews], ['uglify']); }); + +gulp.task('copy', ['uglify'], function() { + return gulp.src('dist/*.js') + .pipe(gulp.dest('../../wrapper-demo/node_modules/foca-crear-nota-pedido/dist/')); +}); + +gulp.task('watchAndCopy', function() { + return gulp.watch([paths.srcJS], ['copy']); +});