mirror of https://github.com/waku-org/waku-lab.git
fix(buddybook): Jenkinsfile
This commit is contained in:
parent
b7b6672196
commit
d05bbd6cb8
|
@ -44,7 +44,7 @@ pipeline {
|
||||||
stage('dogfooding') { steps { script { buildExample() } } }
|
stage('dogfooding') { steps { script { buildExample() } } }
|
||||||
stage('message-monitor') { steps { script { buildExample() } } }
|
stage('message-monitor') { steps { script { buildExample() } } }
|
||||||
stage('flush-notes') { steps { script { buildNextJSExample() } } }
|
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 copyExample(example=STAGE_NAME) {
|
||||||
def source = "examples/${example}"
|
def source = "examples/${example}"
|
||||||
def dest = "build/docs/${example}"
|
def dest = "build/docs/${example}"
|
||||||
|
|
Loading…
Reference in New Issue