Merge pull request #452 from danditomaso/fix/switch-pnpm-to-bun
fix: changed pnpm to bun
This commit is contained in:
@@ -16,11 +16,11 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
- name: Setup bun
|
||||
uses: oven-sh/setup-bun@v2
|
||||
|
||||
- name: Install Dependencies
|
||||
run: pnpm install
|
||||
run: bun install
|
||||
|
||||
- name: Build Package
|
||||
run: pnpm build
|
||||
run: bun run build
|
||||
|
||||
@@ -9,17 +9,17 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
- name: Setup bun
|
||||
uses: oven-sh/setup-bun@v2
|
||||
|
||||
- name: Install Dependencies
|
||||
run: pnpm install
|
||||
run: bun install
|
||||
|
||||
- name: Build Package
|
||||
run: pnpm build
|
||||
run: bun run build
|
||||
|
||||
- name: Compress build
|
||||
run: pnpm package
|
||||
run: bun run package
|
||||
|
||||
- name: Archive compressed build
|
||||
uses: actions/upload-artifact@v4
|
||||
|
||||
@@ -14,18 +14,18 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: latest
|
||||
|
||||
- name: Setup bun
|
||||
uses: oven-sh/setup-bun@v2
|
||||
|
||||
- name: Install Dependencies
|
||||
run: pnpm install
|
||||
run: bun install
|
||||
|
||||
- name: Build Package
|
||||
run: pnpm build
|
||||
run: bun run build
|
||||
|
||||
- name: Package Output
|
||||
run: pnpm package
|
||||
run: bun run package
|
||||
|
||||
- name: Archive compressed build
|
||||
uses: actions/upload-artifact@v4
|
||||
|
||||
@@ -31,19 +31,20 @@ podman run -d -p 8080:8080 --restart always --name Meshtastic-Web ghcr.io/meshta
|
||||
```
|
||||
|
||||
## 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
|
||||
|
||||
Build the project:
|
||||
|
||||
```bash
|
||||
pnpm build
|
||||
bun run build
|
||||
```
|
||||
|
||||
GZip the output:
|
||||
|
||||
```bash
|
||||
pnpm package
|
||||
bun run package
|
||||
```
|
||||
|
||||
### Development
|
||||
@@ -51,11 +52,11 @@ pnpm package
|
||||
Install the dependencies.
|
||||
|
||||
```bash
|
||||
pnpm i
|
||||
bun i
|
||||
```
|
||||
|
||||
Start the development server:
|
||||
|
||||
```bash
|
||||
pnpm dev
|
||||
bun run dev
|
||||
```
|
||||
|
||||
+3
-7
@@ -16,18 +16,14 @@
|
||||
"postinstall": "npx 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": {
|
||||
"*.{ts,tsx}": [
|
||||
"npm run check:fix",
|
||||
"npm run format"
|
||||
"bun run check:fix",
|
||||
"bun run format"
|
||||
]
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20.0.0",
|
||||
"pnpm": ">=10.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/meshtastic/web.git"
|
||||
|
||||
Generated
-6666
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user