Commit 6539cd8

mo khan <mo@mokhan.ca>
2021-02-07 19:18:32
feat: install yarn packages
1 parent 59cdccf
Changed files (1)
lib
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