27 lines
927 B
Ruby
27 lines
927 B
Ruby
require "language/node"
|
|
|
|
class ReactNativeCli < Formula
|
|
desc "The React Native CLI tools"
|
|
homepage "https://facebook.github.io/react-native/"
|
|
url "https://registry.npmjs.org/react-native-cli/-/react-native-cli-2.0.1.tgz"
|
|
sha256 "f1039232c86c29fa0b0c85ad2bfe0ff455c3d3cd9af9d9ddb8e9c560231a8322"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "8e6e253c7801cc276f89f2988245866080c1409602c5903dbb2984b1a645746b" => :mojave
|
|
sha256 "387e6f8c0e9f20b4ae2007185d394ff73cc3392085a6a05045b669512780c55e" => :high_sierra
|
|
sha256 "81ef6bdc246a412022d070b5020b567864b177a53fcfeb15c44f7be38e6130ab" => :sierra
|
|
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
|
|
output = shell_output("#{bin}/react-native init test")
|
|
assert_match "Run instructions for Android", output
|
|
end
|
|
end
|