8000 GitHub - gkiely/utils: Small and efficient utility functions, well tested and optimized for ES6 and bundle size
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000
/ utils Public

Small and efficient utility functions, well tested and optimized for ES6 and bundle size

License

Notifications You must be signed in to change notification settings

gkiely/utils

Repository files navigation

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/

About

Small and efficient utility functions, well tested and optimized for ES6 and bundle size

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0