From c83ab18ae41a99acd09c51948e63eeade577a964 Mon Sep 17 00:00:00 2001 From: Pablo Marco del Pont Date: Thu, 8 Nov 2018 17:50:46 -0300 Subject: [PATCH] =?UTF-8?q?-=20Agregu=C3=A9=20tareas=20gulp.=20-=20code=20?= =?UTF-8?q?styling.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gulpfile.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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']); }); -- 1.9.1