Skip to content

Commit

Permalink
Merge pull request #64 from tktcorporation/yarn-to-bun
Browse files Browse the repository at this point in the history
yarn to bun
  • Loading branch information
tktcorporation authored Feb 4, 2024
2 parents 83295f4 + 8e8c775 commit 12a457f
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 7,537 deletions.
12 changes: 6 additions & 6 deletions .github/wip-screenshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: 'package.json'
- name: setup bun
uses: oven-sh/setup-bun@v1

- run: npm i -g @antfu/ni

- name: Install dependencies
run: yarn install --frozen-lockfile
run: nci

- name: Start web app (example using Vite)
run: yarn dev &
run: nr dev &

- name: Run Puppeteer script to capture screenshot
id: capture-screenshot
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: setup node
uses: actions/setup-node@v3
with:
node-version-file: 'package.json'
- name: setup bun
uses: oven-sh/setup-bun@v1

- run: npm i -g @antfu/ni

- name: install dependencies
run: yarn install --frozen-lockfile
run: nci

- name: lint
run: yarn lint && yarn type-check
run: nr lint && nr type-check

- name: test
run: yarn test
run: nr test
12 changes: 6 additions & 6 deletions .github/workflows/tag-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ jobs:
with:
fetch-depth: 0

- name: setup node
uses: actions/setup-node@v3
with:
node-version-file: 'package.json'
- name: setup bun
uses: oven-sh/setup-bun@v1

- run: npm i -g @antfu/ni

- name: install dependencies
run: yarn install --frozen-lockfile
run: nci

- name: lint
run: yarn lint && yarn type-check
run: nr lint && nr type-check

create_tag:
runs-on: ubuntu-latest
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/upload-build-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ jobs:
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: 'package.json'
- name: setup bun
uses: oven-sh/setup-bun@v1

- run: npm i -g @antfu/ni

- name: Install dependencies
run: yarn install --frozen-lockfile
run: nci

- name: Build Electron app
run: yarn dist
run: nr dist

- name: Upload artifacts
uses: actions/upload-artifact@v3
Expand Down
Binary file removed Screenshot.jpg
Binary file not shown.
Binary file added bun.lockb
Binary file not shown.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"productName": "add-metadata-to-vrc-photo",
"scripts": {
"preinstall": "npx only-allow yarn",
"preinstall": "npx only-allow bun",
"postinstall": "simple-git-hooks",
"setup:debug": "bash debug/genDevFiles.sh",
"dev": "eval `dbus-launch --sh-syntax` && concurrently \"nr dev:vite\" \" nr dev:electron\"",
Expand All @@ -41,8 +41,9 @@
},
"engines": {
"node": "20",
"yarn": "1"
"bun": "1"
},
"trustedDependencies": ["simple-git-hooks"],
"dependencies": {
"@heroicons/react": "^2.0.18",
"@radix-ui/react-alert-dialog": "^1.0.5",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"types": ["vite/client", "node", "electron", "jest"],
"allowJs": false,
"skipLibCheck": false,
"skipLibCheck": true,
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
"strict": true,
Expand Down
Loading

0 comments on commit 12a457f

Please sign in to comment.