7ohm 中文文档教程
7ohm - Run parallel processes with no cost of external dependencies
Motivation
超级简单的包,允许您跨多种 shell 类型运行并发进程, 类似于并发,但没有负担 在 99% 的情况下无用的功能的外部依赖。
所以如果你只是想在多个平台上并行运行多个进程而不想 带来额外的依赖关系,那么它适合你。
Installation
npm i -g 7ohm
Usage
在命令行中:
7ohm "command1 arg1 arg2" "command2 arg1 arg3"
在 package.json 脚本部分:
"scripts": {
"command1": "command1 arg1 arg2",
"command2": "command1 arg1 arg2",
"dev": "7ohm \"npm run command1\" \"npm run command2\""
}
……甚至更好(现在支持 npm、yarn 和 pnpm 的包管理器脚本的快捷方式!):
"scripts": {
"command1": "command1 arg1 arg2",
"command2": "command1 arg1 arg2",
"dev": "7ohm npm:command1 npm:command2"
}
Contribution
如果你想制作 PR,请保持简单并且没有额外的依赖。 随时报告任何 错误,因为我仅在 bash 和 powershell 的 Windows 上对其进行了测试。
7ohm - Run parallel processes with no cost of external dependencies
Motivation
Super simple package that allows you to run concurrent processes across multiple shell types, similar to concurrently, but without burden of external dependencies for functionality that useless in 99% cases.
So if you just want to run several processes in parallel on multiple platforms and don't want to bring extra dependencies, then it's for you.
Installation
npm i -g 7ohm
Usage
In command line:
7ohm "command1 arg1 arg2" "command2 arg1 arg3"
In package.json scripts section:
"scripts": {
"command1": "command1 arg1 arg2",
"command2": "command1 arg1 arg2",
"dev": "7ohm \"npm run command1\" \"npm run command2\""
}
…or even better (supports shortcuts for package manager scripts of npm, yarn and pnpm now!):
"scripts": {
"command1": "command1 arg1 arg2",
"command2": "command1 arg1 arg2",
"dev": "7ohm npm:command1 npm:command2"
}
Contribution
If you want to make PR, please keep it simple and NO EXTRA DEPENDENCIES. Feel free to report any bugs since it was tested only on windows in bash and powershell by me.