public
Created

  • Download Gist
build.sh
Shell
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
 
#! /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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.