run-command:从节点内运行同步 shell 命令

时间:2024-07-09 05:24:01
【文件属性】:

文件名称:run-command:从节点内运行同步 shell 命令

文件大小:51KB

文件格式:ZIP

更新时间:2024-07-09 05:24:01

JavaScript

运行命令 从节点内运行同步 shell 命令 简单示例 # postinstall.coffee runCommand = require ( " run-command " ) runCommand " bower " , [ ' install ' ], -> runCommand " gulp " 稍微高级一点的例子 # start.coffee runCommand = require ( " run-command " ) console . log ( " >> NODE_ENV: " + process . env . NODE_ENV ) runCommand ( " coffee " , [ ' app.coffee ' ]) if ( process . env . NODE_ENV == " development " ) runCommand " gul


【文件预览】:
run-command-master
----index.js(2KB)
----package.json(676B)
----node_modules()
--------custom-logger()
--------.bin()
--------gutil()
--------win-spawn()
----README.md(744B)

网友评论