From 9b566d7cb3fc67cc753836bd615779302f11e403 Mon Sep 17 00:00:00 2001 From: Matthew Cardarelli Date: Tue, 6 Aug 2024 17:20:04 -0700 Subject: [PATCH] Add build script --- .gitignore | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 48d3b1f..f5ebb39 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules public/scripts +dist diff --git a/package.json b/package.json index fdf8e32..75152a9 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "A demo of an implementation of an animated list in React Typescript.", "main": "index.tsx", "scripts": { - "build": "esbuild index.tsx --bundle", + "build": "esbuild index.tsx --bundle --sourcemap --outfile=./dist/demo-react-animated-list.js", "dev": "esbuild index.tsx --bundle --watch --serve --outdir=./public/scripts --servedir=./public", "test": "echo \"Error: no test specified\" && exit 1" },