diff --git a/gulpfile.js b/gulpfile.js index bd7f3ba..cad9d09 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -72,7 +72,7 @@ gulp.task('webserver', function() { ] }); -gulp.task('clean-post-install', function(){ +gulp.task('clean-post-install', function() { return gulp.src(['src', 'tmp', '.jshintrc','readme.md', '.gitignore', 'gulpfile.js', 'index.html'], {read: false}) .pipe(clean()); @@ -81,5 +81,14 @@ gulp.task('clean-post-install', function(){ gulp.task('default', ['webserver']); gulp.task('watch', function() { - gulp.watch([paths.srcJS, paths.srcViews], ['uglify']) + return 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-botonera-principal/dist/')); +}); + +gulp.task('watchAndCopy', function() { + return gulp.watch([paths.srcJS, paths.srcViews], ['copy']); });