move examples to dedicated folder, update create app and ci accordingly
|
@ -69,7 +69,7 @@ pipeline {
|
|||
|
||||
def buildExample(example=STAGE_NAME) {
|
||||
def dest = "${WORKSPACE}/build/docs/${example}"
|
||||
dir("${example}") {
|
||||
dir("examples/${example}") {
|
||||
sh 'pnpm install --silent'
|
||||
sh 'pnpm run build'
|
||||
sh "mkdir -p ${dest}"
|
||||
|
@ -79,6 +79,7 @@ def buildExample(example=STAGE_NAME) {
|
|||
|
||||
def copyExample(example=STAGE_NAME) {
|
||||
sh "mkdir -p build/docs/${example}"
|
||||
sh "cp ${example}/index.html build/docs/${example}/"
|
||||
sh "[ -f ${example}/style.css ] && cp ${example}/style.css build/docs/${example}/ || exit 0"
|
||||
sh "cp examples/${example}/*.html build/docs/${example}/"
|
||||
sh "cp examples/${example}/*.js build/docs/${example}/"
|
||||
sh "cp examples/${example}/*.css build/docs/${example}/"
|
||||
}
|
||||
|
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 9.4 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 948 B After Width: | Height: | Size: 948 B |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 9.4 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |