Skip to content

Commit bf8256b

Browse files
fix(kleros-app): move-bundler-to-parcel
1 parent 64da137 commit bf8256b

File tree

5 files changed

+1710
-417
lines changed

5 files changed

+1710
-417
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -202,3 +202,6 @@ subgraph/*/contracts/*
202202

203203
# Local Netlify folder
204204
.netlify
205+
206+
# parcel cache
207+
.parcel-cache

kleros-app/package.json

+5-7
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
"tag": "latest"
2222
},
2323
"scripts": {
24-
"clean": "rimraf dist",
24+
"clean": "rimraf dist && rimraf ../.parcel-cache",
2525
"check-style": "eslint 'src/**/*.{ts,tsx}'",
2626
"check-types": "tsc --noEmit",
27-
"start": "vite dev src/",
28-
"build": "yarn clean && vite build",
27+
"start": "parcel src/index.html",
28+
"build": "yarn clean && parcel build",
2929
"release:patch": "scripts/publish.sh patch",
3030
"release:minor": "scripts/publish.sh minor",
3131
"release:major": "scripts/publish.sh major"
@@ -45,11 +45,9 @@
4545
"eslint-config-prettier": "^9.1.0",
4646
"eslint-plugin-import": "^2.31.0",
4747
"globals": "^15.12.0",
48+
"parcel": "^2.13.2",
4849
"rimraf": "^6.0.1",
49-
"typescript": "^5.6.3",
50-
"vite": "^5.4.11",
51-
"vite-plugin-dts": "^4.3.0",
52-
"vite-plugin-node-polyfills": "^0.22.0"
50+
"typescript": "^5.6.3"
5351
},
5452
"dependencies": {
5553
"jose": "^5.9.6"

kleros-app/vite.config.js

-38
This file was deleted.

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
"devDependencies": {
3737
"@commitlint/cli": "^17.8.1",
3838
"@commitlint/config-conventional": "^17.8.1",
39+
"@parcel/packager-ts": "2.13.2",
40+
"@parcel/transformer-typescript-types": "2.13.2",
3941
"assert": "^2.1.0",
4042
"buffer": "^5.7.1",
4143
"conventional-changelog-cli": "^2.2.2",
@@ -45,7 +47,8 @@
4547
"os-browserify": "^0.3.0",
4648
"path-browserify": "^1.0.1",
4749
"process": "^0.11.10",
48-
"string_decoder": "^1.3.0"
50+
"string_decoder": "^1.3.0",
51+
"typescript": "^5.7.2"
4952
},
5053
"resolutions": {
5154
"async@npm^2.4.0": "^2.6.4",

0 commit comments

Comments
 (0)