Skip to content

Commit 67b6773

Browse files
authored
feat: Updates script files to copy static content from public folder. (#783)
Change-Id: Id2bf63680f8eb1b701f1a22c74718c855215efe3
1 parent efbdd85 commit 67b6773

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

samples/dist.sh

100644100755
File mode changed.

samples/docs.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,7 @@ mkdir -p ${DOCS_DIR}
2525
cp "${SCRIPT_DIR}/${NAME}/index.ts" "${DOCS_DIR}/index.ts"
2626
cp "${SCRIPT_DIR}/${NAME}/index.js" "${DOCS_DIR}/index.js"
2727
cp "${SCRIPT_DIR}/${NAME}/index.html" "${DOCS_DIR}/index.html"
28-
cp "${SCRIPT_DIR}/${NAME}/style.css" "${DOCS_DIR}/style.css"
28+
cp "${SCRIPT_DIR}/${NAME}/style.css" "${DOCS_DIR}/style.css"
29+
30+
# Copy the data folder if one is found.
31+
[ -d "public" ] && cp -r public/* "${DOCS_DIR}/"

samples/jsfiddle.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ cp "${SCRIPT_DIR}/${NAME}/index.js" "${DIST_DIR}/samples/${NAME}/jsfiddle/demo.j
3232
cp "${SCRIPT_DIR}/${NAME}/index.html" "${DIST_DIR}/samples/${NAME}/jsfiddle/demo.html"
3333
cp "${SCRIPT_DIR}/${NAME}/style.css" "${DIST_DIR}/samples/${NAME}/jsfiddle/demo.css"
3434

35+
# Copy the data folder if one is found.
36+
[ -d "public" ] && cp -r public/* "${DIST_DIR}/samples/${NAME}/jsfiddle/"
37+
3538
# Remove region tags from files by type, since they all have different comment conventions.
3639
# We use a conditional here since sed behaves differently on Linux.
3740
echo "Remove region tags from ${DIST_DIR}/samples/${NAME}/jsfiddle/demo.js"

0 commit comments

Comments
 (0)