Skip to content

Commit 3b56634

Browse files
committed
Replace Parcel to Vite
1 parent 55a935a commit 3b56634

File tree

7 files changed

+2089
-5119
lines changed

7 files changed

+2089
-5119
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
node_modules/
22

33
coverage/
4-
5-
test/demo/build
6-
.parcel-cache

.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ tsconfig.json
33
coverage/
44

55
img/
6-
.parcel-cache

package.json

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
],
1111
"scripts": {
1212
"test": "jest --coverage && eslint . && check-dts && size-limit",
13-
"start": "parcel test/demo/index.html --dist-dir test/demo/build --open"
13+
"start": "vite test/demo/ --open"
1414
},
1515
"engines": {
1616
"node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
@@ -33,15 +33,7 @@
3333
"@babel/core": "^7.16.7",
3434
"@logux/eslint-config": "^46.1.1",
3535
"@lukeed/uuid": "^2.0.0",
36-
"@parcel/core": "^2.1.1",
37-
"@parcel/optimizer-cssnano": "^2.1.1",
38-
"@parcel/optimizer-htmlnano": "^2.1.1",
39-
"@parcel/packager-css": "^2.1.1",
40-
"@parcel/packager-html": "^2.1.1",
41-
"@parcel/transformer-css": "^2.1.1",
42-
"@parcel/transformer-html": "^2.1.1",
43-
"@parcel/transformer-postcss": "^2.1.1",
44-
"@parcel/transformer-posthtml": "^2.1.1",
36+
"@originjs/vite-plugin-commonjs": "^1.0.2",
4537
"@size-limit/dual-publish": "^7.0.5",
4638
"@size-limit/file": "^7.0.5",
4739
"@size-limit/webpack": "^7.0.5",
@@ -58,7 +50,6 @@
5850
"eslint-plugin-prefer-let": "^3.0.1",
5951
"eslint-plugin-promise": "^6.0.0",
6052
"jest": "^27.4.7",
61-
"parcel": "^2.1.1",
6253
"picocolors": "^1.0.0",
6354
"postcss": "^8.4.5",
6455
"rndm": "^1.2.0",
@@ -69,7 +60,8 @@
6960
"typescript": "^4.5.4",
7061
"uid": "^2.0.0",
7162
"uid-safe": "^2.1.5",
72-
"uuid": "^8.3.2"
63+
"uuid": "^8.3.2",
64+
"vite": "^2.7.10"
7365
},
7466
"size-limit": [
7567
{

0 commit comments

Comments
 (0)