Skip to content

Commit

Permalink
bower 1.8.0 (new formula)
Browse files Browse the repository at this point in the history
Closes #9515.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
cglong authored and MikeMcQuaid committed Feb 10, 2017
1 parent 46a7d6a commit 028b51e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Formula/bower.rb
@@ -0,0 +1,20 @@
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"

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

0 comments on commit 028b51e

Please sign in to comment.