-
Notifications
You must be signed in to change notification settings - Fork 25
/
yarn.rb
32 lines (26 loc) · 1013 Bytes
/
yarn.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
require "language/node"
class Yarn < Formula
desc "JavaScript package manager"
homepage "https://yarnpkg.com/"
url "https://yarnpkg.com/downloads/0.27.5/yarn-v0.27.5.tar.gz"
sha256 "f0f3510246ee74eb660ea06930dcded7b684eac2593aa979a7add84b72517968"
head "https://github.com/yarnpkg/yarn.git"
bottle do
root_url "https://burkelibbey.s3.amazonaws.com"
sha256 cellar: :any_skip_relocation, sierra: "b43c66a5cc378712dc9871bcc31abb78ad1f9790a9b1226109bc1c2f98d1e626"
end
bottle do
rebuild 1
root_url "https://github.com/Shopify/homebrew-shopify/releases/download/bag-of-holding"
sha256 cellar: :any_skip_relocation, catalina: "6061af0e52d8bdf82af1dcc65c17d879130eab0100275b89f3c416105a484a44"
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