* refactor: update ci/cd scripts, switch to pnpm * updated workflow * add new packages github action. Bump package.json version (#762) * Update packages/transport-deno/scripts/build_npm.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update packages/core/package.json Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update packages/transport-deno/scripts/build_npm.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update packages/transport-deno/scripts/build_npm.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update packages/transport-deno/scripts/build_npm.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update .github/workflows/release-packages.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * revert copilot suggestion * adding lock file * regenerate lock file --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
113 lines
4.4 KiB
Markdown
113 lines
4.4 KiB
Markdown
# Meshtastic Web Monorepo
|
||
|
||
[](https://github.com/meshtastic/web/actions/workflows/ci.yml)
|
||
[](https://github.com/meshtastic/js/actions/workflows/ci.yml)
|
||
[](https://cla-assistant.io/meshtastic/web)
|
||
[](https://opencollective.com/meshtastic/)
|
||
[](https://vercel.com?utm_source=meshtastic&utm_campaign=oss)
|
||
|
||
## Overview
|
||
|
||
This monorepo consolidates the official [Meshtastic](https://meshtastic.org) web
|
||
interface and its supporting JavaScript libraries. It aims to provide a unified
|
||
development experience for interacting with Meshtastic devices.
|
||
|
||
### Projects within this Monorepo (`packages/`)
|
||
|
||
All projects are located within the `packages/` directory:
|
||
|
||
- **`packages/web` (Meshtastic Web Client):** The official web interface,
|
||
designed to be hosted or served directly from a Meshtastic node.
|
||
- **[Hosted version](https://client.meshtastic.org)**
|
||
- **`packages/core`:** Core functionality for Meshtastic JS.
|
||
- **`packages/transport-node`:** TCP Transport for the NodeJS runtime.
|
||
- **`packages/transport-deno`:** TCP Transport for the Deno runtime.
|
||
- **`packages/transport-http`:** HTTP Transport.
|
||
- **`packages/transport-web-bluetooth`:** Web Bluetooth Transport.
|
||
- **`packages/transport-web-serial`:** Web Serial Transport.
|
||
|
||
All `Meshtastic JS` packages (core and transports) are published both to
|
||
[JSR](https://jsr.io/@meshtastic). [NPM](https://www.npmjs.com/org/meshtastic)
|
||
|
||
---
|
||
|
||
## Stats
|
||
|
||
| Project | Repobeats |
|
||
| :------------- | :-------------------------------------------------------------------------------------------------------------------- |
|
||
| Meshtastic Web |  |
|
||
|
||
---
|
||
|
||
## Tech Stack
|
||
|
||
This monorepo leverages the following technologies:
|
||
|
||
- **Runtime:** pnpm / Deno
|
||
- **Web Client:** React.js
|
||
- **Styling:** Tailwind CSS
|
||
- **Bundling:** Vite
|
||
- **Language:** TypeScript
|
||
- **Testing:** Vitest, React Testing Library
|
||
|
||
---
|
||
|
||
## Getting Started
|
||
|
||
### Prerequisites
|
||
|
||
You'll need to have [pnpm](https://pnpm.io/) installed to work with this monorepo.
|
||
Follow the installation instructions on their home page.
|
||
|
||
### Development Setup
|
||
|
||
1. **Clone the repository:**
|
||
```bash
|
||
git clone https://github.com/meshtastic/meshtastic-web.git
|
||
cd meshtastic-web
|
||
```
|
||
2. **Install dependencies for all packages:**
|
||
```bash
|
||
pnpm install
|
||
```
|
||
This command installs all necessary dependencies for all packages within the
|
||
monorepo.
|
||
|
||
### Running Projects
|
||
|
||
#### Meshtastic Web Client
|
||
|
||
Please refer to the [Meshtastic Web README](packages/web/README.md) for setup and usage.
|
||
|
||
### Feedback
|
||
|
||
If you encounter any issues, please report them in our
|
||
[issues tracker](https://github.com/meshtastic/web/issues). Your feedback helps
|
||
improve the stability of future releases
|
||
|
||
### Contributing
|
||
|
||
We welcome contributions! Here’s how the deployment flow works for pull
|
||
requests:
|
||
|
||
- **Preview Deployments:**\
|
||
Every pull request automatically generates a preview deployment on Vercel.
|
||
This allows you and reviewers to easily preview changes before merging.
|
||
|
||
- **Staging Environment (`client-test`):**\
|
||
Once your PR is merged, your changes will be available on our staging site:
|
||
[client-test.meshtastic.org](https://client-test.meshtastic.org/).\
|
||
This environment supports rapid feature iteration and testing without
|
||
impacting the production site.
|
||
|
||
- **Production Releases:**\
|
||
At regular intervals, stable and fully tested releases are promoted to our
|
||
production site: [client.meshtastic.org](https://client.meshtastic.org/).\
|
||
This is the primary interface used by the public to connect with their
|
||
Meshtastic nodes.
|
||
|
||
Please review our
|
||
[Contribution Guidelines](https://github.com/meshtastic/web/blob/main/CONTRIBUTING.md)
|
||
before submitting a pull request. We appreciate your help in making the project
|
||
better!
|