We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b4d2a9 commit 7bd2e1fCopy full SHA for 7bd2e1f
lib/tasks/jsbundling/build.rake
@@ -1,7 +1,7 @@
1
namespace :javascript do
2
desc "Build your JavaScript bundle"
3
task :build do
4
- unless system "yarn install && yarn build"
+ unless system "yarn build"
5
raise "jsbundling-rails: Command build failed, ensure yarn is installed and `yarn build` runs without errors"
6
end
7
@@ -14,3 +14,7 @@ if Rake::Task.task_defined?("test:prepare")
14
elsif Rake::Task.task_defined?("db:test:prepare")
15
Rake::Task["db:test:prepare"].enhance(["javascript:build"])
16
17
+
18
+if Rake::Task.task_defined?("yarn:install")
19
+ Rake::Task["javascript:build"].enhance(["yarn:install"])
20
+end
0 commit comments