From 28010a8cc9f16d722229eb08b421543a68082766 Mon Sep 17 00:00:00 2001 From: "Felix W. Dekker" Date: Mon, 21 Oct 2019 00:38:53 +0200 Subject: [PATCH] Add build script --- build.sh | 15 +++++++++++++++ index.html | 10 +++++----- tsconfig.json | 11 ++++++++--- 3 files changed, 28 insertions(+), 8 deletions(-) create mode 100644 build.sh diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..8e93d8e --- /dev/null +++ b/build.sh @@ -0,0 +1,15 @@ +#!/usr/local/bin/bash +mkdir -p build +mkdir -p build/js +mkdir -p build/css + +jsc -p ./tsconfig.json + +cp ./*.html ./build/ +cp ./css/*.css ./build/css +cp ./favicon.ico ./build/favicon.ico +cp ./favicon.png ./build/favicon.png + +if [ "$1" ]; then + cp -r ./build/ "$1" +fi diff --git a/index.html b/index.html index 0bf37f9..8842d73 100644 --- a/index.html +++ b/index.html @@ -27,10 +27,10 @@ - - - - - + + + + + diff --git a/tsconfig.json b/tsconfig.json index 05c5fd0..fd7f614 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,9 +3,14 @@ "module": "esnext", "target": "es2019", "sourceMap": true, - "outDir": "./build" + "outDir": "./build/js" }, - "include": [ - "**/*" + "files": [ + "js/commands.ts", + "js/extensions.d.ts", + "js/extensions.ts", + "js/fs.ts", + "js/shared.ts", + "js/terminal.ts" ] }