Commit 6bbc7b07e8c702ce87168b9e0ccd549d0370ac53

Authored by Nicolás Guarnieri
1 parent 360215e77e
Exists in master

package.json fixeado para ser instalado

Showing 2 changed files with 33 additions and 3 deletions   Show diff stats
... ... @@ -5,6 +5,7 @@ const uglify = require('gulp-uglify');
5 5 const pump = require('pump');
6 6 const jshint = require('gulp-jshint');
7 7 const replace = require('gulp-replace');
  8 +const clean = require('gulp-clean');
8 9  
9 10 var paths = {
10 11 srcHTML : 'src/views/*.html',
... ... @@ -29,6 +30,12 @@ gulp.task('uglify', function() {
29 30 );
30 31 });
31 32  
  33 +gulp.task('clean-post-install', function() {
  34 + return gulp.src(['src', 'tmp', '.jshintrc','readme.md', '.gitignore', 'gulpfile.js',
  35 + 'index.html'], {read: false})
  36 + .pipe(clean());
  37 +});
  38 +
32 39 gulp.task('pre-commit', function() {
33 40 pump(
34 41 [
... ... @@ -4,15 +4,21 @@
4 4 "description": "",
5 5 "main": "index.js",
6 6 "scripts": {
7   - "test": "echo \"Error: no test specified\" && exit 1"
  7 + "test": "echo \"Error: no test specified\" && exit 1",
  8 + "gulp-pre-commit": "gulp pre-commit",
  9 + "postinstall": "gulp uglify",
  10 + "install-dev": "npm install -D gulp gulp-connect jasmine-core pre-commit angular angular-route angular-cookies bootstrap font-awesome gulp-angular-templatecache gulp-clean gulp-htmlmin gulp-jshint gulp-rename gulp-replace gulp-sequence gulp-uglify gulp-replace jquery jshint pump"
8 11 },
  12 + "pre-commit": [
  13 + "gulp-pre-commit"
  14 + ],
9 15 "repository": {
10 16 "type": "git",
11 17 "url": "https://debo.suite.repo/modulos-npm/foca-configuracion.git"
12 18 },
13 19 "author": "Nicolás Guarnieri",
14 20 "license": "ISC",
15   - "dependencies": {
  21 + "peerDependencies": {
16 22 "angular": "^1.7.5",
17 23 "angular-cookies": "^1.7.5",
18 24 "angular-route": "^1.7.5",
... ... @@ -28,5 +34,22 @@
28 34 "jshint": "^2.9.6",
29 35 "pre-commit": "^1.2.2",
30 36 "pump": "^3.0.0"
31   - }
  37 + },
  38 + "devDependencies": {
  39 + "angular": "^1.7.5",
  40 + "angular-cookies": "^1.7.5",
  41 + "angular-route": "^1.7.5",
  42 + "gulp": "^3.9.1",
  43 + "gulp-angular-templatecache": "^2.2.3",
  44 + "gulp-clean": "^0.4.0",
  45 + "gulp-concat": "^2.6.1",
  46 + "gulp-jshint": "^2.1.0",
  47 + "gulp-rename": "^1.4.0",
  48 + "gulp-replace": "^1.0.0",
  49 + "gulp-uglify": "^3.0.1",
  50 + "jquery": "^3.3.1",
  51 + "jshint": "^2.9.6",
  52 + "pre-commit": "^1.2.2",
  53 + "pump": "^3.0.0"
  54 + },
32 55 }