diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-08-01 00:47:02 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-08-01 01:06:27 +0200 |
commit | 80126c76f39d30917b94f24b97a8690681b815c0 (patch) | |
tree | bf60d7ea2de8be12e6ba67aa7b10db01f0e689ec /static/make-watch | |
parent | Static should create its own directories when installing. (diff) | |
download | calp-80126c76f39d30917b94f24b97a8690681b815c0.tar.gz calp-80126c76f39d30917b94f24b97a8690681b815c0.tar.xz |
Change JavaScript build system to esbuild.
Esbuild is way faster, and feels less hacky. One downside is that it
doesn't actually check Typescript types. However, typescript can still
be installed alongside, and has the fancy --noEmit flag for just this
situation.
Diffstat (limited to '')
-rwxr-xr-x | static/make-watch | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/static/make-watch b/static/make-watch index c985b37f..b328038a 100755 --- a/static/make-watch +++ b/static/make-watch @@ -8,15 +8,14 @@ cd "$here" || { export PATH="$here/node_modules/.bin:$PATH" -# Note that 'tsc --watch' doesn't provide the files we are using. It's -# just here for debug. if [ -n "$TMUX" ]; then tmux new-window "scss --watch -I. style.scss:style.css" tmux new-window "tsc --watch" else tmux \ new-session "scss --watch -I. style.scss:style.css" \; \ - split-window "tsc --watch" \; \ + split-window "tsc --watch --noEmit" \; \ + split-window "make watch-esbuild" \; \ rename-session "calp watch" \; \ select-layout even-vertical |