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-06-16 15:37:05 +00:00
|
|
|
url "https://registry.npmjs.org/generator-jhipster/-/generator-jhipster-4.5.4.tgz"
|
|
|
|
sha256 "3e1baf284d514d490715e3c5aaa1920ea089992f0b17864209e00ddd7880e645"
|
2017-05-29 21:18:36 +00:00
|
|
|
|
2017-05-30 09:56:35 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2017-06-16 15:42:42 +00:00
|
|
|
sha256 "3e2a4ad17e5bbbb8dde194f0530cb6fef18888f9240984a995b0c59a8e999442" => :sierra
|
|
|
|
sha256 "0d578a9677065b0559a5860f66ac556deee7925a51a247c48c31eec47651b77d" => :el_capitan
|
|
|
|
sha256 "2a93a3304e791c498ad3663feba8508a947d0dd8313672e0dfcd2c3dabd299b3" => :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
|
|
|
|
expected = <<-EOS.undent
|
|
|
|
Executing jhipster:info
|
|
|
|
Execution complete
|
|
|
|
EOS
|
|
|
|
assert_equal expected, shell_output("#{bin}/jhipster info")
|
|
|
|
end
|
|
|
|
end
|