2017-05-29 21:18:36 +00:00
|
|
|
require "language/node"
|
|
|
|
|
|
|
|
class Jhipster < Formula
|
|
|
|
desc "Generate, develop and deploy Spring Boot + Angular applications"
|
|
|
|
homepage "https://jhipster.github.io/"
|
2017-07-19 10:04:47 +00:00
|
|
|
url "https://registry.npmjs.org/generator-jhipster/-/generator-jhipster-4.6.2.tgz"
|
|
|
|
sha256 "e8d75e5479b3bbb7c3ae7b91464b4ffc5bbd8bf804b104a3a5df72f12ae92c2e"
|
2017-05-29 21:18:36 +00:00
|
|
|
|
2017-05-30 09:56:35 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2017-07-19 10:34:11 +00:00
|
|
|
sha256 "f053c31a00ead079ce276d865a43f2f6cf23e9d54ab74cf8f735f6e7e4b38ca5" => :sierra
|
|
|
|
sha256 "6d7cd44f83a7ba9d1f1ebe7c8e4b574346336ba918c5588149b682a4bd41de2c" => :el_capitan
|
|
|
|
sha256 "bd3eca78951025f78eec7ea08fbe717293d0579990832959624ac2dc7017ada6" => :yosemite
|
2017-05-30 09:56:35 +00:00
|
|
|
end
|
|
|
|
|
2017-05-29 21:18:36 +00:00
|
|
|
depends_on "node"
|
2017-06-01 12:51:26 +00:00
|
|
|
depends_on "yarn"
|
|
|
|
depends_on :java => "1.8+"
|
2017-05-29 21:18:36 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
|
|
|
|
bin.install_symlink Dir["#{libexec}/bin/*"]
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2017-07-10 12:56:49 +00:00
|
|
|
assert_match "Execution complete", shell_output("#{bin}/jhipster info")
|
2017-05-29 21:18:36 +00:00
|
|
|
end
|
|
|
|
end
|