Last Updated: February 25, 2016
·
1.436K
· jamesflorentino

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>