如何在同一终端中执行正在进行的任务后运行npm任务

时间:2018-07-02 14:17:28

标签: node.js angular npm protractor

我有两个任务,我想一个接一个地运行,第一个任务正在进行中,我需要等到完成:

{
    "serve": "node_modules/.bin/ng serve",
    "flake": "node_modules/.bin/protractor-flake --parser standard  --max-attempts=3 -- e2e/protractor.conf.js"
}

serve任务正在进行中,我想等它准备就绪并运行“片状”。 基本上,我试图在CI框上使用Protractor-flake运行Angular e2e测试。 e2e需要应用程序才能运行。

我尝试了concurrently,但它没有等待ng server准备就绪。 我也尝试过这个:

concurrently \"ng serve\" \"wait-on http://localhost:8000/ && npm run flake\" --kill-others

但是它没有运行测试。

0 个答案:

没有答案
相关问题