homebrew-core/Formula/yarn.rb
Christian Rackerseder 0fffad86bb Removed devel
Closes #8008.

Signed-off-by: Tomasz Pajor <tomek@polishgeeks.com>
2016-12-19 18:55:50 +01:00

29 lines
921 B
Ruby

require "language/node"
class Yarn < Formula
desc "Javascript package manager"
homepage "https://yarnpkg.com/"
url "https://yarnpkg.com/downloads/0.18.1/yarn-v0.18.1.tar.gz"
sha256 "7d16699c8690ef145e1732004266fb82a32b0c06210a43c624986d100537b5a8"
head "https://github.com/yarnpkg/yarn.git"
bottle do
cellar :any_skip_relocation
rebuild 1
sha256 "e6fbd90d01383a5c6b99ca85eb8940954e82e1416bfc31ed990a4a0e7f962b63" => :sierra
sha256 "dac363aa991c0e512ebb73e9c6533200b895e1e33e73fa37df67ecab24ce40b7" => :el_capitan
sha256 "6d756e5ab52733a59eea767f5ba410d46a166ac9dc656050426ba5ea5b49261e" => :yosemite
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