Skip to content

Commit

Permalink
Upgrade vite to verson 5 and fix bin/setup
Browse files Browse the repository at this point in the history
  • Loading branch information
joekrump committed Mar 16, 2024
1 parent 4a45fbb commit 8c30726
Show file tree
Hide file tree
Showing 6 changed files with 4,771 additions and 2,596 deletions.
3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-3.6.4.cjs
4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]

gem 'name_of_person', '~> 1.1', '>= 1.1.1'
gem 'sidekiq', '~> 7.1'
gem 'vite_rails', '~> 3.0.10'

gem 'open3'
gem 'vite_rails', '~> 3.0.17'

gem 'nokogiri', '>= 1.13.6'
34 changes: 18 additions & 16 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ GEM
regexp_parser (>= 1.5, < 3.0)
xpath (~> 3.2)
chunky_png (1.4.0)
concurrent-ruby (1.2.2)
concurrent-ruby (1.2.3)
connection_pool (2.4.1)
crass (1.0.6)
date (3.3.3)
Expand All @@ -92,15 +92,15 @@ GEM
ffi (1.15.5)
globalid (1.1.0)
activesupport (>= 5.0)
i18n (1.14.1)
i18n (1.14.4)
concurrent-ruby (~> 1.0)
jbuilder (2.11.5)
actionview (>= 5.0.0)
activesupport (>= 5.0.0)
listen (3.8.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
loofah (2.21.3)
loofah (2.22.0)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
mail (2.8.1)
Expand All @@ -115,8 +115,8 @@ GEM
mime-types-data (~> 3.2015)
mime-types-data (3.2023.0218.1)
mini_mime (1.1.2)
mini_portile2 (2.8.2)
minitest (5.18.1)
mini_portile2 (2.8.5)
minitest (5.22.3)
msgpack (1.7.0)
name_of_person (1.1.1)
activesupport (>= 5.2.0)
Expand All @@ -137,15 +137,16 @@ GEM
racc (~> 1.4)
nokogiri (1.16.3-x86_64-darwin)
racc (~> 1.4)
open3 (0.2.1)
playwright-ruby-client (1.35.0)
concurrent-ruby (>= 1.1.6)
mime-types (>= 3.0)
public_suffix (5.0.1)
puma (4.3.12)
nio4r (~> 2.0)
racc (1.7.1)
rack (2.2.8)
rack-proxy (0.7.6)
racc (1.7.3)
rack (2.2.8.1)
rack-proxy (0.7.7)
rack
rack-test (2.1.0)
rack (>= 1.3)
Expand All @@ -163,7 +164,7 @@ GEM
activesupport (= 7.0.6)
bundler (>= 1.15.0)
railties (= 7.0.6)
rails-dom-testing (2.1.1)
rails-dom-testing (2.2.0)
activesupport (>= 5.0.0)
minitest
nokogiri (>= 1.6)
Expand All @@ -177,7 +178,7 @@ GEM
rake (>= 12.2)
thor (~> 1.0)
zeitwerk (~> 2.5)
rake (13.0.6)
rake (13.1.0)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
Expand Down Expand Up @@ -215,18 +216,18 @@ GEM
mini_portile2 (~> 2.8.0)
sqlite3 (1.7.3-arm64-darwin)
sqlite3 (1.7.3-x86_64-darwin)
thor (1.2.2)
thor (1.3.1)
timeout (0.4.0)
turbo-rails (1.4.0)
actionpack (>= 6.0.0)
activejob (>= 6.0.0)
railties (>= 6.0.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
vite_rails (3.0.14)
vite_rails (3.0.17)
railties (>= 5.1, < 8)
vite_ruby (~> 3.0, >= 3.2.2)
vite_ruby (3.3.1)
vite_ruby (3.5.0)
dry-cli (>= 0.7, < 2)
rack-proxy (~> 0.6, >= 0.6.1)
zeitwerk (~> 2.2)
Expand All @@ -235,7 +236,7 @@ GEM
websocket-extensions (0.1.5)
xpath (3.2.0)
nokogiri (~> 1.8)
zeitwerk (2.6.8)
zeitwerk (2.6.13)

PLATFORMS
arm64-darwin
Expand All @@ -250,6 +251,7 @@ DEPENDENCIES
jbuilder (~> 2.7)
name_of_person (~> 1.1, >= 1.1.1)
nokogiri (>= 1.13.6)
open3
playwright-ruby-client (~> 1.35.0)
puma (~> 4.3)
rails (~> 7.0, >= 7.0.6)
Expand All @@ -261,10 +263,10 @@ DEPENDENCIES
sqlite3 (~> 1.4)
turbo-rails
tzinfo-data
vite_rails (~> 3.0.10)
vite_rails (~> 3.0.17)

RUBY VERSION
ruby 3.3.0p0

BUNDLED WITH
2.4.12
2.5.3
2 changes: 1 addition & 1 deletion bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ FileUtils.chdir APP_ROOT do
system('bundle check') || system!('bundle install')

puts "\n== Install JS depedencies =="
system! 'yarn install --check-files'
system! 'yarn install'

# puts "\n== Copying sample files =="
# unless File.exist?("config/database.yml")
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "rails-vue",
"name": "rails-turbo-vue",
"license": "MIT",
"dependencies": {
"@hotwired/turbo-rails": "^7.3.0",
Expand All @@ -24,9 +24,9 @@
"rollup-plugin-visualizer": "^5.9.2",
"tailwindcss": "^3.3.2",
"typescript": "^5.0.4",
"vite": "^4.3.9",
"vite": "^5.0.0",
"vite-plugin-full-reload": "^1.0.5",
"vite-plugin-ruby": "^3.2.0",
"vite-plugin-ruby": "^5.0.0",
"vitest": "^0.32.4"
},
"scripts": {
Expand All @@ -38,5 +38,6 @@
"build-only": "vite build",
"type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
}
},
"packageManager": "yarn@3.6.4"
}
Loading

0 comments on commit 8c30726

Please sign in to comment.