Merge pull request #10269 from tchak/run-vite-with-bun
chore(build): use bun instead of node
This commit is contained in:
commit
f111e88e45
8 changed files with 3 additions and 15 deletions
6
.github/actions/ci-setup-rails/action.yml
vendored
6
.github/actions/ci-setup-rails/action.yml
vendored
|
@ -14,17 +14,11 @@ runs:
|
||||||
ruby --yjit -v
|
ruby --yjit -v
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
|
||||||
- name: Setup Node
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version-file: '.node-version'
|
|
||||||
- name: Setup Bun
|
- name: Setup Bun
|
||||||
uses: oven-sh/setup-bun@v1
|
uses: oven-sh/setup-bun@v1
|
||||||
|
|
||||||
- name: Install Node modules
|
- name: Install Node modules
|
||||||
run: |
|
run: |
|
||||||
node --version
|
|
||||||
bun --version
|
bun --version
|
||||||
bun install
|
bun install
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -38,14 +38,11 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Node
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
- name: Setup Bun
|
- name: Setup Bun
|
||||||
uses: oven-sh/setup-bun@v1
|
uses: oven-sh/setup-bun@v1
|
||||||
|
|
||||||
- name: Install Node modules
|
- name: Install Node modules
|
||||||
run: |
|
run: |
|
||||||
node --version
|
|
||||||
bun --version
|
bun --version
|
||||||
bun install
|
bun install
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
18.17.0
|
|
2
bin/bun_vite
Executable file
2
bin/bun_vite
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/bash
|
||||||
|
bun run vite "$@"
|
|
@ -18,7 +18,6 @@ FileUtils.chdir APP_ROOT do
|
||||||
system("bundle check") || system!("bundle install")
|
system("bundle check") || system!("bundle install")
|
||||||
|
|
||||||
# Install JavaScript dependencies
|
# Install JavaScript dependencies
|
||||||
system! 'node --version'
|
|
||||||
system! 'bun --version'
|
system! 'bun --version'
|
||||||
system! 'bun install'
|
system! 'bun install'
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,6 @@ FileUtils.chdir APP_ROOT do
|
||||||
puts '== Installing dependencies =='
|
puts '== Installing dependencies =='
|
||||||
system! 'gem install bundler --conservative'
|
system! 'gem install bundler --conservative'
|
||||||
system('bundle check') || system!('bundle install')
|
system('bundle check') || system!('bundle install')
|
||||||
system! 'node --version'
|
|
||||||
system! 'bun --version'
|
system! 'bun --version'
|
||||||
system! 'bun install'
|
system! 'bun install'
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"all": {
|
"all": {
|
||||||
|
"vite_bin_path": "./bin/bun_vite",
|
||||||
"sourceCodeDir": "app/javascript",
|
"sourceCodeDir": "app/javascript",
|
||||||
"watchAdditionalPaths": []
|
"watchAdditionalPaths": []
|
||||||
},
|
},
|
||||||
|
|
|
@ -121,9 +121,6 @@
|
||||||
"test": "vitest",
|
"test": "vitest",
|
||||||
"coverage": "vitest run --coverage"
|
"coverage": "vitest run --coverage"
|
||||||
},
|
},
|
||||||
"engines": {
|
|
||||||
"node": ">= 18.17.0"
|
|
||||||
},
|
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"string-width": "4.2.2",
|
"string-width": "4.2.2",
|
||||||
"wrap-ansi": "7.0.0"
|
"wrap-ansi": "7.0.0"
|
||||||
|
|
Loading…
Reference in a new issue