Skip to content

Instantly share code, notes, and snippets.

@arian
Created July 29, 2012 20:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arian/3201540 to your computer and use it in GitHub Desktop.
Save arian/3201540 to your computer and use it in GitHub Desktop.
#! /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