Skip to content

Commit

Permalink
feat: add jenkinsfile lint stage
Browse files Browse the repository at this point in the history
  • Loading branch information
weblancaster committed Mar 27, 2018
1 parent 5af78ff commit ec787b1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ pipeline {
}
}

stage('Lint') {
steps {
ansiColor('xterm') {
sh '''npm run lint'''
}
}
}

stage('Unit Test') {
steps {
ansiColor('xterm') {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"preinstall": "./scripts/pre-install",
"start": "NODE_ENV=development npm run storybook --root ./ ",
"dist": "npm run clean && NODE_ENV=production webpack -p --config ./webpack.config.js",
"pretest": "tslint -c tslint.json --project tsconfig.json",
"lint": "tslint -c tslint.json --project tsconfig.json",
"test": "jest",
"test:watch": "jest --watch",
"commitlint": "commitlint -e",
Expand Down

0 comments on commit ec787b1

Please sign in to comment.