Skip to content

Commit

Permalink
feat(bindgen): do not place vite.config.js in build/
Browse files Browse the repository at this point in the history
Move to typescript top level.
  • Loading branch information
thewtex committed Nov 26, 2023
1 parent 4266390 commit b977840
Show file tree
Hide file tree
Showing 6 changed files with 1,170 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/mesh-io/typescript/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
demo-app/
4 changes: 2 additions & 2 deletions packages/mesh-io/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
}
},
"scripts": {
"start": "npm run copyShoelaceAssets && vite -c build/vite.config.js",
"start": "npm run copyShoelaceAssets && vite",
"test": "echo \"Error: no test specified\" && exit 1",
"build": "npm run build:tsc && npm run build:browser:workerEmbedded && npm run build:browser:workerEmbeddedMin && npm run build:demo",
"build:browser:workerEmbedded": "esbuild --loader:.worker.js=dataurl --bundle --format=esm --outfile=./dist/bundle/index-worker-embedded.js ./src/index-worker-embedded.ts",
"build:browser:workerEmbeddedMin": "esbuild --minify --loader:.worker.js=dataurl --bundle --format=esm --outfile=./dist/bundle/index-worker-embedded.min.js ./src/index-worker-embedded.min.ts",
"build:tsc": "tsc --pretty",
"copyShoelaceAssets": "shx mkdir -p test/browser/demo-app/public && shx cp -r node_modules/@shoelace-style/shoelace/dist/assets test/browser/demo-app/public/",
"build:demo": "npm run copyShoelaceAssets && vite -c build/vite.config.js build"
"build:demo": "npm run copyShoelaceAssets && vite build"
},
"keywords": [
"itk",
Expand Down
Loading

0 comments on commit b977840

Please sign in to comment.