Skip to content

Commit

Permalink
feat: replace rollup with vite
Browse files Browse the repository at this point in the history
  • Loading branch information
kuoruan committed Dec 25, 2023
1 parent 85293ff commit 98828d8
Show file tree
Hide file tree
Showing 12 changed files with 2,073 additions and 4,595 deletions.
4 changes: 0 additions & 4 deletions .browserslistrc

This file was deleted.

File renamed without changes.
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
registry = https://registry.npmmirror.com/

7 changes: 0 additions & 7 deletions .postcssrc.js

This file was deleted.

14 changes: 0 additions & 14 deletions babel.config.js

This file was deleted.

43 changes: 14 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
"version": "1.3.5",
"description": "A userscript for share.dmhy.org.",
"private": true,
"type": "module",
"scripts": {
"serve": "rollup -cw --environment NODE_ENV:development",
"build": "rollup -c --environment NODE_ENV:production"
"serve": "vite",
"build": "vite build"
},
"repository": {
"type": "git",
Expand All @@ -18,36 +19,20 @@
},
"homepage": "https://github.com/kuoruan/dmhy-download-helper#readme",
"dependencies": {
"vue": "^2.6.12",
"vue": "^2.7.16",
"xbytes": "^1.7.0"
},
"devDependencies": {
"@babel/core": "^7.14.0",
"@babel/preset-env": "^7.14.1",
"@rollup/plugin-alias": "^3.1.2",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^18.1.0",
"@rollup/plugin-eslint": "^8.0.1",
"@rollup/plugin-node-resolve": "^13.0.0",
"@rollup/plugin-url": "^6.0.0",
"@vue/eslint-config-prettier": "^6.0.0",
"autoprefixer": "^9.8.6",
"chalk": "^4.1.1",
"cssnano": "^4.1.10",
"eslint": "^7.25.0",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-vue": "^7.6.0",
"postcss": "^8.4.31",
"postcss-url": "^9.0.0",
"prettier": "^2.2.1",
"@vitejs/plugin-vue2": "^2.3.1",
"@vue/eslint-config-prettier": "^8.0.0",
"chalk": "^5.3.0",
"eslint": "^8.56.0",
"eslint-plugin-prettier": "^5.1.2",
"eslint-plugin-vue": "^9.19.2",
"prettier": "^3.1.1",
"pug": "^3.0.2",
"rollup": "^2.47.0",
"rollup-plugin-postcss": "^3.1.8",
"rollup-plugin-serve": "^1.1.0",
"rollup-plugin-stylus-compiler": "^1.0.1",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-vue": "^5.1.9",
"stylus": "^0.54.8",
"vue-template-compiler": "^2.6.12"
"stylus": "^0.62.0",
"vite": "^5.0.10",
"vite-plugin-banner": "^0.7.1"
}
}
Loading

0 comments on commit 98828d8

Please sign in to comment.