transpiling before starting the server

This commit is contained in:
David Mosbach 2023-08-16 00:21:38 +02:00
parent 5527be6ad8
commit 8402234743
3 changed files with 6 additions and 1 deletions

1
.gitignore vendored
View File

@ -9,3 +9,4 @@ server.py
/workflows /workflows
/spaß /spaß
/node_modules /node_modules
*.js

View File

@ -4,7 +4,7 @@
"description": "Visualiser for Uni2work workflows", "description": "Visualiser for Uni2work workflows",
"type": "module", "type": "module",
"scripts": { "scripts": {
"start": "npx http-server --cors -o ./editor.html", "start": "start.sh",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"repository": { "repository": {

4
start.sh Normal file
View File

@ -0,0 +1,4 @@
echo 'transpiling to JS...'
npx tsc
echo 'starting server...'
npx http-server --cors -o ./editor.html