diff --git a/.gitignore b/.gitignore index 454c8ee..ee6d682 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ server.py /workflows /spaß /node_modules +*.js diff --git a/package.json b/package.json index bedd8f4..7fc6820 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Visualiser for Uni2work workflows", "type": "module", "scripts": { - "start": "npx http-server --cors -o ./editor.html", + "start": "start.sh", "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..b46d552 --- /dev/null +++ b/start.sh @@ -0,0 +1,4 @@ +echo 'transpiling to JS...' +npx tsc +echo 'starting server...' +npx http-server --cors -o ./editor.html \ No newline at end of file