@react-hook/window-size
v2.0.3 react react hook hook react hooks hooks window size window size hook window width window width hook and 16 more...
build
npm run build-main && npm run build-module && npm run build-types
build-main
npm run compile -- -d dist/main --env-name main && npm run compile-throttled -- -d throttled/dist/main --env-name main
build-module
npm run compile -- -d dist/module --env-name module && npm run compile-throttled -- -d throttled/dist/module --env-name module
build-types
rimraf src/index.d.ts && find throttled/src -name '*.d.ts' -exec rm {} \; && tsc -p tsconfig.json -d --emitDeclarationOnly
compile
babel src -x .ts --ignore "**/*.d.ts","**/*.test.ts" --delete-dir-on-start
compile-throttled
babel throttled/src -x .ts --ignore "**/*.d.ts","**/*.test.ts" --delete-dir-on-start
check-types
tsc --noEmit -p tsconfig.json
format
prettier --write "**/*.{ts,js,jsx,md,yml,json,eslintrc,prettierrc}"
lint
eslint . --ext .ts
prepublishOnly
npm run lint && npm run test && npm run build && npm run format
test
jest
validate
npm run build && npm run check-types && npm run lint && npm run test -- --coverage
npm i @react-hook/[email protected]
Metadata
- MIT
- Whatever
- Jared Lunde
- released 4/24/2020