Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #9515. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
- Loading branch information
1 parent
46a7d6a
commit 028b51e
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |