mirror of
https://github.com/luminous-devs/lume.git
synced 2024-09-28 16:00:48 +00:00
back to pnpm, bun is fun but cannot generate tauri build
This commit is contained in:
parent
2b34ef3b7a
commit
824aa8fa28
11
.github/workflows/main.yml
vendored
11
.github/workflows/main.yml
vendored
@ -33,18 +33,21 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y build-essential libssl-dev libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
|
sudo apt-get install -y build-essential libssl-dev libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
|
||||||
- name: Install bun
|
- name: Install pnpm
|
||||||
uses: oven-sh/setup-bun@v1
|
uses: pnpm/action-setup@v2
|
||||||
with:
|
with:
|
||||||
bun-version: latest
|
version: 8.x.x
|
||||||
|
run_install: false
|
||||||
- name: Setup node and cache for package data
|
- name: Setup node and cache for package data
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 'lts/*'
|
node-version: 'lts/*'
|
||||||
|
cache: 'pnpm'
|
||||||
|
cache-dependency-path: pnpm-lock.yaml
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
with:
|
with:
|
||||||
cache-on-failure: true
|
cache-on-failure: true
|
||||||
- run: bun install
|
- run: pnpm install
|
||||||
- uses: tauri-apps/tauri-action@dev
|
- uses: tauri-apps/tauri-action@dev
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
. "$(dirname -- "$0")/_/husky.sh"
|
. "$(dirname -- "$0")/_/husky.sh"
|
||||||
|
|
||||||
bun run lint-staged
|
pnpm run lint-staged
|
||||||
|
@ -4,14 +4,14 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.2.5",
|
"version": "1.2.5",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "bunx --bun vite",
|
"dev": "vite",
|
||||||
"build": "bunx --bun vite build",
|
"build": "vite build",
|
||||||
"tauri": "tauri",
|
"tauri": "tauri",
|
||||||
"add-migrate": "cd src-tauri/ && sqlx migrate add",
|
"add-migrate": "cd src-tauri/ && sqlx migrate add",
|
||||||
"prepare": "husky install",
|
"prepare": "husky install",
|
||||||
"lint": "eslint ./src --fix",
|
"lint": "eslint ./src --fix",
|
||||||
"format": "prettier ./src --write",
|
"format": "prettier ./src --write",
|
||||||
"dep-update": "bun update && cd src-tauri/ && cargo update"
|
"dep-update": "pnpm update && cd src-tauri/ && cargo update"
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"**/*.{ts, tsx}": "eslint --fix",
|
"**/*.{ts, tsx}": "eslint --fix",
|
||||||
|
Loading…
Reference in New Issue
Block a user