Add build script
This commit is contained in:
parent
b996d3c3f4
commit
9b566d7cb3
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
node_modules
|
node_modules
|
||||||
public/scripts
|
public/scripts
|
||||||
|
dist
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"description": "A demo of an implementation of an animated list in React Typescript.",
|
"description": "A demo of an implementation of an animated list in React Typescript.",
|
||||||
"main": "index.tsx",
|
"main": "index.tsx",
|
||||||
"scripts": {
|
"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",
|
"dev": "esbuild index.tsx --bundle --watch --serve --outdir=./public/scripts --servedir=./public",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user