react-swap
v1.1.1 component react-component react react-swap swap toggle switch hover dropdown and 1 more...
build
npm run build:clean && npm run build:lib && npm run build:example && npm run build:build
build:clean
rm -rf lib example build
build:lib
babel src --out-dir lib --source-maps --ignore src/example
build:example
webpack
build:build
BUILD=1 webpack
prepublish
npm run build
start
NODE_ENV=development webpack-dev-server
lint
eslint .
test
karma start ./karma.conf.js --single-run --reporters nyan
test:dev
karma start ./karma.conf.js --no-single-run --auto-watch --reporters nyan
test:cov
COVERAGE=1 karma start ./karma.conf.js --single-run --reporters coverage
check
npm run lint && npm run test && npm run build
coveralls
cat ./reports/coverage/lcov.info | `npm bin`/coveralls