Commit 667fb3e51204e4bd75f10209097ad6f56adaed4d
Exists in
master
and in
2 other branches
Merge branch 'master' into 'master'
Master (pmarco) See merge request modulos-npm/foca-botonera-principal!6
Showing
1 changed file
Show diff stats
gulpfile.js
... | ... | @@ -72,7 +72,7 @@ gulp.task('webserver', function() { |
72 | 72 | ] |
73 | 73 | }); |
74 | 74 | |
75 | -gulp.task('clean-post-install', function(){ | |
75 | +gulp.task('clean-post-install', function() { | |
76 | 76 | return gulp.src(['src', 'tmp', '.jshintrc','readme.md', '.gitignore', 'gulpfile.js', |
77 | 77 | 'index.html'], {read: false}) |
78 | 78 | .pipe(clean()); |
... | ... | @@ -81,5 +81,14 @@ gulp.task('clean-post-install', function(){ |
81 | 81 | gulp.task('default', ['webserver']); |
82 | 82 | |
83 | 83 | gulp.task('watch', function() { |
84 | - gulp.watch([paths.srcJS, paths.srcViews], ['uglify']) | |
84 | + return gulp.watch([paths.srcJS, paths.srcViews], ['uglify']) | |
85 | +}); | |
86 | + | |
87 | +gulp.task('copy', ['uglify'], function() { | |
88 | + return gulp.src('dist/*.js') | |
89 | + .pipe(gulp.dest('../../wrapper-demo/node_modules/foca-botonera-principal/dist/')); | |
90 | +}); | |
91 | + | |
92 | +gulp.task('watchAndCopy', function() { | |
93 | + return gulp.watch([paths.srcJS, paths.srcViews], ['copy']); | |
85 | 94 | }); |