Skip to content

Commit

Permalink
build: Replace npm with Bun
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanViknar committed Oct 24, 2024
1 parent 866dfa7 commit 95e1c79
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3,431 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ jobs:
biome-lint-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: npm install
- name: Setup Biome
uses: biomejs/setup-biome@v2
run: bun install
- uses: biomejs/setup-biome@v2
- name: Run Biome
run: biome ci .
4 changes: 3 additions & 1 deletion .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ jobs:
uses: actions/checkout@v4

- name: Install dependencies
run: pacman -Syu --noconfirm blueprint-compiler npm typescript gobject-introspection libadwaita zip
run: pacman -Syu --noconfirm blueprint-compiler typescript gobject-introspection libadwaita zip

- uses: oven-sh/setup-bun@v2

- name: Build & Package Noiseclapper
run: make pack
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ all: $(JS_FILES)

# Dependencies
node_modules: package.json
npm install
bun install
touch $@

# Check TypeScript files with biome
check:
npx biome ci .
bunx biome ci .

# Compile TypeScript files
$(DIST_DIR)/%.js: $(SOURCE_FILES) node_modules
Expand Down
Binary file added bun.lockb
Binary file not shown.
Loading

0 comments on commit 95e1c79

Please sign in to comment.