[Pkg-javascript-commits] [animate.css] 01/05: Imported Upstream version 3.5.2~dfsg1

Alexandre Viau aviau at moszumanska.debian.org
Sat Jun 25 16:49:31 UTC 2016


This is an automated email from the git hooks/post-receive script.

aviau pushed a commit to branch master
in repository animate.css.

commit dbff9dde2e53145fdcaf254eb61377d6e9579756
Author: aviau <alexandre at alexandreviau.net>
Date:   Sat Jun 25 18:44:40 2016 +0200

    Imported Upstream version 3.5.2~dfsg1
---
 LICENSE      | 21 +++++++++++++++++++++
 README.md    | 19 +++++++++++++++++++
 animate.css  |  2 +-
 bower.json   |  1 -
 gulpfile.js  | 18 ++++++++++++------
 package.json |  7 ++++---
 6 files changed, 57 insertions(+), 11 deletions(-)

diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..7ae911b
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 Daniel Eden
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/README.md b/README.md
index 4f188b5..96f9d82 100644
--- a/README.md
+++ b/README.md
@@ -130,6 +130,25 @@ $('#yourElement').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimat
 
 **Note:** `jQuery.one()` is used when you want to execute the event handler at most *once*. More information [here](http://api.jquery.com/one/).
 
+You can also extend jQuery to add a function that does it all for you:
+
+```javascript
+$.fn.extend({
+    animateCss: function (animationName) {
+        var animationEnd = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend';
+        $(this).addClass('animated ' + animationName).one(animationEnd, function() {
+            $(this).removeClass('animated ' + animationName);
+        });
+    }
+});
+```
+
+And use it like this:
+
+```javascript
+$('#yourElement').animateCss('bounce');
+```
+
 You can change the duration of your animations, add a delay or change the number of times that it plays:
 
 ```css
diff --git a/animate.css b/animate.css
index 188e78f..7148b57 100644
--- a/animate.css
+++ b/animate.css
@@ -2,7 +2,7 @@
 
 /*!
  * animate.css -http://daneden.me/animate
- * Version - 3.5.0
+ * Version - 3.5.1
  * Licensed under the MIT license - http://opensource.org/licenses/MIT
  *
  * Copyright (c) 2016 Daniel Eden
diff --git a/bower.json b/bower.json
index d0cc4c5..168b6b8 100644
--- a/bower.json
+++ b/bower.json
@@ -3,7 +3,6 @@
   "main": "./animate.css",
   "ignore": [
     ".*",
-    "source",
     "*.yml",
     "Gemfile",
     "Gemfile.lock",
diff --git a/gulpfile.js b/gulpfile.js
index c0701d8..1277db9 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -1,17 +1,18 @@
 // Utilities
+var autoprefixer = require('autoprefixer');
+var cssnano = require('cssnano');
 var fs = require('fs');
 
 // Gulp
 var gulp = require('gulp');
 
 // Gulp plugins
-var gutil = require('gulp-util');
 var concat = require('gulp-concat');
+var gutil = require('gulp-util');
 var header = require('gulp-header');
-var autoprefixer = require('gulp-autoprefixer');
-var runSequence = require('run-sequence');
-var minify = require('gulp-cssnano');
+var postcss = require('gulp-postcss');
 var rename = require('gulp-rename');
+var runSequence = require('run-sequence');
 
 // Misc/global vars
 var pkg = JSON.parse(fs.readFileSync('package.json'));
@@ -54,10 +55,15 @@ gulp.task('default', function() {
 gulp.task('createCSS', function() {
   return gulp.src(activatedAnimations)
     .pipe(concat(opts.concatName))
-    .pipe(autoprefixer(opts.autoprefixer))
+    .pipe(postcss([
+      autoprefixer(opts.autoprefixer)
+    ]))
     .pipe(gulp.dest(opts.destPath))
+    .pipe(postcss([
+      autoprefixer(opts.autoprefixer),
+      cssnano({reduceIdents: {keyframes: false}})
+    ]))
     .pipe(rename(opts.minRename))
-    .pipe(minify({reduceIdents: {keyframes: false}}))
     .pipe(gulp.dest(opts.destPath));
 });
 
diff --git a/package.json b/package.json
index 8d7bf19..ec82388 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "animate.css",
-  "version": "3.5.0",
+  "version": "3.5.1",
   "main": "animate.css",
   "repository": {
     "type": "git",
@@ -20,11 +20,12 @@
     }
   },
   "devDependencies": {
+    "autoprefixer": "^6.3.2",
+    "cssnano": "^3.5.1",
     "gulp": "^3.9.0",
-    "gulp-autoprefixer": "^3.1.0",
     "gulp-concat": "^2.6.0",
-    "gulp-cssnano": "^2.0.0",
     "gulp-header": "^1.7.1",
+    "gulp-postcss": "^6.1.0",
     "gulp-rename": "^1.2.2",
     "gulp-util": "^3.0.7",
     "run-sequence": "^1.1.5"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/animate.css.git



More information about the Pkg-javascript-commits mailing list