Skip to content

Commit

Permalink
bun!
Browse files Browse the repository at this point in the history
  • Loading branch information
hoshinotsuyoshi committed Oct 19, 2024
1 parent 56f3296 commit 49c235e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5,687 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,14 @@ jobs:
working-directory: ./backend
- run: bin/rubocop -f github
working-directory: ./backend
- uses: pnpm/action-setup@v4
- uses: oven-sh/setup-bun@v1
with:
package_json_file: ./frontend/package.json
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
cache-dependency-path: ./frontend/pnpm-lock.yaml
- run: pnpm i
bun-version: latest
- run: bun install
working-directory: ./frontend
- run: |
npm run graphql-codegen
npm run build:move
bun run graphql-codegen
bun run build:move
shell: bash
working-directory: ./frontend
- run: bundle exec rails db:prepare
Expand Down
Binary file added frontend/bun.lockb
Binary file not shown.
8 changes: 4 additions & 4 deletions frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"name": "my-spa",
"packageManager": "[email protected]",
"packageManager": "[email protected]",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"prepare": "panda codegen",
"dev": "vite",
"build": "tsc -b && vite build",
"build:move": "pnpm run build && pnpm run move-assets",
"build:move": "bun run build && bun run move-assets",
"move-assets": "rsync -av --delete dist/index.html ../backend/public/ && rsync -av --delete dist/assets/ ../backend/public/assets/ && touch ../backend/public/assets/.keep",
"preview": "vite preview",
"graphql-codegen": "graphql-codegen",
"lint": "pnpm run lint:code && pnpm run lint:style && pnpm run lint:check",
"lint": "bun run lint:code && bun run lint:style && bun run lint:check",
"lint:code": "biome lint ./",
"lint:style": "biome format ./",
"lint:check": "biome check ./",
"fix": "pnpm run fix:code && pnpm run fix:style && pnpm run fix:check",
"fix": "bun run fix:code && bun run fix:style && bun run fix:check",
"fix:code": "biome lint --write ./",
"fix:style": "biome format --write ./",
"fix:check": "biome check --write ./"
Expand Down
Loading

0 comments on commit 49c235e

Please sign in to comment.