Skip to content

Commit

Permalink
build: Migrate to Bun
Browse files Browse the repository at this point in the history
  • Loading branch information
rkunev committed Mar 1, 2024
1 parent ece860d commit 2a4f62d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 20 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,19 @@ jobs:
name: Code quality
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- uses: c-hive/gha-yarn-cache@v1
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: yarn
run: bun install
- name: Build
run: yarn build
run: bun run build
- name: Run linting
run: yarn lint
run: bun run lint
- name: Check Bundle Size
run: yarn size-limit
run: bun run size-limit
- name: Run tests
run: yarn run test:ci
run: bun run test:ci
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
yarn lint-staged
bun run lint-staged
Binary file added bun.lockb
Binary file not shown.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test": "vitest",
"test:ci": "vitest run --coverage --no-file-parallelism --bail 1",
"lint": "eslint --ext .js,vue src",
"prepublishOnly": "yarn build",
"prepublishOnly": "bun run build",
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"docs:preview": "vitepress preview docs",
Expand Down Expand Up @@ -67,8 +67,8 @@
"license": "MIT",
"lint-staged": {
"*.{js,vue}": [
"yarn eslint",
"yarn prettier --write"
"bun run eslint",
"bun run prettier --write"
]
},
"size-limit": [
Expand Down
2 changes: 1 addition & 1 deletion scripts/deploy-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# abort on errors
set -e

yarn docs:build
bun run docs:build
cd docs/.vuepress/dist

git init
Expand Down

0 comments on commit 2a4f62d

Please sign in to comment.