1
alphanow 2022 年 1 月 21 日
写个 index.js ,用 fs.readdir 把文件都读出来,然后再 map -> execFile
以后 node .就行了 |
2
momocraft 2022 年 1 月 21 日
xargs
|
3
shyling 2022 年 1 月 21 日
ls *.js | xargs -n 1 node
|
4
b1eberg0n 2022 年 1 月 21 日
concurrently
|
6
ysc3839 2022 年 1 月 21 日
find -name '*.js' -exec node {} \;
|
7
akira 2022 年 1 月 21 日
手动写个脚本,需要增加或者删除的时候 手动处理。 生产环境不要偷懒
|
8
xylxAdai 2022 年 1 月 21 日
shell 脚本
|
10
jaredyam 2022 年 1 月 22 日
我觉得#6 语义上更符合直觉,如果模式比较固定,放 Makefile 里岂不更好?
|
11
wangtian2020 2022 年 1 月 28 日
用 nodejs 的 fs 模块读取文件夹下面的文件,生成 powershell 脚本,用 child_process 模块运行脚本
能用 nodejs 写都能用 nodejs 写 |
12
SoulGem 2022 年 2 月 17 日
pm2
写个入口文件,遍历*.js 然后 pm2.start() |
13
dany813 2022 年 2 月 28 日
写个 node 入口脚本
|