File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ require "language/node"
2+
3+ class Bit < Formula
4+ desc "Distributed Code Component Manager"
5+ homepage "https://bit.dev"
6+ url "https://registry.npmjs.org/bit-bin/-/bit-bin-14.2.0.tgz"
7+ sha256 "078d6fb3cbe6cfa8e4aa7d100a80669f3ba1dc90f01d9ec652dcc36adc5840de"
8+ head "https://github.com/teambit/bit.git"
9+
10+ bottle do
11+ sha256 "04c8c01c8855d9c4cbc3434ec345ff3a84b9d728730518d686e7435d7c1e832a" => :mojave
12+ sha256 "08fcb0686b049e75d6bef1f1cec8399cd3edb90b8488fb7f5fcf17e00fdaf428" => :high_sierra
13+ sha256 "bc510bb1aa7a6f2821b2dcbc1f0f43f90dce553c17c43fcefb8c26c8cfd634aa" => :sierra
14+ end
15+
16+ depends_on "node"
17+
18+ def install
19+ system "npm" , "install" , *Language ::Node . std_npm_install_args ( libexec )
20+ bin . install_symlink Dir [ "#{ libexec } /bin/*" ]
21+ end
22+
23+ test do
24+ ( testpath /"Library/Caches/Bit/config/config.json" ) . write <<~EOS
25+ { "analytics_reporting": false, "error_reporting": false }
26+ EOS
27+ output = shell_output ( "#{ bin } /bit init --skip-update" )
28+ assert_match "successfully initialized" , output
29+ end
30+ end
You can’t perform that action at this time.
0 commit comments