alexjs 4.0.1 (new formula)
This catches insensitive, inconsiderate writing. It’s available through NPM but we package other things that are and this is sufficiently useful to non-Javascript folks that it makes sense to add. Closes #11606. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
b75573d032
commit
e7c269bba1
1 changed files with 20 additions and 0 deletions
20
Formula/alexjs.rb
Normal file
20
Formula/alexjs.rb
Normal file
|
@ -0,0 +1,20 @@
|
|||
require "language/node"
|
||||
|
||||
class Alexjs < Formula
|
||||
desc "Catch insensitive, inconsiderate writing"
|
||||
homepage "http://alexjs.com"
|
||||
url "https://github.com/wooorm/alex/archive/4.0.1.tar.gz"
|
||||
sha256 "85786f7e5a89b2ee77c54a57275723046309933639f96ab3174e9366c7c37675"
|
||||
|
||||
depends_on "node"
|
||||
|
||||
def install
|
||||
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
|
||||
bin.install_symlink Dir["#{libexec}/bin/*"]
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.txt").write "garbageman"
|
||||
assert_match "garbage collector", shell_output("#{bin}/alex test.txt 2>&1", 1)
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue