【问题标题】:angular-cli + jenkins (ng test then build )angular-cli + jenkins(ng 测试然后构建)
【发布时间】:2017-06-20 09:43:27
【问题描述】:

我想在 Jenkins 上使用 ng test + ng build --prod

我如何使用 i.因为如果测试通过,我需要运行构建,而无需打开浏览器。 只想喜欢:

ng test ? ng build --prod : false;

【问题讨论】:

    标签: unit-testing jenkins angular-cli


    【解决方案1】:

    解决了: 在 karma.config 中设置参数singleRun: true, 在 package.json 脚本中写 ng test && ng build --prod

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-11-30
      • 2017-11-23
      • 2018-09-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多