Bake EaselJS, TweenJS, PreloadJS and SoundJS into one JS file
This will curl the JavaScript libraries from the CreateJS repository to your system, concatenate them and produce a create.js
file.
bake:
curl https://raw.github.com/CreateJS/EaselJS/master/lib/easeljs-NEXT.min.js -o easel.js
curl https://raw.github.com/CreateJS/TweenJS/master/lib/tweenjs-0.3.0.min.js -o tween.js
curl https://raw.github.com/CreateJS/PreloadJS/master/lib/preloadjs-NEXT.min.js -o preload.js
curl https://raw.github.com/CreateJS/SoundJS/master/lib/soundjs-NEXT.min.js -o sound.js
cat easel.js tween.js preload.js sound.js > create.js
rm easel.js tween.js preload.js sound.js
Save it as a Makefile
to an empty folder, then run make
.
Then on your HTML code:
<script src="js/create.js""></script>
Written by James Florentino
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Makefile
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#