Skip to content

Commit 707686d

Browse files
authored
Add ror binstubs (shakacode#554)
* Add react_on_rails binstubs for running the app * Upgrade Shakapacker to 7.0.3
1 parent 4e8e3a7 commit 707686d

File tree

6 files changed

+69
-9
lines changed

6 files changed

+69
-9
lines changed

Gemfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ruby "3.1.2"
77

88
gem "cpl", "~> 0.3.3"
99
gem "react_on_rails", "13.2.0"
10-
gem "shakapacker", "7.0.2"
10+
gem "shakapacker", "7.0.3"
1111

1212
# Bundle edge Rails instead: gem "rails", github: "rails/rails"
1313
gem "listen"

Gemfile.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ GEM
212212
nio4r (~> 2.0)
213213
racc (1.7.1)
214214
rack (2.2.8)
215-
rack-proxy (0.7.6)
215+
rack-proxy (0.7.7)
216216
rack
217217
rack-test (2.1.0)
218218
rack (>= 1.3)
@@ -336,7 +336,7 @@ GEM
336336
websocket (~> 1.0)
337337
semantic_range (3.0.0)
338338
sexp_processor (4.17.0)
339-
shakapacker (7.0.2)
339+
shakapacker (7.0.3)
340340
activesupport (>= 5.2)
341341
rack-proxy (>= 0.6.1)
342342
railties (>= 5.2)
@@ -438,7 +438,7 @@ DEPENDENCIES
438438
scss_lint
439439
sdoc
440440
selenium-webdriver (~> 4)
441-
shakapacker (= 7.0.2)
441+
shakapacker (= 7.0.3)
442442
spring
443443
spring-commands-rspec
444444
stimulus-rails (~> 1.2)

bin/dev

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
4+
def installed?(process)
5+
IO.popen "#{process} -v"
6+
rescue Errno::ENOENT
7+
false
8+
end
9+
10+
def run(process)
11+
system "#{process} start -f Procfile.dev"
12+
rescue Errno::ENOENT
13+
warn <<~MSG
14+
ERROR:
15+
Please ensure `Procfile.dev` exists in your project!
16+
MSG
17+
exit!
18+
end
19+
20+
if installed? "overmind"
21+
run "overmind"
22+
elsif installed? "foreman"
23+
run "foreman"
24+
else
25+
warn <<~MSG
26+
NOTICE:
27+
For this script to run, you need either 'overmind' or 'foreman' installed on your machine. Please try this script after installing one of them.
28+
MSG
29+
exit!
30+
end

bin/dev-static

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
4+
def installed?(process)
5+
IO.popen "#{process} -v"
6+
rescue Errno::ENOENT
7+
false
8+
end
9+
10+
def run(process)
11+
system "#{process} start -f Procfile.dev-static"
12+
rescue Errno::ENOENT
13+
warn <<~MSG
14+
ERROR:
15+
Please ensure `Procfile.dev-static` exists in your project!
16+
MSG
17+
exit!
18+
end
19+
20+
if installed? "overmind"
21+
run "overmind"
22+
elsif installed? "foreman"
23+
run "foreman"
24+
else
25+
warn <<~MSG
26+
NOTICE:
27+
For this script to run, you need either 'overmind' or 'foreman' installed on your machine. Please try this script after installing one of them.
28+
MSG
29+
exit!
30+
end

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"sass-loader": "^13.3.2",
8989
"sass-resources-loader": "^2.2.5",
9090
"stimulus": "^3.0.1",
91-
"shakapacker": "7.0.2",
91+
"shakapacker": "7.0.3",
9292
"style-loader": "^3.3.1",
9393
"terser-webpack-plugin": "5",
9494
"turbolinks": "^5.2.0",

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -8541,10 +8541,10 @@ [email protected]:
85418541
resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424"
85428542
integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==
85438543

8544-
8545-
version "7.0.2"
8546-
resolved "https://registry.yarnpkg.com/shakapacker/-/shakapacker-7.0.2.tgz#cd7cb5075fdbf4d06e60d894f9076c8e56643a98"
8547-
integrity sha512-TF2GFb0E28fvQpn2L6RdvAHJRZmFMTvpJg93102tCbFywHq3tmTqwD/ijvlD+eMuZ8d1i3AMTnhO+45ayN3dYg==
8544+
8545+
version "7.0.3"
8546+
resolved "https://registry.yarnpkg.com/shakapacker/-/shakapacker-7.0.3.tgz#e67fca4e74c3ef380e1acf53a1d51ab4784ca01c"
8547+
integrity sha512-2kwNP8kadkmGOqb7Bp/iNzF3bV31zni8b35Uzst2DZHjnFcnDbW96MERXHc7lS3p3AmKJVbUBmHAFCPsLT9tcw==
85488548
dependencies:
85498549
glob "^7.2.0"
85508550
js-yaml "^4.1.0"

0 commit comments

Comments
 (0)