OLD | NEW |
1 (function() { | 1 (function() { |
2 | 2 |
3 var scopeSrc = [ | 3 var scopeSrc = [ |
4 'src/scope.js']; | 4 'src/scope.js']; |
5 | 5 |
6 var minifillSrc = [ | 6 var webAnimations1Src = [ |
7 'src/animation-node.js', | 7 'src/animation-node.js', |
8 'src/effect.js', | 8 'src/effect.js', |
9 'src/property-interpolation.js', | 9 'src/property-interpolation.js', |
10 'src/animation.js', | 10 'src/animation.js', |
11 'src/apply-preserving-inline-style.js', | 11 'src/apply-preserving-inline-style.js', |
12 'src/element-animatable.js', | 12 'src/element-animatable.js', |
13 'src/interpolation.js', | 13 'src/interpolation.js', |
14 'src/matrix-interpolation.js', | 14 'src/matrix-interpolation.js', |
15 'src/player.js', | 15 'src/player.js', |
16 'src/tick.js', | 16 'src/tick.js', |
17 'src/matrix-decomposition.js', | 17 'src/matrix-decomposition.js', |
18 'src/handler-utils.js', | 18 'src/handler-utils.js', |
19 'src/shadow-handler.js', | 19 'src/shadow-handler.js', |
20 'src/number-handler.js', | 20 'src/number-handler.js', |
21 'src/visibility-handler.js', | 21 'src/visibility-handler.js', |
22 'src/color-handler.js', | 22 'src/color-handler.js', |
23 'src/dimension-handler.js', | 23 'src/dimension-handler.js', |
24 'src/box-handler.js', | 24 'src/box-handler.js', |
25 'src/transform-handler.js', | 25 'src/transform-handler.js', |
26 'src/font-weight-handler.js', | 26 'src/font-weight-handler.js', |
27 'src/position-handler.js', | 27 'src/position-handler.js', |
28 'src/shape-handler.js', | 28 'src/shape-handler.js', |
29 'src/property-names.js', | 29 'src/property-names.js', |
30 ]; | 30 ]; |
31 | 31 |
32 var liteMinifillSrc = [ | 32 var liteWebAnimations1Src = [ |
33 'src/animation-node.js', | 33 'src/animation-node.js', |
34 'src/effect.js', | 34 'src/effect.js', |
35 'src/property-interpolation.js', | 35 'src/property-interpolation.js', |
36 'src/animation.js', | 36 'src/animation.js', |
37 'src/apply.js', | 37 'src/apply.js', |
38 'src/element-animatable.js', | 38 'src/element-animatable.js', |
39 'src/interpolation.js', | 39 'src/interpolation.js', |
40 'src/player.js', | 40 'src/player.js', |
41 'src/tick.js', | 41 'src/tick.js', |
42 'src/handler-utils.js', | 42 'src/handler-utils.js', |
43 'src/shadow-handler.js', | 43 'src/shadow-handler.js', |
44 'src/number-handler.js', | 44 'src/number-handler.js', |
45 'src/visibility-handler.js', | 45 'src/visibility-handler.js', |
46 'src/color-handler.js', | 46 'src/color-handler.js', |
47 'src/dimension-handler.js', | 47 'src/dimension-handler.js', |
48 'src/box-handler.js', | 48 'src/box-handler.js', |
49 'src/transform-handler.js', | 49 'src/transform-handler.js', |
50 'src/property-names.js', | 50 'src/property-names.js', |
51 ]; | 51 ]; |
52 | 52 |
53 | 53 |
54 var sharedSrc = [ | 54 var sharedSrc = [ |
55 'src/timing-utilities.js', | 55 'src/timing-utilities.js', |
56 'src/normalize-keyframes.js']; | 56 'src/normalize-keyframes.js', |
| 57 'src/deprecation.js', |
| 58 ]; |
57 | 59 |
58 var maxifillSrc = [ | 60 var webAnimationsNextSrc = [ |
59 'src/timeline.js', | 61 'src/timeline.js', |
60 'src/maxifill-player.js', | 62 'src/web-animations-next-player.js', |
61 'src/animation-constructor.js', | 63 'src/animation-constructor.js', |
62 'src/effect-callback.js', | 64 'src/effect-callback.js', |
63 'src/group-constructors.js']; | 65 'src/group-constructors.js']; |
64 | 66 |
65 var minifillTest = [ | 67 var webAnimations1Test = [ |
66 'test/js/animation-node.js', | 68 'test/js/animation-node.js', |
67 'test/js/apply-preserving-inline-style.js', | 69 'test/js/apply-preserving-inline-style.js', |
68 'test/js/box-handler.js', | 70 'test/js/box-handler.js', |
69 'test/js/color-handler.js', | 71 'test/js/color-handler.js', |
70 'test/js/dimension-handler.js', | 72 'test/js/dimension-handler.js', |
71 'test/js/effect.js', | 73 'test/js/effect.js', |
72 'test/js/interpolation.js', | 74 'test/js/interpolation.js', |
73 'test/js/matrix-interpolation.js', | 75 'test/js/matrix-interpolation.js', |
74 'test/js/number-handler.js', | 76 'test/js/number-handler.js', |
75 'test/js/player.js', | 77 'test/js/player.js', |
76 'test/js/player-finish-event.js', | 78 'test/js/player-finish-event.js', |
77 'test/js/property-interpolation.js', | 79 'test/js/property-interpolation.js', |
78 'test/js/tick.js', | 80 'test/js/tick.js', |
79 'test/js/timing.js', | 81 'test/js/timing.js', |
80 'test/js/transform-handler.js']; | 82 'test/js/transform-handler.js']; |
81 | 83 |
82 var maxifillTest = minifillTest.concat( | 84 var webAnimationsNextTest = webAnimations1Test.concat( |
83 'test/js/animation-constructor.js', | 85 'test/js/animation-constructor.js', |
84 'test/js/effect-callback.js', | 86 'test/js/effect-callback.js', |
85 'test/js/group-constructors.js', | 87 'test/js/group-constructors.js', |
86 'test/js/group-player.js', | 88 'test/js/group-player.js', |
87 'test/js/group-player-finish-event.js', | 89 'test/js/group-player-finish-event.js', |
88 'test/js/timeline.js'); | 90 'test/js/timeline.js'); |
89 | 91 |
90 // This object specifies the source and test files for different Web Animation
build targets. | 92 // This object specifies the source and test files for different Web Animation
build targets. |
91 var targetConfig = { | 93 var targetConfig = { |
92 'web-animations': { | 94 'web-animations': { |
93 scopeSrc: scopeSrc, | 95 scopeSrc: scopeSrc, |
94 sharedSrc: sharedSrc, | 96 sharedSrc: sharedSrc, |
95 minifillSrc: minifillSrc, | 97 webAnimations1Src: webAnimations1Src, |
96 maxifillSrc: [], | 98 webAnimationsNextSrc: [], |
97 src: scopeSrc.concat(sharedSrc).concat(minifillSrc), | 99 src: scopeSrc.concat(sharedSrc).concat(webAnimations1Src), |
98 test: minifillTest, | 100 test: webAnimations1Test, |
99 }, | 101 }, |
100 'web-animations-next': { | 102 'web-animations-next': { |
101 scopeSrc: scopeSrc, | 103 scopeSrc: scopeSrc, |
102 sharedSrc: sharedSrc, | 104 sharedSrc: sharedSrc, |
103 minifillSrc: minifillSrc, | 105 webAnimations1Src: webAnimations1Src, |
104 maxifillSrc: maxifillSrc, | 106 webAnimationsNextSrc: webAnimationsNextSrc, |
105 src: scopeSrc.concat(sharedSrc).concat(minifillSrc).concat(maxifillSrc), | 107 src: scopeSrc.concat(sharedSrc).concat(webAnimations1Src).concat(webAnimat
ionsNextSrc), |
106 test: maxifillTest, | 108 test: webAnimationsNextTest, |
107 }, | 109 }, |
108 'web-animations-next-lite': { | 110 'web-animations-next-lite': { |
109 scopeSrc: scopeSrc, | 111 scopeSrc: scopeSrc, |
110 sharedSrc: sharedSrc, | 112 sharedSrc: sharedSrc, |
111 minifillSrc: liteMinifillSrc, | 113 webAnimations1Src: liteWebAnimations1Src, |
112 maxifillSrc: maxifillSrc, | 114 webAnimationsNextSrc: webAnimationsNextSrc, |
113 src: scopeSrc.concat(sharedSrc).concat(liteMinifillSrc).concat(maxifillSrc
), | 115 src: scopeSrc.concat(sharedSrc).concat(liteWebAnimations1Src).concat(webAn
imationsNextSrc), |
114 test: [], | 116 test: [], |
115 }, | 117 }, |
116 }; | 118 }; |
117 | 119 |
118 if (typeof module != 'undefined') | 120 if (typeof module != 'undefined') |
119 module.exports = targetConfig; | 121 module.exports = targetConfig; |
120 else | 122 else |
121 window.webAnimationsTargetConfig = targetConfig; | 123 window.webAnimationsTargetConfig = targetConfig; |
122 })(); | 124 })(); |
OLD | NEW |