Slightly nicer dev compilation watch automation

This commit is contained in:
Tony Garnock-Jones 2024-04-17 14:59:39 +02:00
parent e3d419deab
commit 221208dbbd
3 changed files with 11 additions and 2 deletions

View File

@ -1,5 +1,9 @@
#!/bin/sh
set -e
cd "$(dirname "$0")"
M=../../node_modules
cat \
@ -39,3 +43,5 @@ cp \
$M/@syndicate-lang/ws-relay/dist/syndicate-ws-relay.min.js.map \
$M/@syndicate-lang/compiler/dist/syndicate-compiler.min.js.map \
.
echo $(date) $(pwd) 'build complete.'

View File

@ -15,6 +15,7 @@
"author": "Tony Garnock-Jones <tonyg@leastfixedpoint.com>",
"scripts": {
"prepare": "./build-aggregate.sh",
"prepare:watch": "cd ..; exec inotifytest browser-stdenv/build-aggregate.sh",
"clean": "rm -rf index.js index.min.js *.js.map",
"veryclean": "yarn run clean && rm -rf node_modules"
},

View File

@ -16,12 +16,14 @@ open() {
for d in packages/*/tsconfig.json
do
open "cd $(dirname $d); yarn compile:watch"
open "cd $(dirname $d); exec yarn compile:watch"
done
for d in packages/*/rollup.config.js
do
open "cd $(dirname $d); yarn rollup:watch"
open "cd $(dirname $d); exec yarn rollup:watch"
done
open "cd packages/browser-stdenv; exec yarn prepare:watch"
tmux select-layout even-vertical