@gkiely/utils
v0.1.61
Published
Small and efficient utility functions, well tested and optimized for bundle size and performance
Downloads
28
Readme
User Guide
Small and efficient utility functions, well tested and optimized for bundle size and performance
Methods:
- delay
- pick
- isEqual
- isObject
- omit
Development
To run TSDX, use:
npm start
This builds to /dist
and runs the project in watch mode so any edits you save inside src
causes a rebuild to /dist
.
To do a one-off build, use npm run build
To run tests, use npm test-all
To run tests in watch mode, use npm test
Configuration
Code quality is set up for you with prettier
, husky
, and lint-staged
. Adjust the respective fields in package.json
accordingly.
Jest
Jest tests are set up to run with npm test
Bundle Analysis
size-limit
is set up to calculate the real cost of your library with npm run size
and visualize the bundle with npm run analyze
.
Setup Files
This is the folder structure we set up for you:
/src
index.tsx # EDIT THIS
/test
blah.test.tsx # EDIT THIS
.gitignore
package.json
README.md # EDIT THIS
tsconfig.json
Powered by
https://tsdx.io/