mjolnir.js

v1.2.1
An Event Manager
hammerjs touch gesture mouse keyboard event manager

lint

eslint src examples test

test

npm run lint && node test/node.js

build

npm run clean && npm run build-es5 && npm run build-es6

clean

rm -fr dist/* dist-es6/*

start

(cd examples/main && (path-exists node_modules || npm i) && npm run start-local)

build-es5

mkdir -p dist && babel src --out-dir dist --plugins=transform-es2015-modules-commonjs,transform-runtime --source-maps inline

build-es6

mkdir -p dist-es6 && babel src --out-dir dist-es6 --source-maps inline

publish-beta

npm run build && npm run test && npm publish --tag beta

publish-prod

npm run build && npm run test && npm publish

Metadata

  • MIT
  • >= 4
  • Unknown
  • released 6/13/2018

Downloads