• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

zmwangx/homebrew-npm-noob: Generate Homebrew formulae for npm packages

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

zmwangx/homebrew-npm-noob

开源软件地址:

https://github.com/zmwangx/homebrew-npm-noob

开源编程语言:

Python 92.5%

开源软件介绍:

homebrew-npm-noob

PyPI License Build Status

homebrew-npm-noob generates a Homebrew formula for an npm package. It is inspired by homebrew-pypi-poet.

Installation

Either

pip install homebrew-npm-noob

or

brew install zmwangx/npm-noob/noob

Usage

$ noob --help
usage: noob [-h] [-w] [-t TAP] [-v] [--debug] package

Generate a Homebrew formula for an npm package. By default the generated
formula is printed to stdout. If -w, --write is specified, the formula is
directly written to the specified tap, or homebrew/core if no tap is
specified.

positional arguments:
  package            name of the package on npm

optional arguments:
  -h, --help         show this help message and exit
  -w, --write        write to filesystem instead of stdout
  -t TAP, --tap TAP  if writing to filesystem, write to this tap instead of
                     homebrew/core
  -v, --version      show program's version number and exit
  --debug

Example

$ noob babel-cli
require "language/node"

class BabelCli < Formula
  desc "Babel command line"
  homepage "https://babeljs.io/"
  url "https://registry.npmjs.org/babel-cli/-/babel-cli-6.26.0.tgz"
  sha256 "81ac501721ff18200581c58542fa6226986766c53be35ad8f921fabd47834d02"
  license "MIT"

  livecheck do
    url :stable
  end

  depends_on "node"

  def install
    system "npm", "install", *Language::Node.std_npm_install_args(libexec)
    bin.install_symlink Dir["#{libexec}/bin/*"]
  end

  test do
    raise "Test not implemented."
  end
end

See Also

Node for Formula Authors in Homebrew's docs.

License

homebrew-npm-noob is released under the MIT license. See COPYING for details.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
petere/homebrew-auto-update: automatically runs brew update发布时间:2022-06-17
下一篇:
Sponsor @jonathan-fielding on GitHub Sponsors · GitHub发布时间:2022-06-14
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap