@react-hook/window-size
v1.0.13 react react hook hook react hooks hooks window size window size hook window width window width hook and 9 more...
build
npm run build:cjs && npm run build:es && npm run build:throttled && npm run build:types
build:cjs
babel src/index.ts -d dist/cjs -x .ts --ignore "**/*.test.ts","**/test.ts" --delete-dir-on-start
build:es
babel src/index.ts -d dist/es -x .ts --env-name es --ignore "**/*.test.ts","**/test.ts" --delete-dir-on-start
build:throttled
babel src/throttled.ts -o throttled/index.js -x .ts --ignore "**/*.test.ts","**/test.ts"
build:types
tsc -p tsconfig.json -d --outDir dist/es --emitDeclarationOnly && mkdir -p dist/cjs && cp -R dist/es/**.d.ts dist/cjs && rimraf dist/**/*.test.d.ts && tsc -p tsconfig.throttled.json -d --outDir throttled --emitDeclarationOnly && mv throttled/throttled.d.ts throttled/index.d.ts
check-types
tsc --noEmit -p tsconfig.json
format
prettier --write "**/*.{ts,js,md,yml,json,babelrc,eslintrc,prettierrc}"
lint
eslint . --ext .ts
prepublishOnly
npm run lint && npm run test && npm run build && npm run format
test
jest
validate
npm run check-types && npm run lint && npm run test -- --coverage
npm i @react-hook/[email protected]
Metadata
- MIT
- Whatever
- Jared Lunde
- released 2/26/2020