fix: changed pnpm to bun

This commit is contained in:
Dan Ditomaso
2025-02-21 12:39:46 -05:00
parent b23e197178
commit bbb8384d66
7 changed files with 1425 additions and 6692 deletions
+4 -4
View File
@@ -16,11 +16,11 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup pnpm - name: Setup bun
uses: pnpm/action-setup@v4 uses: oven-sh/setup-bun@v2
- name: Install Dependencies - name: Install Dependencies
run: pnpm install run: bun install
- name: Build Package - name: Build Package
run: pnpm build run: bun run build
+5 -5
View File
@@ -9,17 +9,17 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup pnpm - name: Setup bun
uses: pnpm/action-setup@v4 uses: oven-sh/setup-bun@v2
- name: Install Dependencies - name: Install Dependencies
run: pnpm install run: bun install
- name: Build Package - name: Build Package
run: pnpm build run: bun run build
- name: Compress build - name: Compress build
run: pnpm package run: bun run package
- name: Archive compressed build - name: Archive compressed build
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
+6 -6
View File
@@ -14,18 +14,18 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with: - name: Setup bun
version: latest uses: oven-sh/setup-bun@v2
- name: Install Dependencies - name: Install Dependencies
run: pnpm install run: bun install
- name: Build Package - name: Build Package
run: pnpm build run: bun run build
- name: Package Output - name: Package Output
run: pnpm package run: bun run package
- name: Archive compressed build - name: Archive compressed build
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
+5 -4
View File
@@ -31,19 +31,20 @@ podman run -d -p 8080:8080 --restart always --name Meshtastic-Web ghcr.io/meshta
``` ```
## Development & Building ## Development & Building
You'll need to download the package manager used with this repo. You can install it by visiting [Bun.sh](https://bun.sh/) and following the installation instructions.
### Building and Packaging ### Building and Packaging
Build the project: Build the project:
```bash ```bash
pnpm build bun run build
``` ```
GZip the output: GZip the output:
```bash ```bash
pnpm package bun run package
``` ```
### Development ### Development
@@ -51,11 +52,11 @@ pnpm package
Install the dependencies. Install the dependencies.
```bash ```bash
pnpm i bun i
``` ```
Start the development server: Start the development server:
```bash ```bash
pnpm dev bun run dev
``` ```
+1402
View File
File diff suppressed because it is too large Load Diff
+3 -7
View File
@@ -16,18 +16,14 @@
"postinstall": "npx simple-git-hooks" "postinstall": "npx simple-git-hooks"
}, },
"simple-git-hooks": { "simple-git-hooks": {
"pre-commit": "npm run check:fix && npm run format" "pre-commit": "bun run check:fix && bun run format"
}, },
"lint-staged": { "lint-staged": {
"*.{ts,tsx}": [ "*.{ts,tsx}": [
"npm run check:fix", "bun run check:fix",
"npm run format" "bun run format"
] ]
}, },
"engines": {
"node": ">=20.0.0",
"pnpm": ">=10.0.0"
},
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/meshtastic/web.git" "url": "git+https://github.com/meshtastic/web.git"
-6666
View File
File diff suppressed because it is too large Load Diff