homebrew-core/Formula/yarn.rb

29 lines
907 B
Ruby
Raw Normal View History

require "language/node"
class Yarn < Formula
desc "Javascript package manager"
homepage "https://yarnpkg.com/"
url "https://yarnpkg.com/downloads/0.17.0/yarn-v0.17.0.tar.gz"
sha256 "bb87332c23baec5680e13c9afa858d851276eca27e33e215a84338fb4acb0026"
head "https://github.com/yarnpkg/yarn.git"
2016-10-13 02:28:18 +00:00
bottle do
cellar :any_skip_relocation
2016-11-14 21:30:59 +00:00
sha256 "7f6f2621524c87e309fbea9ad7d8f49086dd481358f76f3f57f682ea0f57c2ab" => :sierra
sha256 "aafe13b85ed27f46f884f38675927f29c4b5ed4fd78e92a3d2c803dcdb743c54" => :el_capitan
sha256 "bd3f2ece7e38bd73d6090cb478893658515107ca8cee334ba895b030cfaf88f8" => :yosemite
2016-10-13 02:28:18 +00:00
end
depends_on "node"
def install
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
bin.install_symlink Dir["#{libexec}/bin/*"]
end
test do
(testpath/"package.json").write('{"name": "test"}')
system bin/"yarn", "add", "jquery"
end
end