26 lines
705 B
Ruby
26 lines
705 B
Ruby
|
require "language/node"
|
||
|
|
||
|
class Pulp < Formula
|
||
|
desc "Build tool for PureScript projects"
|
||
|
homepage "https://github.com/bodil/pulp"
|
||
|
url "https://registry.npmjs.org/pulp/-/pulp-13.0.0.tgz"
|
||
|
sha256 "91b5e517afffc8f53ed6dc608eef908bd92843ce73976acf57db6eca897b5ba0"
|
||
|
|
||
|
depends_on "bower"
|
||
|
depends_on "node"
|
||
|
depends_on "purescript"
|
||
|
|
||
|
def install
|
||
|
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
|
||
|
bin.install_symlink Dir["#{libexec}/bin/*"]
|
||
|
end
|
||
|
|
||
|
test do
|
||
|
assert_match version.to_s, shell_output("#{bin}/pulp --version")
|
||
|
|
||
|
system("#{bin}/pulp init")
|
||
|
assert_predicate testpath/".gitignore", :exist?
|
||
|
assert_predicate testpath/"bower.json", :exist?
|
||
|
end
|
||
|
end
|