Commit 6539cd8
Changed files (1)
lib
jive
lib/jive/project.rb
@@ -12,6 +12,7 @@ module Jive
tasks = []
tasks << [:asdf, "install"]
tasks << [:bundle, "install"] if bundler?
+ tasks << [:yarn, "install"] if yarn?
shell.run_safely do
shell.run_each(tasks)
@@ -24,5 +25,9 @@ module Jive
path.join("Gemfile").exist? ||
path.glob("*.gemspec").any?
end
+
+ def yarn?
+ path.join("yarn.lock").exist?
+ end
end
end