forked from craftyjs/Crafty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.php
40 lines (36 loc) · 968 Bytes
/
build.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
ini_set('auto_detect_line_endings',true);
$src = "";
$files = array("license.txt",
"core.js",
"intro.js",
"HashMap.js",
"2D.js",
"collision.js",
"hitbox.js",
"DOM.js",
"html.js",
"storage.js",
"extensions.js",
"device.js",
"sprite.js",
"canvas.js",
"controls.js",
"animate.js",
"animation.js",
"drawing.js",
"isometric.js",
"particles.js",
"sound.js",
"text.js",
"loader.js",
"math.js",
"time.js",
"outro.js");
foreach($files as $file) {
$src .= file_get_contents("src/".$file);
$src .= "\n\n";
}
file_put_contents("crafty.js", $src);
?>
<h1>Done: Please YUI Compress!</h1>