瀏覽代碼

Update packages

Jay Salvat 6 年之前
父節點
當前提交
482a3232f7
共有 9 個文件被更改,包括 658 次插入237 次删除
  1. 0 7
      dist/vegas.css
  2. 4 4
      dist/vegas.js
  3. 0 0
      dist/vegas.min.css
  4. 0 0
      dist/vegas.min.css.map
  5. 0 0
      dist/vegas.min.js
  6. 0 0
      dist/vegas.min.js.map
  7. 23 20
      gulpfile.js
  8. 614 190
      package-lock.json
  9. 17 16
      package.json

+ 0 - 7
dist/vegas.css

@@ -29,7 +29,6 @@
     width: 0%;
     height: 100%;
     background: white;
-    -webkit-transition: width ease-out;
     transition: width ease-out;
 }
 
@@ -73,12 +72,6 @@ body.vegas-container > .vegas-slide {
 }
 
 /* Target Safari IOS7+ in order to add 76px */
-_::full-page-media, _:future,
-:root body.vegas-container > .vegas-slide,
-:root body.vegas-container > .vegas-overlay {
-    bottom: -76px;
-}
-
 /*******************************************/
 /* blur transition */
 /*******************************************/

+ 4 - 4
dist/vegas.js

@@ -1,6 +1,6 @@
 /*!-----------------------------------------------------------------------------
  * Vegas - Fullscreen Backgrounds and Slideshows.
- * v2.4.1 - built 2018-09-17
+ * v2.4.1 - built 2018-15-18
  * Licensed under the MIT License.
  * http://vegas.jaysalvat.com/
  * ----------------------------------------------------------------------------
@@ -251,7 +251,7 @@
 
             if (state) {
                 setTimeout(function () {
-                   self.$timer
+                    self.$timer
                     .addClass('vegas-timer-running')
                         .find('div')
                             .css('transition-duration', self._options('delay') - 100 + 'ms');
@@ -484,7 +484,7 @@
                     this.className  = 'vegas-slide';
 
                     if (this.tagName === 'VIDEO') {
-                        this.className += ' vegas-video';    
+                        this.className += ' vegas-video';
                     }
 
                     if (transition) {
@@ -524,7 +524,7 @@
                     }
 
                     for (var i = 0; i < $slides.length - self.settings.slidesToKeep; i++) {
-                         $slides.eq(i).remove();
+                        $slides.eq(i).remove();
                     }
 
                     self.trigger('walk');

File diff suppressed because it is too large
+ 0 - 0
dist/vegas.min.css


File diff suppressed because it is too large
+ 0 - 0
dist/vegas.min.css.map


File diff suppressed because it is too large
+ 0 - 0
dist/vegas.min.js


File diff suppressed because it is too large
+ 0 - 0
dist/vegas.min.js.map


+ 23 - 20
gulpfile.js

@@ -5,17 +5,17 @@
 (function () {
     'use strict';
 
-    var pkg       = require('./package.json'),
-        del       = require('del'),
-        yargs     = require('yargs'),
-        exec      = require('exec'),
-        fs        = require('fs'),
-        spawn     = require('child_process').spawn,
-        gulp      = require('gulp'),
-        plugins   = require('gulp-load-plugins')(),
-        gutil     = require('gulp-util'),
-        gsync     = require('gulp-sync'),
-        sync      = gsync(gulp).sync;
+    var pkg        = require('./package.json'),
+        del        = require('del'),
+        yargs      = require('yargs'),
+        exec       = require('exec'),
+        fs         = require('fs'),
+        dateFormat = require('date-format'),
+        spawn      = require('child_process').spawn,
+        gulp       = require('gulp'),
+        plugins    = require('gulp-load-plugins')(),
+        gsync      = require('gulp-sync'),
+        sync       = gsync(gulp).sync;
 
     var bumpVersion = yargs.argv.type || 'patch';
 
@@ -36,8 +36,8 @@
             ].join('\n'),
             vars: {
                 pkg: pkg,
-                datetime: gutil.date('yyyy-mm-dd'),
-                year: gutil.date('yyyy')
+                datetime: dateFormat.asString('yyyy-mm-dd'),
+                year: dateFormat.asString('yyyy')
             }
         }
     };
@@ -72,7 +72,7 @@
     });
 
     gulp.task('fail-if-dirty', function (cb) {
-        return exec('git diff-index HEAD --', function (err, output) { // err, output, code
+        return exec('git diff-index HEAD --', function (err, output) {
             if (err) {
                 return cb(err);
             }
@@ -84,7 +84,7 @@
     });
 
     gulp.task('fail-if-not-master', function (cb) {
-        exec('git symbolic-ref -q HEAD', function (err, output) { // err, output, code
+        exec('git symbolic-ref -q HEAD', function (err, output) {
             if (err) {
                 return cb(err);
             }
@@ -141,7 +141,7 @@
 
     gulp.task('meta', [ 'tmp-create' ], function (cb) {
         var  metadata = {
-                date: gutil.date('yyyy-mm-dd HH:MM'),
+                date: dateFormat.asString('yyyy-mm-dd HH:MM'),
                 version: 'v' + getPackageJson().version
             },
             json = JSON.stringify(metadata, null, 4);
@@ -164,7 +164,7 @@
 
     gulp.task('year', function () {
         return gulp.src([ './LICENSE.md', './README.md' ])
-            .pipe(plugins.replace(/(Copyright )(\d{4})/g, '$1' + gutil.date('yyyy')))
+            .pipe(plugins.replace(/(Copyright )(\d{4})/g, '$1' + dateFormat.asString('yyyy')))
             .pipe(gulp.dest('.'));
     });
 
@@ -188,8 +188,11 @@
                     warnings: false
                 },
                 mangle: true,
-                outSourceMap: true
+                output: {
+                    comments: /^!/
+                }
             }))
+            .on('error', function (err) { console.log(err) })
             .pipe(plugins.sourcemaps.write('.'))
             .pipe(gulp.dest('./dist/'));
     });
@@ -211,7 +214,7 @@
                 indentWidth: 4
             }).on('error', plugins.sass.logError))
             .pipe(plugins.autoprefixer())
-           // .pipe(plugins.sourcemaps.write('.'))
+            // .pipe(plugins.sourcemaps.write('.'))
             .pipe(gulp.dest("./dist/"));
     });
 
@@ -252,7 +255,7 @@
         var filename  = 'CHANGELOG.md',
             editor    = process.env.EDITOR || 'vim',
             version   = getPackageJson().version,
-            date      = gutil.date('yyyy-mm-dd'),
+            date      = dateFormat.asString('yyyy-mm-dd'),
             changelog = fs.readFileSync(filename).toString(),
             lastDate  = /\d{4}-\d{2}-\d{2}/.exec(changelog)[0];
 

File diff suppressed because it is too large
+ 614 - 190
package-lock.json


+ 17 - 16
package.json

@@ -20,24 +20,25 @@
     "zepto"
   ],
   "devDependencies": {
-    "del": "^2.2.0",
+    "date-format": "^1.2.0",
+    "del": "^3.0.0",
     "exec": "^0.2.1",
     "gulp": "^3.9.1",
-    "gulp-autoprefixer": "^3.1.0",
-    "gulp-bump": "^2.1.0",
-    "gulp-cssmin": "^0.1.6",
-    "gulp-header": "^1.8.2",
-    "gulp-jshint": "^2.0.1",
-    "gulp-load-plugins": "^1.2.4",
-    "gulp-rename": "^1.2.0",
-    "gulp-replace": "^0.5.0",
-    "gulp-sass": "^2.3.2",
-    "gulp-sourcemaps": "^1.3.0",
+    "gulp-autoprefixer": "^6.0.0",
+    "gulp-bump": "^3.1.1",
+    "gulp-cssmin": "^0.2.0",
+    "gulp-header": "^2.0.5",
+    "gulp-jshint": "^2.1.0",
+    "gulp-load-plugins": "^1.5.0",
+    "gulp-rename": "^1.4.0",
+    "gulp-replace": "^1.0.0",
+    "gulp-sass": "^4.0.1",
+    "gulp-sourcemaps": "^2.6.4",
     "gulp-sync": "^0.1.4",
-    "gulp-uglify": "^1.5.3",
-    "gulp-util": "^3.0.2",
-    "gulp-zip": "^3.2.0",
-    "jshint": "^2.9.2",
-    "yargs": "^4.7.1"
+    "gulp-uglify": "^3.0.1",
+    "gulp-util": "^3.0.8",
+    "gulp-zip": "^4.2.0",
+    "jshint": "^2.9.6",
+    "yargs": "^12.0.2"
   }
 }

Some files were not shown because too many files changed in this diff