homebrew-core/Formula/yarn.rb
Daniel15's Build Bot 562d1f1ad9 yarn 0.24.4 (#13519)
2017-05-12 10:41:27 -07:00

23 lines
712 B
Ruby

class Yarn < Formula
desc "JavaScript package manager"
homepage "https://yarnpkg.com/"
url "https://yarnpkg.com/downloads/0.24.4/yarn-v0.24.4.tar.gz"
sha256 "90ab424615f7f24a2e2895f33b90bdd4be0e93ebd56083adff4fafa718a75e68"
head "https://github.com/yarnpkg/yarn.git"
bottle :unneeded
depends_on "node"
def install
libexec.install Dir["*"]
bin.install_symlink "#{libexec}/bin/yarn.js" => "yarn"
bin.install_symlink "#{libexec}/bin/yarn.js" => "yarnpkg"
inreplace "#{libexec}/package.json", '"installationMethod": "tar"', '"installationMethod": "homebrew"'
end
test do
(testpath/"package.json").write('{"name": "test"}')
system bin/"yarn", "add", "jquery"
end
end