kottenator / animatr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Animatr

DOM/CSS-free animation/tween library

Install dev version

git clone <repo>
npm install

Build

Unminified

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 Browserify
  • exorcist: extract inline source map into file
  • derequire: rename "require" entries to prevent AMD auto-detect

Minified

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 Browserify
  • minifyify: minify JS source code
  • derequire: rename "require" entries to prevent AMD auto-detect

About


Languages

Language:JavaScript 95.7%Language:HTML 4.3%