From e6e12cd00cba30d4dc61062dffd9e7545cb45951 Mon Sep 17 00:00:00 2001 From: Eric Fernandez Date: Thu, 11 Oct 2018 16:22:07 -0300 Subject: [PATCH] instancio gulp-replace agrego tareas --- gulpfile.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index b0c8268..7fcd643 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -7,6 +7,7 @@ const uglify = require('gulp-uglify-es').default; const gulp = require('gulp'); const pump = require('pump'); const jshint = require('gulp-jshint'); +const replace = require('gulp-replace'); var paths = { srcJS: 'src/js/*.js', @@ -37,6 +38,8 @@ gulp.task('uglify', ['templates'], function() { 'tmp/views.js' ]), concat('foca-abm-plazo-pago.js'), + replace("['ngRoute', 'ui.bootstrap']", '[]'), + replace('src/views/', ''), gulp.dest(paths.tmp), rename('foca-abm-plazo-pago.min.js'), uglify(), @@ -60,3 +63,17 @@ gulp.task('pre-commit', function() { ] ); }); + +gulp.task('clean-post-install', function() { + return gulp.src(['src', 'tmp', '.jshintrc','readme.md', '.gitignore', 'gulpfile.js', + 'index.html'], {read: false}) + .pipe(clean()); +}); + +gulp.task('webserver', function() { + pump [ + connect.server({port: 3000}) + ] +}); + +gulp.task('default', ['webserver']); \ No newline at end of file -- 1.9.1