]> cat aescling's git repositories - mastodon.git/commitdiff
Install Yarn dependencies during setup (#1169)
authorJoël Quenneville <joel.quen@gmail.com>
Wed, 19 Apr 2017 12:29:23 +0000 (08:29 -0400)
committerEugen <eugen@zeonfederated.com>
Wed, 19 Apr 2017 12:29:23 +0000 (14:29 +0200)
Previously the `bin/setup` script only installed the Ruby dependencies
via Bundler. This is not sufficient to get the test suite to pass. We
also need the JavaScript dependencies.

This commit installs the JavaScript dependencies as part of the
`bin/setup` script via Yarn.

This allows for a successful

    bin/setup && bundle exec rake

on a fresh clone of the repo.

bin/setup

index e620b4dadb27feebc2043e55bc0d23c104ccac37..72b62a028353e4ce616d4a24e50ab0e2da9949c9 100755 (executable)
--- a/bin/setup
+++ b/bin/setup
@@ -17,6 +17,7 @@ chdir APP_ROOT do
   puts '== Installing dependencies =='
   system! 'gem install bundler --conservative'
   system('bundle check') || system!('bundle install')
+  system!('yarn install')
 
   # puts "\n== Copying sample files =="
   # unless File.exist?('config/database.yml')