Skip to content

Instantly share code, notes, and snippets.

@iamdanfox
Last active November 16, 2018 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamdanfox/97ca610f4155aec3be5097aa835d20f0 to your computer and use it in GitHub Desktop.
Save iamdanfox/97ca610f4155aec3be5097aa835d20f0 to your computer and use it in GitHub Desktop.
Homebrew formula to install conjure-typescript 3.4.0
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