Commit ff288de190f954515df51dddd5674158d486c841

Authored by Nicolás Guarnieri
Exists in master

Merge branch 'master' into 'master'

Master(efernandez)

See merge request modulos-npm/foca-modal-vendedores!4
... ... @@ -8,6 +8,7 @@ const pump = require('pump');
8 8 const jshint = require('gulp-jshint');
9 9 const replace = require('gulp-replace');
10 10 const connect = require('gulp-connect');
  11 +const clean = require('gulp-clean');
11 12  
12 13 var paths = {
13 14 srcJS: 'src/js/*.js',
... ... @@ -39,6 +40,8 @@ gulp.task('uglify', ['templates'], function() {
39 40 'tmp/views.js'
40 41 ]),
41 42 concat('foca-modal-vendedores.js'),
  43 + replace('src/views/', ''),
  44 + replace("'ngRoute'", ''),
42 45 gulp.dest(paths.tmp),
43 46 rename('foca-modal-vendedores.min.js'),
44 47 uglify(),
... ... @@ -66,4 +69,10 @@ gulp.task('webserver', function() {
66 69 ]
67 70 });
68 71  
69   -gulp.task('default', ['webserver']);
70 72 \ No newline at end of file
  73 +gulp.task('clean-post-install', function(){
  74 + return gulp.src(['src', 'tmp', '.jshintrc','readme.md', '.gitignore', 'gulpfile.js',
  75 + 'index.html'], {read: false})
  76 + .pipe(clean());
  77 +});
  78 +
  79 +gulp.task('default', ['webserver']);
... ... @@ -48,8 +48,6 @@
48 48 }
49 49 );
50 50 }
51   -
52   -
53 51 }]);
54 52 </script>
55 53  
... ... @@ -7,8 +7,8 @@
7 7 "test": "echo \"Error: no test specified\" && exit 1",
8 8 "gulp-pre-commit": "gulp pre-commit",
9 9 "compile": "gulp uglify",
10   - "postinstall": "npm run compile && rm -R src && rm index.html && rm .jshintrc && rm gulpfile.js",
11   - "install-dev": "npm install -D angular bootstrap font-awesome gulp gulp-angular-templatecache gulp-concat gulp-connect gulp-htmlmin gulp-jshint gulp-rename gulp-replace gulp-uglify jasmine-core jquery jshint pre-commit pump ui-bootstrap4 && npm i -D git+https://192.168.0.11/modulos-npm/foca-directivas"
  10 + "postinstall": "npm run compile && gulp clean-post-install",
  11 + "install-dev": "npm install -D angular bootstrap font-awesome gulp gulp-angular-templatecache gulp-concat gulp-connect gulp-htmlmin gulp-jshint gulp-rename gulp-clean gulp-replace gulp-uglify jasmine-core jquery jshint pre-commit pump ui-bootstrap4 && npm i -D git+https://192.168.0.11/modulos-npm/foca-directivas"
12 12 },
13 13 "pre-commit": [
14 14 "gulp-pre-commit"
... ... @@ -43,6 +43,7 @@
43 43 "font-awesome": "^4.7.0",
44 44 "gulp": "^3.9.1",
45 45 "gulp-angular-templatecache": "^2.2.1",
  46 + "gulp-clean": "^0.4.0",
46 47 "gulp-concat": "^2.6.1",
47 48 "gulp-connect": "^5.6.1",
48 49 "gulp-htmlmin": "^5.0.1",