塔马希
Tamashii协助在单雷波内解决内部包,特别是对私人寄存器.
Tamashii如何帮助你的工作
要在同个单曲内使用JavaScript软件包在一个私有单曲内,有几种挑战:
- 根据软件包管理器的不同,您可能需要删除"node modules"目录并重新安装,以反映最新的更改.
- 直接指定包目录复制了"node modules"作为-is,包括"devdependenties",导致取决于环境的依赖性解析变化.
- 如果需要建设,则需要建立机制,为多个依赖性自动执行建设.
"tamashii"用几个简单的命令解决了这些挑战.
使用量
安装
$ npm install -g @dinii-inc/tamashii
$ tamashii COMMAND
running command...
$ tamashii (--version)
@dinii-inc/tamashii/1.4.6 darwin-arm64 node-v20.8.0
$ tamashii --help [COMMAND]
USAGE
$ tamashii COMMAND
...
一体化
$ tamashii init
$ tamashii link ../path/to/your/internal/package
建议增加: tamashii refresh 财务报告和审定财务报表 tamashii sync 到 npm 脚本,使内部软件包自动得到正确的更新.
{
"scripts": {
"preinstall": "tamashii sync",
"prepare": "tamashii refresh"
}
}
图标
tamashii help [COMMANDS]tamashii link SOURCEtamashii refresh [PACKAGE]tamashii sync [PACKAGE]tamashii vscodetamashii zip SOURCE
tamashii help [COMMANDS]
显示 Tamashii 的帮助 .
USAGE
$ tamashii help [COMMANDS] [-n]
ARGUMENTS
COMMANDS Command to show help for.
FLAGS
-n, --nested-commands Include all nested commands in the output.
DESCRIPTION
Display help for tamashii.
参见代码 : @oclif/plugin-帮助
tamashii link SOURCE
链接软件包
USAGE
$ tamashii link SOURCE [--cwd <value>] [--installFlags <value>] [--npm] [--verbose] [--yarn2]
ARGUMENTS
SOURCE Package path
FLAGS
--cwd=<value> Current working directory of the child process
--installFlags=<value> Flags to pass "yarn add" or "npm install"
--npm Use npm instead of yarn
--verbose Print verbose output
--yarn2 Use yarn 2+ instead of yarn classic
DESCRIPTION
Links package
EXAMPLES
$ tamashii link ../path/to/your/internal/package
参见代码 : src/commands/link/index.ts (中文(简体) )
tamashii refresh [PACKAGE]
在节点模块中刷新软件包
USAGE
$ tamashii refresh [PACKAGE] [--cwd <value>]
ARGUMENTS
PACKAGE Package name
FLAGS
--cwd=<value> Current working directory of the child process
DESCRIPTION
Refreshes package in node_modules
At times, yarn may not update the content under "node_modules" even if changes are made to locally installed packages
using "file:[path to package]" instead of a specific version number.
In such cases, it may be necessary to delete the entire contents of "node_modules" and then re-run "yarn install".
This command resolves the issue by copying files directly from the source to "node_modules".
Consider placing this command in the "prepare" section of npm scripts to ensure that the content under "node_modules"
is always kept up to date.
EXAMPLES
$ tamashii refresh # all packages will be refreshed
$ tamashii refresh your-internal-package
参见代码 : src/commands/refresh/index.ts 互联网档案馆的存檔,存档日期2013-12-21
tamashii sync [PACKAGE]
从源头同步本地软件包
USAGE
$ tamashii sync [PACKAGE] [--cwd <value>] [--force] [--npm] [--verbose] [--yarn2]
ARGUMENTS
PACKAGE Target package name to sync
FLAGS
--cwd=<value> Current working directory of the child process
--force never skip even if no changes detected at source
--npm Use npm instead of yarn classic
--verbose Print verbose output
--yarn2 Use yarn 2+ instead of yarn classic
DESCRIPTION
Syncs local packages from source
This updates package builds under ".tamashii" based on the source code linked via symbolic link in ".tamashii/.links".
To reflect the latest builds in node_modules, where you have installed internal packages, you need to execute
"tamashii refresh".
This also prevents the copying of the "node_modules" directory within the source directory that contains
"devDependencies".
Consider placing this command in the "preinstall" section of npm scripts so that the required builds are prepared even
during the initial run of yarn in the package directory where you have installed internal packages.
EXAMPLES
$ tamashii sync # all packages will be synced
$ tamashii sync your-internal-package
参见代码 : src/commands/sync/index.ts (中文(简体) )
tamashii vscode
显示指令, 使您在 Tamashii 和 VSCode 的开发体验更加舒适
USAGE
$ tamashii vscode
DESCRIPTION
Shows instruction to make your development experience with tamashii and VSCode more comfortable
参见代码 : src/commands/vscode/index.ts 互联网档案馆的存檔,存档日期2013-12-02
tamashii zip SOURCE
Zips 软件包
USAGE
$ tamashii zip SOURCE
ARGUMENTS
SOURCE Package path
DESCRIPTION
Zips package
EXAMPLES
$ tamashii zip ../path/to/your/internal/package