Skip to content

Commit

Permalink
feat: migrate from npm to bun (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
diogogmatos authored Oct 23, 2024
1 parent 8b0f4fd commit c87831e
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 11,637 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,15 @@ jobs:
with:
node-version: 20.9.0

- name: Setup up Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.1.32

- name: Format Code with Prettier
run: |
npm ci
npm run format
bun i
bun format
- name: Get Most Active Contributors
id: get_contributors
Expand Down
23 changes: 8 additions & 15 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,24 @@ on:
jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v3

- name: Setup node
- name: Setup up Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
node-version: 20.9.0

- uses: actions/cache@v3
- name: Setup up Bun
uses: oven-sh/setup-bun@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
bun-version: 1.1.32

- name: Install dependencies
run: npm ci
run: bun i

- name: Format the code
run: npm run format
run: bun format

- name: Lint the code
run: npm run test:lint
run: bun run test:lint
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
nodejs 20.9.0
bun 1.1.32
Binary file added bun.lockb
Binary file not shown.
9 changes: 7 additions & 2 deletions components/Notifications/Notifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const Banner = ({
<div className="flex items-center justify-between gap-x-6 bg-cesium-900 px-6 py-2.5 pb-6 sm:rounded-xl sm:py-3 sm:pl-4 sm:pr-3.5 sm:shadow-md">
<div className="font-display text-sm leading-6 text-white">
<div className="select-none">
<strong className="font-semibold">
<strong className="font-bold">
<i className="bi bi-info-circle-fill"></i> {type}
</strong>
<svg
Expand All @@ -74,11 +74,16 @@ const Banner = ({
overrides: {
a: {
props: {
className: "hover:underline",
className: "underline",
target: "_blank",
rel: "noopener noreferrer",
},
},
strong: {
props: {
className: "font-semibold",
},
},
},
}}
>
Expand Down
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build]
publish = ".next"
command = "npm run build"
command = "bun run build"

[build.environment]
TZ = "Europe/Lisbon"
Expand Down
Loading

0 comments on commit c87831e

Please sign in to comment.