From 71b2ccbe76f981777aa360667cad7327d07331d7 Mon Sep 17 00:00:00 2001 From: Chris Wilkinson Date: Mon, 4 Dec 2023 19:38:22 +0000 Subject: [PATCH] Build the app for deployment --- .eslintignore | 1 + .gitignore | 1 + .prettierignore | 1 + Makefile | 5 ++++- tsconfig.build.json | 8 ++++++++ 5 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 tsconfig.build.json diff --git a/.eslintignore b/.eslintignore index e69de29..178135c 100644 --- a/.eslintignore +++ b/.eslintignore @@ -0,0 +1 @@ +/dist/ diff --git a/.gitignore b/.gitignore index 66ee735..bf2b2e0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ +/dist/ /node_modules/ /.env diff --git a/.prettierignore b/.prettierignore index e69de29..178135c 100644 --- a/.prettierignore +++ b/.prettierignore @@ -0,0 +1 @@ +/dist/ diff --git a/Makefile b/Makefile index b8a9623..1e3a9d4 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,12 @@ -.PHONY: check fix format lint start typecheck +.PHONY: build check fix format lint start typecheck node_modules: package.json package-lock.json npm install touch node_modules +build: node_modules + npx tsc --project tsconfig.build.json + check: format lint typecheck fix: node_modules diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 0000000..1fd2d16 --- /dev/null +++ b/tsconfig.build.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "sourceMap": true, + "outDir": "dist" + }, + "include": ["src"] +}