Skip to content

Commit

Permalink
package nicer
Browse files Browse the repository at this point in the history
  • Loading branch information
ShawSumma committed Mar 26, 2024
1 parent 5ff7505 commit 01e9fd8
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 8 deletions.
11 changes: 10 additions & 1 deletion web/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@

# eew
node_modules

# too big, don't care
package-lock.json

# vite stuff
public
.vite

# attempts to build llvm
emception
node_modules
llvm-project
15 changes: 13 additions & 2 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,27 @@
"@sveltejs/vite-plugin-svelte": "^3.0.2",
"@xterm/addon-fit": "^0.9.0",
"@xterm/xterm": "^5.4.0",
"concurrently": "^8.2.2",
"emception": "^1.0.15",
"nodemon": "^3.1.0",
"svelte": "^4.2.12",
"vite": "^5.2.6",
"vite-plugin-top-level-await": "^1.4.1",
"vite-plugin-wasm": "^3.3.0",
"xterm-pty": "^0.10.1"
},
"scripts": {
"build": "npx webpack",
"serve": "webpack serve"
"watch": "concurrently -n make,vite,server 'npm run make:watch' 'npm run vite:watch' 'npm run serve'",
"serve": "python3 server.py",

"build": "npm run make && npm run vite",
"build:watch": "concurrently -n make,vite 'npm run make:watch' 'npm run vite:watch'",

"make:watch": "npx nodemon --watch ../vm --watch ../vendor --watch ../main --ext '*' --exec 'npm run make'",
"make": "make -C .. -f web.mak -Bj",

"vite:watch": "npx vite build --watch",
"vite": "npx vite build"
},
"type": "module"
}
10 changes: 5 additions & 5 deletions web/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineConfig } from "vite";
import { svelte } from "@sveltejs/vite-plugin-svelte";
import wasm from "vite-plugin-wasm";
import topLevelAwait from "vite-plugin-top-level-await";
import { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';
import wasm from 'vite-plugin-wasm';
import topLevelAwait from 'vite-plugin-top-level-await';

// https://vitejs.dev/config/
export default defineConfig({
Expand All @@ -18,7 +18,7 @@ export default defineConfig({
outDir: 'public',
rollupOptions: {
output: {
format: "es",
format: 'es',
},
},
},
Expand Down

0 comments on commit 01e9fd8

Please sign in to comment.