节点- repo 工具

在 Google CloudPlatform 中用于维护和测试寄存器的工具 组织.
目录
安装
通过 npm数字 :
npm install -g @google-cloud/nodejs-repo-toolsrepo-tools --help
Via 下载 (Linux) :
curl -O https://storage.googleapis.com/cloud-docs-samples/releases/latest/nodejs-repo-tools-linuxmv ./nodejs-repo-tools-linux $HOME/bin/repo-toolschmod +x $HOME/bin/repo-tools
Via 下载 (Mac) :
curl -O https://storage.googleapis.com/cloud-docs-samples/releases/latest/nodejs-repo-tools-macosmv ./nodejs-repo-tools-macos $HOME/bin/repo-toolschmod +x $HOME/bin/repo-tools
Via下载( Windows) :
CLI 使用情况
用法 : repo-tools --help 或者说 tools --help
Commands:
exec Run a given command in /Users/jdobry/projects/nodejs-repo-tools.
generate <targets..> Generate the given target(s) in /Users/jdobry/projects/nodejs-repo-tools.
test Run a test sub-command.
unify (Node.js only) Recursively add sub-directory dependencies to the top-level package.json file.
Options:
--build-pack, -b Choices: nodejs, python, ruby. Detected: nodejs. The build pack to use. The tool will attempt to
detect which build to use. [string]
--local-path, -l Current: /Users/jdobry/projects/nodejs-repo-tools. Use this option to set the current working
directory of the command. [string]
--dry-run Default: false. Print the actions that would be taken, but don't actually do anything. [boolean]
--silent Default: false. If true, hide the output of shell commands. [boolean]
--help Show help [boolean]
--version Show version number [boolean]
For more information, see https://github.com/GoogleCloudPlatform/nodejs-repo-tools
程序用途
-
安装工具 :
npm install --save @google-cloud/nodejs-repo-tools -
然后在你的代码:
const tools = require('@google-cloud/nodejs-repo-tools');`
语文支助
对各种编程语言的支持通过[building backs][]来添加. 一个建筑
包指定特定语言配置和命令,当
执行各种Repo工具任务。 Repo 工具尽力推断
构建包,它应该使用,但当运行命令可以指定一个特定
以 --build-pack [BUILD_PACK] 或者说 -b [BUILD_PACK]。 。 。 .
可用的构建包
添加一个构建包
可以通过添加一个 .js 转到 src/ 构建 包装
目录。 此文件应该导出 JavaScript 对象 。 你可以看到
通过浏览已有的构建包来查看可用的选项.
捐款
见 捐款额。 。 。 .
许可证
Apache 版本 2.0
见 自由主义。 。 。 .