DOM/CSS-free animation/tween library
git clone <repo>
npm install
Run browserify
(standalone) + babelify
+ exorcist
+ derequire
:
npm run build-js
# Equal to:
browserify src/easing.js -d -s animatr \
-t [ babelify --presets=babel-preset-es2015 ] | \
exorcist dist/easing.js.map | \
derequire > dist/easing.js
-s
(standalone): object in the global scope (window)babelify
: Babel for Browserifyexorcist
: extract inline source map into filederequire
: rename "require" entries to prevent AMD auto-detect
Run browserify
(standalone) + babelify
+ minifyify
+ derequire
npm run build-js-min
# Equal to:
browserify src/easing.js -d -s animatr \
-t [ babelify --presets=babel-preset-es2015 ] \
-p [ minifyify --output dist/easing.map.json --map=easing.map.json ] | \
derequire > dist/easing.js
-s
(standalone): object in the global scope (window)babelify
: Babel for Browserifyminifyify
: minify JS source codederequire
: rename "require" entries to prevent AMD auto-detect