forked from codecombat/codecombat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
coco-update-createjs
executable file
·63 lines (56 loc) · 1.89 KB
/
coco-update-createjs
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# automatically builds the latest versions of the CreateJS suite
# and puts them into vendor/scripts.
# for this to work:
# 1. create the CreateJS directory in your Desktop
# 2. git clone all four suites into that directory (ex. https://github.com/CreateJS/PreloadJS.git)
# 3. npm install grunt-cli for each, or add the -g options to run globally once
# then you can run this script to build the latest version whenever
# see the build/README file in any of these libraries on GitHub for more info
# https://github.com/CreateJS/EaselJS/blob/master/build/README.md
cd ~/Desktop/CreateJS/EaselJS/
echo updating Easel
git checkout .
git pull
sudo npm update
cd build
sudo npm update
echo building Easel
grunt combine
cd ~/Desktop/CreateJS/PreloadJS/
echo updating Preload
git checkout .
git pull
sudo npm update
cd build
sudo npm install
sudo npm update
echo building Preload
grunt combine
cd ~/Desktop/CreateJS/SoundJS/
echo updating Sound
git checkout .
git pull
sudo npm update
cd build
sudo npm install
sudo npm update
echo building Sound
grunt combine
cd ~/Desktop/CreateJS/TweenJS/
echo updating Tween
git checkout .
git pull
sudo npm update
cd build
sudo npm install
sudo npm update
echo building Tween
grunt combine
echo moving to CoCo
cp ~/Desktop/CreateJS/EaselJS/build/output/easeljs-NEXT.combined.js ~/Desktop/coco/vendor/scripts
cp ~/Desktop/CreateJS/EaselJS/build/output/movieclip-NEXT.min.js ~/Desktop/coco/vendor/scripts
cp ~/Desktop/CreateJS/EaselJS/src/easeljs/display/SpriteStage.js ~/Desktop/coco/vendor/scripts/
cp ~/Desktop/CreateJS/EaselJS/src/easeljs/display/SpriteContainer.js ~/Desktop/coco/vendor/scripts/
cp ~/Desktop/CreateJS/SoundJS/build/output/soundjs-NEXT.combined.js ~/Desktop/coco/vendor/scripts
cp ~/Desktop/CreateJS/PreloadJS/build/output/preloadjs-NEXT.combined.js ~/Desktop/coco/vendor/scripts
cp ~/Desktop/CreateJS/TweenJS/build/output/tweenjs-NEXT.combined.js ~/Desktop/coco/vendor/scripts