@hubble/request
v2.2.0
Published
A simple, universal, no-frills networking library
Keywords
Readme
@hubble/request
A simple, universal, no-frills networking library
Installing
Install in your project with:
npm install @hubble/requestOr, with yarn:
yarn add @hubble/requestDevelopment
Prerequisites
Setup
Run:
make dev-setup dev-buildDevelopment
To rebuild the contents of dist every time you change a file in src, use:
make dev-runTests
You can run the tests, while running make dev-run, using:
make dev-testYou can re-run the tests every time you save a file using:
make dev-test-watchGetting local node_modules
In order to have your code editor use node_modules to power its plugins (such as prettier and eslint), you'll need to export your node modules:
make dev-export-node-modulesDocs
We generate docs from JSDoc blocks on all our React code.
To view the docs locally, run
make dev-docsThis will generate the docs. You can view them at http://localhost:9004
Publishing
Once your branch has been approved and merged, follow these steps in main to publish:
- In one terminal tab, run
make dev-run - Open a new tab. Run
make dev-ssh - Bump the version, using
yarn version - Commit the version bump using version number as the commit header
- Push the update, and the tag, to the git repository:
git push && git push --tags - Log in to npm, using an account authorized to push to the
@hubblenamespace:yarn login - Publish to npm:
yarn publish
