Skip to content

Commit ff65094

Browse files
vrescobareltonmesquita
authored andcommitted
Fixed Custom Builds (#695)
* Fixed Custom Builds in order accept partial builds using animate-config.json (bug in gulpfile) * Update gulpfile.js
1 parent ee39c11 commit ff65094

2 files changed

Lines changed: 110 additions & 108 deletions

File tree

animate-config.json

Lines changed: 105 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -1,121 +1,121 @@
11
{
22

3-
"attention_seekers": [
4-
"bounce",
5-
"flash",
6-
"pulse",
7-
"rubberBand",
8-
"shake",
9-
"headShake",
10-
"swing",
11-
"tada",
12-
"wobble",
13-
"jello"
14-
],
3+
"attention_seekers": {
4+
"bounce": true,
5+
"flash": true,
6+
"pulse": true,
7+
"rubberBand": true,
8+
"shake": true,
9+
"headShake": true,
10+
"swing": true,
11+
"tada": true,
12+
"wobble": true,
13+
"jello": true
14+
},
1515

16-
"bouncing_entrances": [
17-
"bounceIn",
18-
"bounceInDown",
19-
"bounceInLeft",
20-
"bounceInRight",
21-
"bounceInUp"
22-
],
16+
"bouncing_entrances": {
17+
"bounceIn": true,
18+
"bounceInDown": true,
19+
"bounceInLeft": true,
20+
"bounceInRight": true,
21+
"bounceInUp": true
22+
},
2323

24-
"bouncing_exits": [
25-
"bounceOut",
26-
"bounceOutDown",
27-
"bounceOutLeft",
28-
"bounceOutRight",
29-
"bounceOutUp"
30-
],
24+
"bouncing_exits": {
25+
"bounceOut": true,
26+
"bounceOutDown": true,
27+
"bounceOutLeft": true,
28+
"bounceOutRight": true,
29+
"bounceOutUp": true
30+
},
3131

32-
"fading_entrances": [
33-
"fadeIn",
34-
"fadeInDown",
35-
"fadeInDownBig",
36-
"fadeInLeft",
37-
"fadeInLeftBig",
38-
"fadeInRight",
39-
"fadeInRightBig",
40-
"fadeInUp",
41-
"fadeInUpBig"
42-
],
32+
"fading_entrances": {
33+
"fadeIn": true,
34+
"fadeInDown": true,
35+
"fadeInDownBig": true,
36+
"fadeInLeft": true,
37+
"fadeInLeftBig": true,
38+
"fadeInRight": true,
39+
"fadeInRightBig": true,
40+
"fadeInUp": true,
41+
"fadeInUpBig": true
42+
},
4343

44-
"fading_exits": [
45-
"fadeOut",
46-
"fadeOutDown",
47-
"fadeOutDownBig",
48-
"fadeOutLeft",
49-
"fadeOutLeftBig",
50-
"fadeOutRight",
51-
"fadeOutRightBig",
52-
"fadeOutUp",
53-
"fadeOutUpBig"
54-
],
44+
"fading_exits": {
45+
"fadeOut": true,
46+
"fadeOutDown": true,
47+
"fadeOutDownBig": true,
48+
"fadeOutLeft": true,
49+
"fadeOutLeftBig": true,
50+
"fadeOutRight": true,
51+
"fadeOutRightBig": true,
52+
"fadeOutUp": true,
53+
"fadeOutUpBig": true
54+
},
5555

56-
"flippers": [
57-
"flip",
58-
"flipInX",
59-
"flipInY",
60-
"flipOutX",
61-
"flipOutY"
62-
],
56+
"flippers": {
57+
"flip": true,
58+
"flipInX": true,
59+
"flipInY": true,
60+
"flipOutX": true,
61+
"flipOutY": true
62+
},
6363

64-
"lightspeed": [
65-
"lightSpeedIn",
66-
"lightSpeedOut"
67-
],
64+
"lightspeed": {
65+
"lightSpeedIn": true,
66+
"lightSpeedOut": true
67+
},
6868

69-
"rotating_entrances": [
70-
"rotateIn",
71-
"rotateInDownLeft",
72-
"rotateInDownRight",
73-
"rotateInUpLeft",
74-
"rotateInUpRight"
75-
],
69+
"rotating_entrances": {
70+
"rotateIn": true,
71+
"rotateInDownLeft": true,
72+
"rotateInDownRight": true,
73+
"rotateInUpLeft": true,
74+
"rotateInUpRight": true
75+
},
7676

77-
"rotating_exits": [
78-
"rotateOut",
79-
"rotateOutDownLeft",
80-
"rotateOutDownRight",
81-
"rotateOutUpLeft",
82-
"rotateOutUpRight"
83-
],
77+
"rotating_exits": {
78+
"rotateOut": true,
79+
"rotateOutDownLeft": true,
80+
"rotateOutDownRight": true,
81+
"rotateOutUpLeft": true,
82+
"rotateOutUpRight": true
83+
},
8484

85-
"specials": [
86-
"hinge",
87-
"jackInTheBox",
88-
"rollIn",
89-
"rollOut"
90-
],
85+
"specials": {
86+
"hinge": true,
87+
"jackInTheBox": true,
88+
"rollIn": true,
89+
"rollOut": true
90+
},
9191

92-
"zooming_entrances": [
93-
"zoomIn",
94-
"zoomInDown",
95-
"zoomInLeft",
96-
"zoomInRight",
97-
"zoomInUp"
98-
],
92+
"zooming_entrances": {
93+
"zoomIn": true,
94+
"zoomInDown": true,
95+
"zoomInLeft": true,
96+
"zoomInRight": true,
97+
"zoomInUp": true
98+
},
9999

100-
"zooming_exits": [
101-
"zoomOut",
102-
"zoomOutDown",
103-
"zoomOutLeft",
104-
"zoomOutRight",
105-
"zoomOutUp"
106-
],
100+
"zooming_exits": {
101+
"zoomOut": true,
102+
"zoomOutDown": true,
103+
"zoomOutLeft": true,
104+
"zoomOutRight": true,
105+
"zoomOutUp": true
106+
},
107107

108-
"sliding_entrances": [
109-
"slideInDown",
110-
"slideInLeft",
111-
"slideInRight",
112-
"slideInUp"
113-
],
108+
"sliding_entrances": {
109+
"slideInDown": true,
110+
"slideInLeft": true,
111+
"slideInRight": true,
112+
"slideInUp": true
113+
},
114114

115-
"sliding_exits": [
116-
"slideOutDown",
117-
"slideOutLeft",
118-
"slideOutRight",
119-
"slideOutUp"
120-
]
115+
"sliding_exits": {
116+
"slideOutDown": true,
117+
"slideOutLeft": true,
118+
"slideOutRight": true,
119+
"slideOutUp": true
120+
}
121121
}

gulpfile.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,11 @@ function activateAnimations() {
8787
if (categories.hasOwnProperty(category)) {
8888
files = categories[category];
8989

90-
for (var i = 0; i < files.length; ++i) {
91-
target.push('source/' + category + '/' + files[i] + '.css');
92-
count += 1;
90+
for (file in files) {
91+
if (files[file]) { // marked as true
92+
target.push('source/' + category + '/' + file + '.css');
93+
count += 1;
94+
}
9395
}
9496
}
9597
}

0 commit comments

Comments
 (0)