move examples to dedicated folder, update create app and ci accordingly

This commit is contained in:
weboko 2022-12-21 23:30:02 +01:00
parent 123613975b
commit 940609718a
No known key found for this signature in database
149 changed files with 25 additions and 39 deletions

7
ci/Jenkinsfile vendored
View File

@ -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}/"
}

View File

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 9.4 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 948 B

After

Width:  |  Height:  |  Size: 948 B

View File

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 9.4 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Some files were not shown because too many files have changed in this diff Show More