Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

dn-middleware-shell

houzhanfeng18ISC1.1.1

--- group: middleware name: shell title: 执行脚本 ---

readme


group: middleware name: shell

title: 执行脚本

shell 中间件

这是一个执行 shell 的中间件,只有一个 script 选项,示例

dev:
  - name: shell
    script:
      - echo 你好
      - echo Hello

script 选项中可以写多行 shell/bat 脚本代码,将会依次执行。

提示:执行 shell 时的当前工作目录就是「项目根目录」