2017-05-20 03:27:43 +00:00
|
|
|
require "language/node"
|
|
|
|
|
|
|
|
class AngularCli < Formula
|
|
|
|
desc "CLI tool for Angular"
|
|
|
|
homepage "https://cli.angular.io/"
|
2017-06-04 07:41:34 +00:00
|
|
|
url "https://registry.npmjs.org/@angular/cli/-/cli-1.1.0.tgz"
|
|
|
|
sha256 "5df88cf1f3452c68caeb85c7f3283b366fab059f1d522dd3414cd498a92a3c97"
|
2017-05-20 03:27:43 +00:00
|
|
|
|
2017-05-20 04:34:09 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2017-05-27 05:49:51 +00:00
|
|
|
sha256 "127e5ef5620a2dcee789700c2ab776b7bd4cf97b2627eee685e24ef8aa02cf8b" => :sierra
|
|
|
|
sha256 "915d1a739c3e7bc3cfc1bd22e11c32798bb94126cee3d483a8fd9055a102118b" => :el_capitan
|
|
|
|
sha256 "9faa57bc40d1d3b82003d2754541ca8dcc3c3fd10437f5d98c3dc80007692413" => :yosemite
|
2017-05-20 04:34:09 +00:00
|
|
|
end
|
|
|
|
|
2017-05-27 12:05:45 +00:00
|
|
|
devel do
|
2017-06-04 07:41:34 +00:00
|
|
|
url "https://registry.npmjs.org/@angular/cli/-/cli-1.2.0-beta.0.tgz"
|
|
|
|
version "1.2.0-beta.0"
|
|
|
|
sha256 "392898113077fdc5bf2dbd3591b54bc371dee870a1d343fee2d6ccddf2677f6d"
|
2017-05-27 12:05:45 +00:00
|
|
|
end
|
|
|
|
|
2017-05-20 03:27:43 +00:00
|
|
|
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 File.exist?("angular-homebrew-test/package.json"), "Project was not created"
|
|
|
|
end
|
|
|
|
end
|