File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -25,4 +25,7 @@ mkdir -p ${DOCS_DIR}
2525cp " ${SCRIPT_DIR} /${NAME} /index.ts" " ${DOCS_DIR} /index.ts"
2626cp " ${SCRIPT_DIR} /${NAME} /index.js" " ${DOCS_DIR} /index.js"
2727cp " ${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} /"
Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ cp "${SCRIPT_DIR}/${NAME}/index.js" "${DIST_DIR}/samples/${NAME}/jsfiddle/demo.j
3232cp " ${SCRIPT_DIR} /${NAME} /index.html" " ${DIST_DIR} /samples/${NAME} /jsfiddle/demo.html"
3333cp " ${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.
3740echo " Remove region tags from ${DIST_DIR} /samples/${NAME} /jsfiddle/demo.js"
You can’t perform that action at this time.
0 commit comments