Fixed Custom Builds (#695)

* Fixed Custom Builds in order accept partial builds using animate-config.json (bug in gulpfile)

* Update gulpfile.js
This commit is contained in:
vrescobar 2017-11-10 01:33:55 +01:00 committed by Elton Mesquita
parent ee39c11400
commit ff6509420d
2 changed files with 110 additions and 108 deletions

View File

@ -1,121 +1,121 @@
{ {
"attention_seekers": [ "attention_seekers": {
"bounce", "bounce": true,
"flash", "flash": true,
"pulse", "pulse": true,
"rubberBand", "rubberBand": true,
"shake", "shake": true,
"headShake", "headShake": true,
"swing", "swing": true,
"tada", "tada": true,
"wobble", "wobble": true,
"jello" "jello": true
], },
"bouncing_entrances": [ "bouncing_entrances": {
"bounceIn", "bounceIn": true,
"bounceInDown", "bounceInDown": true,
"bounceInLeft", "bounceInLeft": true,
"bounceInRight", "bounceInRight": true,
"bounceInUp" "bounceInUp": true
], },
"bouncing_exits": [ "bouncing_exits": {
"bounceOut", "bounceOut": true,
"bounceOutDown", "bounceOutDown": true,
"bounceOutLeft", "bounceOutLeft": true,
"bounceOutRight", "bounceOutRight": true,
"bounceOutUp" "bounceOutUp": true
], },
"fading_entrances": [ "fading_entrances": {
"fadeIn", "fadeIn": true,
"fadeInDown", "fadeInDown": true,
"fadeInDownBig", "fadeInDownBig": true,
"fadeInLeft", "fadeInLeft": true,
"fadeInLeftBig", "fadeInLeftBig": true,
"fadeInRight", "fadeInRight": true,
"fadeInRightBig", "fadeInRightBig": true,
"fadeInUp", "fadeInUp": true,
"fadeInUpBig" "fadeInUpBig": true
], },
"fading_exits": [ "fading_exits": {
"fadeOut", "fadeOut": true,
"fadeOutDown", "fadeOutDown": true,
"fadeOutDownBig", "fadeOutDownBig": true,
"fadeOutLeft", "fadeOutLeft": true,
"fadeOutLeftBig", "fadeOutLeftBig": true,
"fadeOutRight", "fadeOutRight": true,
"fadeOutRightBig", "fadeOutRightBig": true,
"fadeOutUp", "fadeOutUp": true,
"fadeOutUpBig" "fadeOutUpBig": true
], },
"flippers": [ "flippers": {
"flip", "flip": true,
"flipInX", "flipInX": true,
"flipInY", "flipInY": true,
"flipOutX", "flipOutX": true,
"flipOutY" "flipOutY": true
], },
"lightspeed": [ "lightspeed": {
"lightSpeedIn", "lightSpeedIn": true,
"lightSpeedOut" "lightSpeedOut": true
], },
"rotating_entrances": [ "rotating_entrances": {
"rotateIn", "rotateIn": true,
"rotateInDownLeft", "rotateInDownLeft": true,
"rotateInDownRight", "rotateInDownRight": true,
"rotateInUpLeft", "rotateInUpLeft": true,
"rotateInUpRight" "rotateInUpRight": true
], },
"rotating_exits": [ "rotating_exits": {
"rotateOut", "rotateOut": true,
"rotateOutDownLeft", "rotateOutDownLeft": true,
"rotateOutDownRight", "rotateOutDownRight": true,
"rotateOutUpLeft", "rotateOutUpLeft": true,
"rotateOutUpRight" "rotateOutUpRight": true
], },
"specials": [ "specials": {
"hinge", "hinge": true,
"jackInTheBox", "jackInTheBox": true,
"rollIn", "rollIn": true,
"rollOut" "rollOut": true
], },
"zooming_entrances": [ "zooming_entrances": {
"zoomIn", "zoomIn": true,
"zoomInDown", "zoomInDown": true,
"zoomInLeft", "zoomInLeft": true,
"zoomInRight", "zoomInRight": true,
"zoomInUp" "zoomInUp": true
], },
"zooming_exits": [ "zooming_exits": {
"zoomOut", "zoomOut": true,
"zoomOutDown", "zoomOutDown": true,
"zoomOutLeft", "zoomOutLeft": true,
"zoomOutRight", "zoomOutRight": true,
"zoomOutUp" "zoomOutUp": true
], },
"sliding_entrances": [ "sliding_entrances": {
"slideInDown", "slideInDown": true,
"slideInLeft", "slideInLeft": true,
"slideInRight", "slideInRight": true,
"slideInUp" "slideInUp": true
], },
"sliding_exits": [ "sliding_exits": {
"slideOutDown", "slideOutDown": true,
"slideOutLeft", "slideOutLeft": true,
"slideOutRight", "slideOutRight": true,
"slideOutUp" "slideOutUp": true
] }
} }

View File

@ -87,9 +87,11 @@ function activateAnimations() {
if (categories.hasOwnProperty(category)) { if (categories.hasOwnProperty(category)) {
files = categories[category]; files = categories[category];
for (var i = 0; i < files.length; ++i) { for (file in files) {
target.push('source/' + category + '/' + files[i] + '.css'); if (files[file]) { // marked as true
count += 1; target.push('source/' + category + '/' + file + '.css');
count += 1;
}
} }
} }
} }