Created
July 29, 2012 20:01
-
-
Save arian/3201540 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# build MooTools | |
packager build Core/Class \ | |
Core/Class.Extras \ | |
Core/Element \ | |
Core/Element.Event \ | |
Core/DOMReady \ | |
-blocks 1.2compat 1.3compat '!ES5' '!ES5-bind' \ | |
IE ltIE9 ltIE8 firefox ltFF4 webkit > core.js | |
# build moofx | |
npm install moofx | |
npm install wrapup | |
./node_modules/.bin/wrup -r moofx ./node_modules/moofx >> core.js | |
# add moofx adapter | |
echo -e "Element.implement('animate', function(){ \n \ | |
var moo = moofx(this); \n \ | |
moo.animate.apply(moo, arguments); \n \ | |
return this; \n \ | |
});" >> core.js | |
# minify | |
npm install uglify-js | |
./node_modules/.bin/uglifyjs core.js > core.min.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment