Commit c83ab18ae41a99acd09c51948e63eeade577a964

Authored by Pablo Marco del Pont
1 parent 464933eea0
Exists in master

- Agregué tareas gulp.

- code styling.
Showing 1 changed file with 11 additions and 2 deletions   Show diff stats
... ... @@ -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 });