Commit 808c8c227ff4098e856ebb8b3e857c1f49d23516
Exists in
master
Merge branch 'master' into 'master'
Master See merge request modulos-npm/foca-busqueda-cliente!3
Showing
2 changed files
Show diff stats
gulpfile.js
... | ... | @@ -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', |
... | ... | @@ -65,4 +66,10 @@ gulp.task('webserver', function() { |
65 | 66 | ] |
66 | 67 | }); |
67 | 68 | |
69 | +gulp.task('clean-post-install', function() { | |
70 | + return gulp.src(['src', 'tmp', '.jshintrc','readme.md', '.gitignore', 'gulpfile.js', | |
71 | + 'index.html'], {read: false}) | |
72 | + .pipe(clean()); | |
73 | +}); | |
74 | + | |
68 | 75 | gulp.task('default', ['webserver']); |
package.json
... | ... | @@ -6,7 +6,8 @@ |
6 | 6 | "scripts": { |
7 | 7 | "test": "echo \"Error: no test specified\" && exit 1", |
8 | 8 | "compile": "gulp uglify", |
9 | - "postinstall": "npm run compile && rm -R src && rm index.html && rm .jshintrc && rm gulpfile.js" | |
9 | + "postinstall": "npm run compile && gulp clean-post-install", | |
10 | + "install-dev": "npm install -D angular bootstrap angular-ui-bootstrap ui-bootstrap4 font-awesom jquery pre-commit jshint pump jasmine-core gulp gulp-connect gulp-angular-templatecache gulp-concat gulp-htmlmin gulp-jshint gulp-rename gulp-replace gulp-uglify-es gulp-clean" | |
10 | 11 | }, |
11 | 12 | "repository": { |
12 | 13 | "type": "git", |
... | ... | @@ -29,23 +30,24 @@ |
29 | 30 | "pump": "^3.0.x" |
30 | 31 | }, |
31 | 32 | "devDependencies": { |
32 | - "gulp-connect": "^5.6.1", | |
33 | - "jasmine-core": "3.2.1", | |
34 | - "pre-commit": "^1.2.2", | |
35 | 33 | "angular": "1.7.4", |
36 | 34 | "angular-ui-bootstrap": "2.5.6", |
37 | 35 | "bootstrap": "4.1.3", |
38 | 36 | "font-awesome": "4.7.0", |
39 | 37 | "gulp": "^3.9.1", |
40 | 38 | "gulp-angular-templatecache": "2.2.1", |
39 | + "gulp-clean": "^0.4.0", | |
41 | 40 | "gulp-concat": "2.6.1", |
41 | + "gulp-connect": "^5.6.1", | |
42 | 42 | "gulp-htmlmin": "5.0.1", |
43 | 43 | "gulp-jshint": "2.1.0", |
44 | 44 | "gulp-rename": "1.4.0", |
45 | 45 | "gulp-replace": "1.0.0", |
46 | 46 | "gulp-uglify-es": "1.0.4", |
47 | + "jasmine-core": "3.2.1", | |
47 | 48 | "jquery": "3.3.1", |
48 | 49 | "jshint": "2.9.6", |
50 | + "pre-commit": "^1.2.2", | |
49 | 51 | "pump": "3.0.0", |
50 | 52 | "ui-bootstrap4": "^3.0.5" |
51 | 53 | } |