32 lines
1.5 KiB
Ruby
32 lines
1.5 KiB
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-15.0.5.tgz"
|
|
sha256 "ed25796c3065081f01dfb7806c754bdf574399bee627857d4739190be666fa8d"
|
|
license "MIT"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_ventura: "744c3fb1db77a5f95cee1c325b370eccd7185147cf8089796925835f342f0a2c"
|
|
sha256 cellar: :any_skip_relocation, arm64_monterey: "744c3fb1db77a5f95cee1c325b370eccd7185147cf8089796925835f342f0a2c"
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "744c3fb1db77a5f95cee1c325b370eccd7185147cf8089796925835f342f0a2c"
|
|
sha256 cellar: :any_skip_relocation, ventura: "74d6de46cbecab42bd7c04213a2cf590c2159994727b74a27ed6fa32d089f0d8"
|
|
sha256 cellar: :any_skip_relocation, monterey: "74d6de46cbecab42bd7c04213a2cf590c2159994727b74a27ed6fa32d089f0d8"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "74d6de46cbecab42bd7c04213a2cf590c2159994727b74a27ed6fa32d089f0d8"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "744c3fb1db77a5f95cee1c325b370eccd7185147cf8089796925835f342f0a2c"
|
|
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", "angular-homebrew-test", "--skip-install"
|
|
assert_predicate testpath/"angular-homebrew-test/package.json", :exist?, "Project was not created"
|
|
end
|
|
end
|