Build with Vite (#308)

This commit is contained in:
Luyu Cheng
2023-02-09 15:53:53 +08:00
committed by GitHub
parent 11e338c873
commit b6b2becbda
35 changed files with 2370 additions and 9255 deletions

View File

@@ -4,7 +4,6 @@
"private": true,
"homepage": ".",
"dependencies": {
"@craco/craco": "^6.0.0",
"@floating-ui/react": "^0.19.1",
"@fortawesome/fontawesome-svg-core": "^6.1.1",
"@fortawesome/free-brands-svg-icons": "^6.1.1",
@@ -19,28 +18,27 @@
"@types/howler": "^2.2.3",
"@types/jest": "^26.0.15",
"@types/lodash": "^4.14.168",
"@types/node": "^12.0.0",
"@types/node": "16",
"@types/react": "^16.9.53",
"@types/react-dom": "^16.9.8",
"autoprefixer": "^9",
"autoprefixer": "^10.4.13",
"classnames": "^2.3.2",
"eslint": "^7.18.0",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-react": "^7.22.0",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"howler": "^2.2.3",
"husky": "^4.3.8",
"lint-staged": "^10.5.3",
"lodash": "^4.17.20",
"postcss": "^7",
"postcss": "^8.4.21",
"prettier": "^2.2.1",
"react": "^17.0.1",
"react-app-polyfill": "^2.0.0",
"react-dom": "^17.0.1",
"react-hotkeys-hook": "^3.0.3",
"react-router-dom": "^5.2.0",
"react-scripts": "4.0.1",
"react-timer-hook": "^2.0.7",
"react-use": "^17.1.0",
"source-map-explorer": "^2.5.2",
@@ -50,11 +48,11 @@
"web-vitals": "^0.2.4"
},
"scripts": {
"start": "craco start",
"build": "cross-env CI=false craco build",
"test": "craco test",
"dev": "vite",
"start": "vite",
"build": "cross-env CI=false vite build",
"test": "echo \"No tests\"",
"lint": "eslint .",
"eject": "react-scripts eject",
"analyze": "source-map-explorer 'build/static/js/*.js'"
},
"eslintConfig": {
@@ -107,7 +105,11 @@
},
"devDependencies": {
"@types/react-router-dom": "^5.1.7",
"@vitejs/plugin-react": "^3.1.0",
"cross-env": "^7.0.3",
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.17"
"eslint-config-react-app": "^7.0.1",
"tailwindcss": "^3.2.6",
"vite": "^4.1.1",
"vite-plugin-svgr": "^2.4.0"
}
}