Skip to content

Commit

Permalink
feat: use bun for dev and release.
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Jan 24, 2024
1 parent 30aec8a commit ae9d52b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2,271 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ on:
- v*

env:
NODE_VERSION: "18"
PNPM_VERSION: "8.5.1"
GO_VERSION: "1.21.0"
NODE_VERSION: '18'
PNPM_VERSION: '8.5.1'
GO_VERSION: '1.21.0'

jobs:
release:
Expand All @@ -21,19 +21,11 @@ jobs:
go-version: ${{ env.GO_VERSION }}
stable: false

- uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}

- name: Check out
uses: actions/checkout@v2

- name: Install pnpm
uses: pnpm/[email protected]
with:
version: ${{ env.PNPM_VERSION }}
run_install: |
- cwd: frontend
- name: Setup Bun
uses: oven-sh/setup-bun@v1

- name: Build wasm
run: go build -ldflags="-s -w" -v -o frontend/static/calculator.wasm ./wasm
Expand All @@ -44,7 +36,8 @@ jobs:
- name: Build frontend
working-directory: frontend
run: |
pnpm run build
bun install
bun run build
ls -lah build
- name: Deploy
Expand Down
Binary file modified frontend/bun.lockb
Binary file not shown.
14 changes: 6 additions & 8 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,24 @@
"@typescript-eslint/parser": "^6.5.0",
"autoprefixer": "^10.4.15",
"comlink": "^4.4.1",
"eslint": "^8.48.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-svelte3": "^4.0.0",
"eslint": "^8.48.0",
"postcss": "^8.4.29",
"prettier": "^3.0.3",
"prettier-plugin-svelte": "^3.0.3",
"prettier": "^3.0.3",
"sass": "^1.66.1",
"svelte": "^4.2.0",
"svelte-canvas": "^0.9.3",
"svelte-check": "^3.5.1",
"svelte-i18n": "^4.0.0",
"svelte-preprocess": "^5.0.4",
"svelte-select": "^5.7.0",
"svelte-tiny-virtual-list": "^2.0.5",
"svelte": "^4.2.0",
"tailwindcss": "^3.3.3",
"tslib": "^2.6.2",
"typescript": "^5.2.2",
"vite": "^4.4.9"
},
"type": "module",
"dependencies": {
"svelte-i18n": "^4.0.0"
}
}
"type": "module"
}
Loading

0 comments on commit ae9d52b

Please sign in to comment.