27 lines
913 B
Ruby
27 lines
913 B
Ruby
require "language/node"
|
|
|
|
class AngularCli < Formula
|
|
desc "CLI tool for Angular"
|
|
homepage "https://cli.angular.io/"
|
|
url "https://registry.npmjs.org/@angular/cli/-/cli-1.6.3.tgz"
|
|
sha256 "bd61eeec28eb39a5ab2ac30162fae0e309bc48c220f032c4a81e5a9e6c68d7d2"
|
|
|
|
bottle do
|
|
sha256 "3ad531c511f90e6cfac72c0fe323dea19b1eb98b0cdbc45b8e8875da0d8d74ad" => :high_sierra
|
|
sha256 "a655c34817c7a0672295c7ec77fc9241fb3374f0eca322f8fe927f4d1dec70ac" => :sierra
|
|
sha256 "5939626b70960ebde8fd98ff8a7979af4ca9014576a44c21b207943e70ab8929" => :el_capitan
|
|
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
|
|
system bin/"ng", "new", "--skip-install", "angular-homebrew-test"
|
|
assert_predicate testpath/"angular-homebrew-test/package.json", :exist?, "Project was not created"
|
|
end
|
|
end
|