@ftajs/cli
v0.0.4
Published
A CLI for FTA Product by AMH-Group
Downloads
11
Readme
ftajs cli
ftajs cli
--fork from napi/cli 处理 ftajs 使用在多平台 分发二进制产物的问题
Usage
$ npm install -g @ftajs/cli
$ ftajs COMMAND
running command...
$ ftajs (--version)
@ftajs/cli/0.0.4 darwin-arm64 node-v16.19.1
$ ftajs --help [COMMAND]
USAGE
$ ftajs COMMAND
...
Commands
ftajs artifacts
处理下载下来的 Artifacts
USAGE
$ ftajs artifacts [-c <value>] [--package-json-path <value>] [-o <value>] [--npm-dir <value>]
FLAGS
-c, --cwd=<value> [default: /Users/qiczhang/Documents/ymm2021/fta/cli-ftajs] The working directory of
where napi command will be executed in
-o, --output-dir=<value> [default: ./artifacts] Path to the folder where all built `.node` files put
--npm-dir=<value> [default: npm] Path to the folder where the npm packages put
--package-json-path=<value> [default: package.json] Path to `package.json`
DESCRIPTION
处理下载下来的 Artifacts
EXAMPLES
$ ftajs artifacts
artifacts successfully processed!
See code: src/commands/artifacts/index.ts
ftajs help [COMMAND]
display help for ftajs
USAGE
$ ftajs help [COMMAND] [--all]
ARGUMENTS
COMMAND command to show help for
FLAGS
--all see all commands in CLI
DESCRIPTION
display help for ftajs
See code: @oclif/plugin-help
ftajs prepublish
更新 package.json 文件并 将 二进制组件 复制到每个平台的包中。
USAGE
$ ftajs prepublish [-c <value>] [--package-json-path <value>] [--config-path <value>] [-p <value>] [-t
<value>] [--gh-release] [--gh-release-name <value>] [--gh-release-id <value>] [--dry-run]
FLAGS
-c, --cwd=<value> [default: /Users/qiczhang/Documents/ymm2021/fta/cli-ftajs] The working directory of
where napi command will be executed in
-p, --npm-dir=<value> [default: npm] Path to the folder where the npm packages put
-t, --tag-style=<value> [default: lerna] git tag style, `npm` or `lerna`
--config-path=<value> Path to `napi` config json file
--dry-run Dry run without touching file system
--gh-release Whether create GitHub release
--gh-release-id=<value> Existing GitHub release id
--gh-release-name=<value> GitHub release name
--package-json-path=<value> [default: package.json] Path to `package.json`
DESCRIPTION
更新 package.json 文件并 将 二进制组件 复制到每个平台的包中。
EXAMPLES
$ ftajs prepublish -c ./ -p ./npm -t npm
See code: src/commands/prepublish/index.ts