Add build script

This commit is contained in:
Matthew Cardarelli 2024-08-06 17:20:04 -07:00
parent b996d3c3f4
commit 9b566d7cb3
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
node_modules
public/scripts
dist

View File

@ -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"
},