Skip to content

Commit

Permalink
chore(build): use bun instead of node
Browse files Browse the repository at this point in the history
  • Loading branch information
tchak committed Apr 17, 2024
1 parent 6165df2 commit c480d40
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 15 deletions.
6 changes: 0 additions & 6 deletions .github/actions/ci-setup-rails/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,11 @@ runs:
ruby --yjit -v
shell: bash


- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
- name: Setup Bun
uses: oven-sh/setup-bun@v1

- name: Install Node modules
run: |
node --version
bun --version
bun install
shell: bash
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1

- name: Install Node modules
run: |
node --version
bun --version
bun install
shell: bash
Expand Down
1 change: 0 additions & 1 deletion .node-version

This file was deleted.

2 changes: 2 additions & 0 deletions bin/bun_vite
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
bun run vite "$@"
1 change: 0 additions & 1 deletion bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ FileUtils.chdir APP_ROOT do
system("bundle check") || system!("bundle install")

# Install JavaScript dependencies
system! 'node --version'
system! 'bun --version'
system! 'bun install'

Expand Down
1 change: 0 additions & 1 deletion bin/update
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ FileUtils.chdir APP_ROOT do
puts '== Installing dependencies =='
system! 'gem install bundler --conservative'
system('bundle check') || system!('bundle install')
system! 'node --version'
system! 'bun --version'
system! 'bun install'

Expand Down
1 change: 1 addition & 0 deletions config/vite.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"all": {
"vite_bin_path": "./bin/bun_vite",
"sourceCodeDir": "app/javascript",
"watchAdditionalPaths": []
},
Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,6 @@
"test": "vitest",
"coverage": "vitest run --coverage"
},
"engines": {
"node": ">= 18.17.0"
},
"resolutions": {
"string-width": "4.2.2",
"wrap-ansi": "7.0.0"
Expand Down

0 comments on commit c480d40

Please sign in to comment.