A simple, universal, no-frills networking library
Install in your project with:
npm install @hubble/requestOr, with yarn:
yarn add @hubble/requestdockerdocker-composemake
Run:
make dev-setup dev-buildTo rebuild the contents of dist every time you change a file in src, use:
make dev-runYou 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-watchIn 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-modulesWe 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
Once your branch has been approved and merged, follow these steps from main to publish:
- Ensure your local
mainis up to date:git pull - In one terminal tab, start the dev container:
make dev-run - In a new tab, open a shell in the running container:
make dev-ssh - Bump the version — this will update
package.jsonand automatically create a commit and tag:yarn version - If the remote has received commits since the container was built, rebase on top of them:
git pull --rebase - Push the commit and tag to the repository:
git push && git push --tags - Build the distributable:
yarn build - Log in to npm using an account authorised to publish to the
@hubblenamespace:yarn login - Publish to npm:
yarn publish