Skip to content

Commit ac6c2b7

Browse files
committed
nx 21.0.4 (new formula)
1 parent 44016f4 commit ac6c2b7

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

Formula/n/nx.rb

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
class Nx < Formula
2+
desc "Smart, Fast and Extensible Build System"
3+
homepage "https://nx.dev"
4+
url "https://registry.npmjs.org/nx/-/nx-21.0.4.tgz"
5+
sha256 "dd1bf64358661a2d14dd027f8b0c6d8eea051afff4ec8206407bdb9335991f9f"
6+
license "MIT"
7+
8+
depends_on "node"
9+
10+
def install
11+
system "npm", "install", *std_npm_args
12+
bin.install_symlink Dir["#{libexec}/bin/*"]
13+
end
14+
15+
test do
16+
(testpath/"package.json").write <<~JSON
17+
{
18+
"name": "@acme/repo",
19+
"version": "0.0.1",
20+
"scripts": {
21+
"test": "echo 'Tests passed'"
22+
}
23+
}
24+
JSON
25+
26+
system bin/"nx", "init", "--no-interactive"
27+
assert_path_exists testpath/"nx.json"
28+
29+
output = shell_output("#{bin}/nx 'test'")
30+
assert_match "Successfully ran target test", output
31+
end
32+
end

0 commit comments

Comments
 (0)