File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments