npm-run-all:一种CLI工具,可并行或顺序运行多个npm-scripts

时间:2021-01-30 01:18:53
【文件属性】:
文件名称:npm-run-all:一种CLI工具,可并行或顺序运行多个npm-scripts
文件大小:66KB
文件格式:ZIP
更新时间:2021-01-30 01:18:53
javascript cli npm multi-platform parallel 指数 npm-run-all 一个CLI工具,可并行或顺序运行多个npm脚本。 :right_arrow_curving_up_selector: 动机 简化。 官方的npm run-script命令不能运行多个脚本,因此如果我们要运行多个脚本,则有点多余。 让我们通过类似球形的样式来缩短它。 之前: npm run clean && npm run build:css && npm run build:js && npm run build:html 之后: npm-run-all clean build:* 跨平台。 有时我们会使用&并行运行多个命令,但是cmd.exe (默认为npm run-script使用它)不支持& 。 一半的Node.js用户在Windows上使用它,因此使用&可能会阻止贡献。 npm-run-all --parallel在Windows上也很好用。 :optical_disk: 安装 $ npm install npm-run-all --save-dev # or $ yarn add npm-run-all --dev 它需要Node@>=
【文件预览】:
npm-run-all-master
----.eslintrc.json(161B)
----.gitignore(118B)
----.babelrc(139B)
----package.json(2KB)
----.nycrc(54B)
----.npmrc(19B)
----bin()
--------run-s()
--------run-p()
--------common()
--------npm-run-all()
----.travis.yml(151B)
----LICENSE(1KB)
----.github()
--------FUNDING.yml(21B)
----jsdoc.json(175B)
----scripts()
--------make-slink.js(453B)
----README.md(3KB)
----appveyor.yml(215B)
----lib()
--------spawn-win32.js(2KB)
--------create-header.js(2KB)
--------run-tasks.js(6KB)
--------index.js(10KB)
--------spawn-posix.js(2KB)
--------create-prefix-transform-stream.js(3KB)
--------match-tasks.js(4KB)
--------run-task.js(7KB)
--------npm-run-all-error.js(1KB)
--------spawn.js(603B)
--------read-package-json.js(980B)
----test-workspace()
--------package.json(2KB)
--------no-package-json()
--------no-scripts()
--------tasks()
----docs()
--------node-api.md(5KB)
--------run-s.md(5KB)
--------run-p.md(5KB)
--------npm-run-all.md(7KB)
----test()
--------aggregate-output.js(4KB)
--------.eslintrc.json(169B)
--------parallel.js(11KB)
--------print-name.js(4KB)
--------common.js(11KB)
--------bin()
--------package-config.js(4KB)
--------mixed.js(2KB)
--------pattern.js(7KB)
--------sequential.js(7KB)
--------yarn.js(2KB)
--------print-label.js(8KB)
--------config.js(3KB)
--------lib()
--------argument-placeholders.js(8KB)
--------fail.js(5KB)

网友评论