Switch build system to Vite (#1444)

Switch Parcel to Vite
This commit is contained in:
Matthew Donoughe
2023-11-05 03:12:03 -08:00
committed by GitHub
parent 09743dcdc4
commit f6d104265a
14 changed files with 959 additions and 4706 deletions
+6 -17
View File
@@ -5,18 +5,12 @@
"author": "Graphite Authors <contact@graphite.rs>",
"browserslist": "> 1.5%, last 2 versions, not dead, not ie 11, not op_mini all, not ios_saf < 13",
"type": "module",
"alias": {
"@graphite-frontend/*": "~/$1",
"@graphite/../assets/*": "~/assets/$1",
"@graphite/../public/*": "~/public/$1",
"@graphite/*": "~/src/$1"
},
"scripts": {
"start": "npm run build-wasm && concurrently -k \"parcel serve --no-cache index.html --port 8080\" \"npm run watch:wasm\" || (npm run print-building-help && exit 1)",
"start-profiling": "npm run build-wasm-profiling && concurrently -k \"parcel serve --no-cache index.html --port 8080\" \"npm run watch:wasm-profiling\" || (npm run print-building-help && exit 1)",
"build": "npm run build-wasm-prod && npm run build-licenses && parcel build index.html || (npm run print-building-help && exit 1)",
"start": "npm run build-wasm && concurrently -k vite \"npm run watch:wasm\" || (npm run print-building-help && exit 1)",
"start-profiling": "npm run build-wasm-profiling && concurrently -k vite \"npm run watch:wasm-profiling\" || (npm run print-building-help && exit 1)",
"build": "npm run build-wasm-prod && vite build && npm run build-licenses || (npm run print-building-help && exit 1)",
"build-licenses": "webpack build",
"tauri:dev": "echo 'Make sure you build the wasm binary for tauri using `npm run tauri:build-wasm`' && parcel serve --no-cache index.html --port 8080",
"tauri:dev": "echo 'Make sure you build the wasm binary for tauri using `npm run tauri:build-wasm`' && vite",
"build-wasm": "wasm-pack build ./wasm --dev --target=web",
"build-wasm-profiling": "wasm-pack build ./wasm --profiling --target=web",
"build-wasm-prod": "wasm-pack build ./wasm --release --target=web",
@@ -34,19 +28,13 @@
"reflect-metadata": "^0.1.13"
},
"devDependencies": {
"@parcel/config-default": "^2.9.3",
"@parcel/packager-raw-url": "^2.9.3",
"@parcel/optimizer-data-url": "^2.9.3",
"@parcel/transformer-inline-string": "^2.9.3",
"@parcel/transformer-webmanifest": "^2.9.3",
"@sveltejs/vite-plugin-svelte": "^2.4.2",
"@types/license-checker-webpack-plugin": "^0.2.1",
"@types/node": "^18.16.2",
"@types/webpack": "^5.28.1",
"buffer": "^5.7.1",
"concurrently": "^8.0.1",
"license-checker-webpack-plugin": "^0.2.1",
"parcel": "^2.9.3",
"parcel-transformer-svelte3-plus": "^0.2.9",
"postcss": "^8.4.23",
"process": "^0.11.10",
"sass": "^1.62.1",
@@ -54,6 +42,7 @@
"svelte-preprocess": "^5.0.3",
"ts-node": "^10.9.1",
"typescript": "^5.0.4",
"vite": "^4.4.5",
"webpack": "^5.81.0",
"webpack-cli": "^5.0.2"
},