Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

WIP : refactor jenkinsfile with new npm targets #2364

Closed
wants to merge 12 commits into from
6 changes: 2 additions & 4 deletions deploy/release.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
def ci (){
stage('build planner npm'){
container('ui'){
sh 'npm install'
sh 'npm run build'
sh 'npm pack dist/'
sh 'npm run build-planner'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You haven't changed anything but making it more opaque. I do NOT think this is good.

}
}

stage('unit test'){
container('ui'){
sh 'npm run test:unit'
sh 'npm run unit-test'
}
}

Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"clean:all": "gulp clean:all",
"reinstall": "rimraf node_modules && npm --force cache clean && npm install",
"test:unit": "gulp test:unit",
"semantic-release": "semantic-release pre && gulp build && cp -r .git dist && npm publish dist/ && semantic-release post"
"semantic-release": "semantic-release pre && gulp build && cp -r .git dist && npm publish dist/ && semantic-release post",
"build-planner": "npm install && npm run build && npm pack dist/",
"unit-test": "npm run test:unit"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the difference between npm run test:unit and npm run unit-test?
They do the same thing but you move away from the standard format of listing the action first. What is the point?

},
"license": "Apache-2.0",
"contributors": [
Expand Down