lib/ember_cli/shell.rb in ember-cli-rails-0.8.6 vs lib/ember_cli/shell.rb in ember-cli-rails-0.8.7
- old
+ new
@@ -39,18 +39,16 @@
if invalid_ember_dependencies?
clean_ember_dependencies!
end
- if paths.yarn.present? && Pathname.new(paths.yarn).executable?
+ if paths.yarn
run! "#{paths.yarn} install"
else
run! "#{paths.npm} prune && #{paths.npm} install"
end
- if paths.bower_json.exist?
- run! "#{paths.bower} prune && #{paths.bower} install"
- end
+ run! "[ -f bower.json ] && #{paths.bower} prune && #{paths.bower} install"
end
def test
run! ember.test
end