Browse Source

Update libs

Gerald 9 years ago
parent
commit
b1a2ef843d
2 changed files with 15 additions and 18 deletions
  1. 2 4
      gulpfile.js
  2. 13 14
      package.json

+ 2 - 4
gulpfile.js

@@ -1,10 +1,8 @@
-'use strict';
-
 const gulp = require('gulp');
 const concat = require('gulp-concat');
 const replace = require('gulp-replace');
 const merge2 = require('merge2');
-const minifyCss = require('gulp-minify-css');
+const cssnano = require('gulp-cssnano');
 const gulpFilter = require('gulp-filter');
 const order = require('gulp-order');
 const del = require('del');
@@ -86,7 +84,7 @@ gulp.task('copy-files', function () {
   const cssFilter = gulpFilter(['**/*.css'], {restore: true});
   return gulp.src(paths.copy)
   .pipe(cssFilter)
-  .pipe(minifyCss())
+  .pipe(cssnano())
   .pipe(cssFilter.restore)
   .pipe(gulp.dest('dist/'));
 });

+ 13 - 14
package.json

@@ -2,38 +2,37 @@
   "name": "Violentmonkey",
   "version": "2.2.6",
   "scripts": {
+    "clean": "gulp clean",
     "dev": "gulp build && gulp watch",
     "update": "node scripts/updateLib"
   },
   "description": "Violentmonkey",
   "devDependencies": {
+    "codemirror": "^5.11.0",
     "del": "^2.2.0",
-    "glob": "^6.0.1",
-    "gulp": "^3.9.0",
+    "font-awesome": "^4.5.0",
+    "glob": "^7.0.0",
+    "gulp": "^3.9.1",
     "gulp-concat": "^2.6.0",
+    "gulp-cssnano": "^2.1.1",
     "gulp-filter": "^3.0.1",
-    "gulp-minify-css": "^1.2.2",
     "gulp-order": "^1.1.1",
     "gulp-replace": "^0.5.4",
     "gulp-util": "^3.0.7",
-    "html-minifier": "^1.0.0",
-    "merge2": "^0.3.6",
+    "html-minifier": "^1.1.1",
+    "merge2": "^1.0.1",
     "ncp": "^2.0.0",
-    "through2": "^2.0.0",
+    "through2": "^2.0.1",
     "underscore": "^1.8.3"
   },
   "author": "Gerald <[email protected]>",
   "repository": {
     "type": "git",
-    "url": "https://github.com/Violentmonkey/Violentmonkey.git"
+    "url": "https://github.com/violentmonkey/violentmonkey.git"
   },
   "bugs": {
-    "url": "https://github.com/Violentmonkey/Violentmonkey/issues"
+    "url": "https://github.com/violentmonkey/violentmonkey/issues"
   },
-  "homepage": "https://github.com/Violentmonkey/Violentmonkey",
-  "license": "MIT",
-  "dependencies": {
-    "codemirror": "^5.9.0",
-    "font-awesome": "^4.5.0"
-  }
+  "homepage": "https://github.com/violentmonkey/violentmonkey",
+  "license": "MIT"
 }