To contribute to this project or build everything locally, start by cloning the repository:
git clone https://github.com/web-pacotes/networking.ts
Afterwards, install the client-side Git hooks to automatically format and lint the project before pushing new commits.
./hooks/INSTALL
To finish, install all the dependencies the project requires to be built.
npm i
(cd example; npm i)
If everything finished successfully, you're ready to start hacking around! The table below will onboard you on the available commands to use.
Script | Description |
---|---|
npm run build |
transpile and bundle files in .mjs , .js , .d.ts and respective source-maps |
npm run start |
run the project with esbuild compilation |
npm run start:web |
run the project as a web app |
npm run test |
run the unit tests |
npm run lint |
analyze and lint the project |
npm run format |
format the project based on lint feedback |
npm run docs |
generate docs site |
npm run docs:publish |
generate docs site and publish it to GitHub Pages |
npm run release |
create the temporary changesets file |
npm run publish |
publish the package to NPM |
To automatically publish the package to NPM, you will need to grab a token of the publisher account for CI usage, and set it as a repository secret in GitHub under the NPM_TOKEN
identifier.