react-outside-click-handler

v1.0.0
A React component for dealing with clicks outside its subtree

tag

git tag v$npm_package_version

lint

eslint --ext .js,.jsx src test

test

npm run tests-only

build

npm run build:cjs && npm run build:esm

clean

rimraf build esm

mocha

mocha

react

enzyme-adapter-react-install 16

pretest

npm run --silent lint

prebuild

npm run clean

build:cjs

BABEL_ENV=cjs babel src/ -d build/

build:esm

BABEL_ENV=esm babel src/ -d esm/

prepublish

in-publish && safe-publish-latest && npm run build || not-in-publish

preversion

npm run test && npm run check-changelog && npm run check-only-changelog-changed

tests-only

npm run mocha --silent test

postversion

git commit package.json CHANGELOG.md -m "Version $npm_package_version" && npm run tag && git push && git push --tags && npm publish --registry=https://registry.npmjs.org/

pretests-only

npm run react

version:major

npm --no-git-tag-version version major

version:minor

npm --no-git-tag-version version minor

version:patch

npm --no-git-tag-version version patch

check-changelog

expr $(git status --porcelain 2>/dev/null| grep "^\s*M.*CHANGELOG.md" | wc -l) >/dev/null || (echo 'Please edit CHANGELOG.md' && exit 1)

check-only-changelog-changed

(expr $(git status --porcelain 2>/dev/null| grep -v "CHANGELOG.md" | wc -l) >/dev/null && echo 'Only CHANGELOG.md may have uncommitted changes' && exit 1) || exit 0

Metadata

  • MIT
  • Whatever
  • Maja Wichrowska
  • released 5/30/2018

Downloads