0
我想在Jenkins上使用ng test
+ ng build --prod
。angular-cli + jenkins(ng test then build)
我如何使用i。因为我需要运行构建如果测试通过,而不打开浏览器。 只是想喜欢:
ng test ? ng build --prod : false;
我想在Jenkins上使用ng test
+ ng build --prod
。angular-cli + jenkins(ng test then build)
我如何使用i。因为我需要运行构建如果测试通过,而不打开浏览器。 只是想喜欢:
ng test ? ng build --prod : false;
解决:在karma.config设置PARAMS singleRun: true
, 中的package.json脚本编写ng test && ng build --prod