Last active
November 16, 2018 14:40
-
-
Save iamdanfox/97ca610f4155aec3be5097aa835d20f0 to your computer and use it in GitHub Desktop.
Homebrew formula to install conjure-typescript 3.4.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ConjureTypescript < Formula | |
desc "Conjure generator for TypeScript clients" | |
homepage "https://github.com/palantir/conjure-typescript" | |
url "http://palantir.bintray.com/releases/com/palantir/conjure/typescript/conjure-typescript/3.4.0/conjure-typescript-3.4.0.tgz" | |
sha256 "6ca813bf03b48824ed66b09b5757c708fcbf5e54d742d60d8e9446d48c423057" | |
head "https://github.com/palantir/conjure-typescript.git", :branch => "develop" | |
bottle :unneeded | |
depends_on "node" | |
depends_on "yarn" if build.head? | |
def install | |
if build.head? | |
system "yarn", "install", "--non-interactive", "--frozen-lockfile" | |
system "yarn", "compile" | |
bin.install %w[dist/bin/conjure-typescript] | |
else | |
libexec.install %w[bin] | |
bin.install_symlink "#{libexec}/bin/conjure-typescript" | |
end | |
end | |
test do | |
system "#{bin}/conjure-typescript", "--help" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment