From fc15558644b28b6fc29ba586a9731a1697fc97f0 Mon Sep 17 00:00:00 2001 From: Trivernis Date: Thu, 19 Dec 2019 19:31:31 +0100 Subject: [PATCH] Jenkins config ts - added typescript module to npm installation --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 925340a..5c53f8a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,8 +7,8 @@ pipeline { echo 'Checking Style...' nodejs(nodeJSInstallationName: 'Node 12.x') { sh 'npm i' - sh 'npm i tslint --dev' - sh 'tslint src/**/*.ts' + sh 'npm i typescript tslint' + sh 'tslint "src/**/*.ts"' } } } @@ -16,6 +16,7 @@ pipeline { steps { echo 'Building...' nodejs(nodeJSInstallationName: 'Node 12.x') { + sh 'npm i @angular/cli' sh 'ng build --prod' } }