react-dates

v15.1.0
A responsive and accessible date range picker component built with React

build

npm run clean && npm run build:cjs && npm run build:esm && npm run build:css -- --optimize

build:cjs

BABEL_ENV=cjs babel src/ -d lib/

build:esm

BABEL_ENV=esm babel src/ -d esm/

prebuild:css

rimraf lib/css && mkdir -p lib/css

build:css

node scripts/buildCSS.js

clean

rimraf lib esm

precover

rimraf coverage

cover

cross-env NODE_ENV=test node --max-old-space-size=2048 $(which nyc) npm run mocha test

lint

eslint --ext .js,.jsx src test

mocha

mocha ./test/_helpers

storybook:uninstall

npm uninstall --no-save @storybook/react && rimraf node_modules/@storybook node_modules/react-modal node_modules/react-dom-factories

react:clean

npm run storybook:uninstall && npm i --no-save ajv ajv-keywords && npm uninstall --no-save react react-dom react-addons-test-utils react-test-renderer && rimraf node_modules/react-test-renderer node_modules/react && npm prune

react:14

rimraf node_modules/.bin/npm && npm run react:clean && npm i --no-save [email protected] [email protected] [email protected] enzyme-adapter-react-14 && npm run storybook:uninstall && npm prune && npm i --no-save enzyme-adapter-react-14

react:15

rimraf node_modules/.bin/npm && npm run react:clean && npm i --no-save react@15 react-dom@15 react-addons-test-utils@15 react-test-renderer@15 && npm run storybook:uninstall && npm prune

pretest

npm run --silent lint

tests-only

npm run mocha --silent test

tests-karma

karma start

test

npm run tests-only

storybook

start-storybook -p 6006

storybook:css

npm run build:css && start-storybook -p 6006 -c .storybook-css

tag

git tag v$npm_package_version

gh-pages:clean

rimraf _gh-pages

gh-pages:build

$(npm bin)/build-storybook -o _gh-pages

gh-pages:publish

$(npm bin)/git-directory-deploy --directory _gh-pages

gh-pages

npm run gh-pages:clean && npm run gh-pages:build && npm run gh-pages:publish

version:patch

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

version:minor

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

version:major

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

preversion

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

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/

prepublish

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

postpublish

npm run gh-pages

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 11/10/2017

Downloads