diff options
| author | Joris Guyonvarch | 2025-12-26 18:41:26 +0100 |
|---|---|---|
| committer | Joris Guyonvarch | 2025-12-27 20:41:44 +0100 |
| commit | a110c200e86d2325af07167531fac0f61d9681a0 (patch) | |
| tree | 90e843f915a2e153ba735849afd83710d90560bf /bin/dev-server | |
| parent | a26d92ad5055fa057647158eb79511e7b1841162 (diff) | |
Switch to GUI to manage the library
Allow to regroup the CLI and the view into one unique tool.
Diffstat (limited to 'bin/dev-server')
| -rwxr-xr-x | bin/dev-server | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/bin/dev-server b/bin/dev-server deleted file mode 100755 index 7351209..0000000 --- a/bin/dev-server +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash -set -euo pipefail -cd $(dirname "$0")/.. - -if [ "$#" == 1 ]; then - BOOKS_LIBRARY="$1" -else - echo "usage: $0 path-to-book-directory" - exit 1 -fi - -# Watch books - -BUILD_BOOKS_CMD="echo \"const bookLibrary=\" > library/public/books.js && ./books library >> library/public/books.js && echo library/public/books.js updated." -watchexec \ - --watch "$BOOKS_LIBRARY" \ - -- "$BUILD_BOOKS_CMD" & - -# Watch TypeScript - -cd library -CHECK="echo -e 'Checking TypeScript…\n' && tsc --checkJs" -BUILD="esbuild --bundle main.ts --target=es2017 --outdir=public" -SHOW="echo -e '\nOpen $PWD/public/index.html'" -watchexec \ - --clear \ - --watch client \ - -- "$CHECK && $BUILD && $SHOW" |
