Commit 3a29597acb1fa5b73538f485137331a02aae18e9

Authored by Nicolás Guarnieri
Exists in master

Merge branch 'master' into 'master'

Master

See merge request modulos-npm/foca-modal-busqueda-productos!6
... ... @@ -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',
... ... @@ -67,4 +68,10 @@ gulp.task('webserver', function() {
67 68 ]
68 69 });
69 70  
  71 +gulp.task('clean-post-install', function(){
  72 + return gulp.src(['src', 'tmp', '.jshintrc','readme.md', '.gitignore', 'gulpfile.js',
  73 + 'index.html'], {read: false})
  74 + .pipe(clean());
  75 +});
  76 +
70 77 gulp.task('default', ['webserver']);
71 78 \ No newline at end of file
... ... @@ -6,8 +6,8 @@
6 6 "test": "echo \"Error: no test specified\" && exit 1",
7 7 "gulp-pre-commit": "gulp pre-commit",
8 8 "compile": "gulp uglify",
9   - "postinstall": "npm run compile && rm -R src && rm index.html && rm .jshintrc && rm gulpfile.js",
10   - "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"
  9 + "postinstall": "npm run compile && gulp clean-post-install",
  10 + "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 gulp-clean jasmine-core jquery jshint pre-commit pump ui-bootstrap4 && npm i -D git+https://192.168.0.11/modulos-npm/foca-directivas"
11 11 },
12 12 "pre-commit": [
13 13 "gulp-pre-commit"
... ... @@ -42,6 +42,7 @@
42 42 "font-awesome": "^4.7.0",
43 43 "gulp": "^3.9.1",
44 44 "gulp-angular-templatecache": "^2.2.1",
  45 + "gulp-clean": "^0.4.0",
45 46 "gulp-concat": "^2.6.1",
46 47 "gulp-connect": "^5.6.1",
47 48 "gulp-htmlmin": "^5.0.1",
... ... @@ -56,4 +57,4 @@
56 57 "pump": "^3.0.0",
57 58 "ui-bootstrap4": "^3.0.4"
58 59 }
59   -}
60 60 \ No newline at end of file
  61 +}