Skip to content

Commit

Permalink
Skip building cht artifacts if they already exit
Browse files Browse the repository at this point in the history
Allow forcing though!
  • Loading branch information
jkuester committed Jan 5, 2024
1 parent c858286 commit 96e77d0
Show file tree
Hide file tree
Showing 19 changed files with 27 additions and 19 deletions.
10 changes: 9 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,23 @@ exit_on_error() {
set -e
trap exit_on_error EXIT

if [ "$1" == "--force" ]; then
FORCE=true
fi

npm ci --legacy-peer-deps

for item in `ls build | grep -v cht-core`; do
rm -rf $item
done

declare -a versions=("cht-core-4-6")
# TODO Eventually we should filter this based on which artifacts already exist
for version in "${versions[@]}"; do
if [ -z ${FORCE+x} ] && [ -d dist/"$version" ]; then
printf "\033[0;32m== SKIPPING $version ==\n"
continue
fi

if [ -d build/"$version" ]; then
(cd build/"$version" && git fetch && git reset --hard origin/master)
else
Expand Down
2 changes: 1 addition & 1 deletion dist/all-chts-bundle.dev.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/all-chts-bundle.dev.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cht-core-4-6/cht-core-bundle.dev.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/Harness.html
Original file line number Diff line number Diff line change
Expand Up @@ -4826,7 +4826,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="mock.cht-
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 05 2024 16:44:32 GMT-0600 (Central Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 05 2024 17:19:06 GMT-0600 (Central Standard Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/core-adapter.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="mock.cht-
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 05 2024 16:44:32 GMT-0600 (Central Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 05 2024 17:19:06 GMT-0600 (Central Standard Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/dev-mode_mock.cht-conf.contact-summary-lib.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="mock.cht-
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 05 2024 16:44:32 GMT-0600 (Central Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 05 2024 17:19:06 GMT-0600 (Central Standard Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/dev-mode_mock.cht-conf.nools-lib.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="mock.cht-
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 05 2024 16:44:32 GMT-0600 (Central Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 05 2024 17:19:06 GMT-0600 (Central Standard Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/dev-mode_mock.rules-engine.rules-emitter.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="mock.cht-
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 05 2024 16:44:32 GMT-0600 (Central Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 05 2024 17:19:06 GMT-0600 (Central Standard Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/form-host_form-filler.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="mock.cht-
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 05 2024 16:44:32 GMT-0600 (Central Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 05 2024 17:19:06 GMT-0600 (Central Standard Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/global.html
Original file line number Diff line number Diff line change
Expand Up @@ -1880,7 +1880,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="mock.cht-
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 05 2024 16:44:32 GMT-0600 (Central Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 05 2024 17:19:06 GMT-0600 (Central Standard Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/harness.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="mock.cht-
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 05 2024 16:44:32 GMT-0600 (Central Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 05 2024 17:19:06 GMT-0600 (Central Standard Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="mock.cht-
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 05 2024 16:44:32 GMT-0600 (Central Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 05 2024 17:19:06 GMT-0600 (Central Standard Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/jsdocs.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="mock.cht-
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 05 2024 16:44:32 GMT-0600 (Central Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 05 2024 17:19:06 GMT-0600 (Central Standard Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/mock.cht-conf.module_contact-summary-lib.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="mock.cht-
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 05 2024 16:44:32 GMT-0600 (Central Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 05 2024 17:19:06 GMT-0600 (Central Standard Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/mock.cht-conf.module_nools-lib.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="mock.cht-
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 05 2024 16:44:32 GMT-0600 (Central Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 05 2024 17:19:06 GMT-0600 (Central Standard Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/mock.rules-engine.module_rules-emitter.html
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="mock.cht-
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 05 2024 16:44:32 GMT-0600 (Central Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 05 2024 17:19:06 GMT-0600 (Central Standard Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion docs/module-core-adapter.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="mock.cht-
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 05 2024 16:44:32 GMT-0600 (Central Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.6</a> on Fri Jan 05 2024 17:19:06 GMT-0600 (Central Standard Time)
</footer>

<script> prettyPrint(); </script>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"docs": "npx jsdoc src/*.js src/**/*.js ./JSDOC.md -d docs",
"explore": "node ./project-explorer/build-assets.js --path=./test/collateral/project-without-source --formPath=./test/collateral && cd project-explorer && webpack && google-chrome ./project-explorer.html",
"eslint": "npx eslint .",
"travis": "npm run build && npm run eslint && npm test"
"travis": "npm run docs && npm run eslint && ./build.sh --force && npm test"
},
"dependencies": {
"lodash": "^4.17.15",
Expand Down

0 comments on commit 96e77d0

Please sign in to comment.