2016-04-12 13:58:05 +00:00
|
|
|
require "language/node"
|
|
|
|
|
2015-10-07 17:34:05 +00:00
|
|
|
class Autocode < Formula
|
|
|
|
desc "Code automation for every language, library and framework"
|
2015-10-28 13:15:53 +00:00
|
|
|
homepage "https://autocode.run"
|
2016-04-12 13:58:05 +00:00
|
|
|
url "https://registry.npmjs.org/autocode/-/autocode-1.3.1.tgz"
|
|
|
|
sha256 "952364766e645d4ddae30f9d6cc106fdb74d05afc4028066f75eeeb17c4b0247"
|
2015-10-07 17:34:05 +00:00
|
|
|
|
2015-10-07 17:39:33 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-09-28 15:18:52 +00:00
|
|
|
rebuild 1
|
|
|
|
sha256 "f369819b2f33327071a68455a14f66855286c7614977f06704f21c38e2df5f89" => :sierra
|
2016-04-27 22:58:34 +00:00
|
|
|
sha256 "c321c73e1662332392c5949467c544e18db30849019555086ad14eeb097656d2" => :el_capitan
|
|
|
|
sha256 "a0b7c969db9e2870e818587c7d832bbe0bb187cbc01346b85bb81a6097a9e015" => :yosemite
|
|
|
|
sha256 "04effb5aecdd48e2a3c38435079424fd83f08dff206096f9807ff7c4ccd68b93" => :mavericks
|
2015-10-07 17:39:33 +00:00
|
|
|
end
|
|
|
|
|
2015-10-07 17:34:05 +00:00
|
|
|
depends_on "node"
|
|
|
|
|
|
|
|
def install
|
2016-04-12 13:58:05 +00:00
|
|
|
system "npm", "install", *Language::Node.std_npm_install_args(libexec)
|
2015-10-07 17:34:05 +00:00
|
|
|
bin.install_symlink Dir["#{libexec}/bin/*"]
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/".autocode/config.yml").write <<-EOS.undent
|
|
|
|
name: test
|
|
|
|
version: 0.1.0
|
|
|
|
description: test description
|
|
|
|
author:
|
|
|
|
name: Test User
|
|
|
|
email: test@example.com
|
2015-11-19 02:31:47 +00:00
|
|
|
url: https://example.com
|
2015-10-07 17:34:05 +00:00
|
|
|
copyright: 2015 Test
|
|
|
|
EOS
|
|
|
|
system bin/"autocode", "build"
|
|
|
|
end
|
|
|
|
end
|