27 lines
908 B
Ruby
27 lines
908 B
Ruby
require "language/node"
|
|
|
|
class Bower < Formula
|
|
desc "Package manager for the web"
|
|
homepage "https://bower.io/"
|
|
url "https://registry.npmjs.org/bower/-/bower-1.8.0.tgz"
|
|
sha256 "df634fcbb57f8877914ceeff794c88bca0c8a262d9c9f12f08c37ab13599aaa6"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "eb640d5ee479ffe61ee5e1128c15c86af0042733789025c387bc9145758dc130" => :sierra
|
|
sha256 "dd8959cfbb739113122d4ecfe329cbd25fc217b11a9b7e8c4ca1a1cbad3d71e6" => :el_capitan
|
|
sha256 "bc7b25bbac3df03684497f02311d1990a858ee90346f9f196875e564db99f6d6" => :yosemite
|
|
end
|
|
|
|
depends_on "node"
|
|
|
|
def install
|
|
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
|
|
bin.install_symlink Dir["#{libexec}/bin/*"]
|
|
end
|
|
|
|
test do
|
|
system bin/"bower", "install", "jquery"
|
|
assert File.exist?("bower_components/jquery/dist/jquery.min.js"), "jquery.min.js was not installed"
|
|
end
|
|
end
|