Browse Source

fix: changed pnpm to bun

pull/452/head
Dan Ditomaso 1 year ago
parent
commit
bbb8384d66
  1. 8
      .github/workflows/ci.yml
  2. 10
      .github/workflows/pr.yml
  3. 12
      .github/workflows/release.yml
  4. 9
      README.md
  5. 1402
      bun.lock
  6. 10
      package.json
  7. 6666
      pnpm-lock.yaml

8
.github/workflows/ci.yml

@ -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

10
.github/workflows/pr.yml

@ -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

12
.github/workflows/release.yml

@ -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

9
README.md

@ -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
bun.lock

File diff suppressed because it is too large

10
package.json

@ -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
pnpm-lock.yaml

File diff suppressed because it is too large
Loading…
Cancel
Save