mirror of
https://github.com/waku-org/js-waku-lab.git
synced 2025-01-27 09:15:43 +00:00
fix(buddybook): Jenkinsfile
This commit is contained in:
parent
b7b6672196
commit
d05bbd6cb8
12
ci/Jenkinsfile
vendored
12
ci/Jenkinsfile
vendored
@ -44,7 +44,7 @@ pipeline {
|
||||
stage('dogfooding') { steps { script { buildExample() } } }
|
||||
stage('message-monitor') { steps { script { buildExample() } } }
|
||||
stage('flush-notes') { steps { script { buildNextJSExample() } } }
|
||||
stage('buddybook') { steps { script { buildExample() } } }
|
||||
stage('buddybook') { steps { script { buildViteExample() } } }
|
||||
}
|
||||
}
|
||||
|
||||
@ -89,6 +89,16 @@ def buildNextJSExample(example=STAGE_NAME) {
|
||||
}
|
||||
}
|
||||
|
||||
def buildViteExample(example=STAGE_NAME) {
|
||||
def dest = "${WORKSPACE}/build/docs/${example}"
|
||||
dir("examples/${example}") {
|
||||
sh 'npm install --silent'
|
||||
sh 'npm run build'
|
||||
sh "mkdir -p ${dest}"
|
||||
sh "cp -r dist/. ${dest}"
|
||||
}
|
||||
}
|
||||
|
||||
def copyExample(example=STAGE_NAME) {
|
||||
def source = "examples/${example}"
|
||||
def dest = "build/docs/${example}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user