Replace Webpack with Vite (#4765)

Co-authored-by: Tom Moor <tom@getoutline.com>
Co-authored-by: Vio <vio@beanon.com>
This commit is contained in:
Hans Pagel
2023-02-16 04:39:46 +01:00
committed by GitHub
parent 490d05b68b
commit e754f89e5c
40 changed files with 1646 additions and 3565 deletions

View File

@@ -8,14 +8,14 @@
"copy:i18n": "mkdir -p ./build/shared/i18n && cp -R ./shared/i18n/locales ./build/shared/i18n",
"build:i18n": "i18next --silent '{shared,app,server,plugins}/**/*.{ts,tsx}' && yarn copy:i18n",
"build:server": "./build.sh",
"build:webpack": "webpack --config webpack.config.prod.js",
"build": "yarn clean && yarn build:webpack && yarn build:i18n && yarn build:server",
"build": "yarn clean && yarn vite:build && yarn build:i18n && yarn build:server",
"start": "node ./build/server/index.js",
"dev": "NODE_ENV=development yarn concurrently -n api,collaboration -c \"blue,magenta\" \"node --inspect=0.0.0.0 build/server/index.js --services=collaboration,websockets,admin,web,worker\"",
"dev:watch": "nodemon --exec \"yarn build:server && yarn dev\" -e js,ts,tsx --ignore build/ --ignore app/ --ignore shared/editor",
"dev:backend": "nodemon --exec \"yarn build:server && yarn dev\" -e js,ts,tsx --ignore build/ --ignore app/ --ignore shared/editor",
"dev:watch": "yarn concurrently -n backend,frontend \"yarn dev:backend\" \"yarn vite:dev\"",
"lint": "eslint app server shared plugins",
"prepare": "husky install",
"postinstall": "rimraf node_modules/prosemirror-view/dist/index.d.ts",
"postinstall": "rimraf node_modules/prosemirror-view/dist/index.d.ts && patch-package",
"heroku-postbuild": "yarn build && yarn db:migrate",
"db:create-migration": "sequelize migration:create",
"db:create": "sequelize db:create",
@@ -26,7 +26,10 @@
"test": "jest --config=.jestconfig.json --forceExit",
"test:app": "jest --config=.jestconfig.json --selectProjects app",
"test:shared": "jest --config=.jestconfig.json --selectProjects shared-node shared-jsdom",
"test:server": "jest --config=.jestconfig.json --selectProjects server"
"test:server": "jest --config=.jestconfig.json --selectProjects server",
"vite:dev": "vite",
"vite:build": "vite build",
"vite:preview": "vite preview"
},
"funding": {
"type": "GitHub Sponsors ❤",
@@ -69,6 +72,7 @@
"@tippyjs/react": "^4.2.6",
"@tommoor/remove-markdown": "^0.3.2",
"@types/mermaid": "^9.1.0",
"@vitejs/plugin-react": "^3.0.0",
"autotrack": "^2.4.1",
"aws-sdk": "^2.1290.0",
"babel-plugin-lodash": "^3.3.4",
@@ -218,6 +222,8 @@
"utility-types": "^3.10.0",
"uuid": "^8.3.2",
"validator": "13.7.0",
"vite": "^4.1.1",
"vite-plugin-pwa": "^0.14.4",
"winston": "^3.3.3",
"ws": "^7.5.3",
"y-indexeddb": "^9.0.9",
@@ -229,7 +235,6 @@
"@babel/cli": "^7.10.5",
"@babel/preset-typescript": "^7.18.6",
"@getoutline/jest-runner-serial": "^2.0.0",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
"@relative-ci/agent": "^3.0.0",
"@types/body-scroll-lock": "^3.1.0",
"@types/crypto-js": "^4.1.1",
@@ -309,6 +314,7 @@
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
"babel-plugin-transform-typescript-metadata": "^0.3.2",
"babel-plugin-tsconfig-paths-module-resolver": "^1.0.3",
"browserslist-to-esbuild": "^1.2.0",
"concurrently": "^7.4.0",
"css-loader": "5.2.6",
"enzyme": "^3.11.0",
@@ -324,28 +330,24 @@
"eslint-plugin-react": "^7.20.0",
"eslint-plugin-react-hooks": "^4.1.0",
"fetch-test-server": "^1.1.0",
"html-webpack-plugin": "4.5.2",
"husky": "^8.0.2",
"i18next-parser": "^7.1.0",
"jest-cli": "^29.4.1",
"jest-environment-jsdom": "^28.1.3",
"jest-fetch-mock": "^3.0.3",
"koa-webpack-dev-middleware": "^1.4.5",
"koa-webpack-hot-middleware": "^1.0.3",
"lint-staged": "^13.1.0",
"nodemon": "^2.0.20",
"patch-package": "^6.5.1",
"postinstall-postinstall": "^2.1.0",
"prettier": "^2.0.5",
"react-refresh": "^0.14.0",
"rimraf": "^2.5.4",
"rollup-plugin-webpack-stats": "^0.2.0",
"style-loader": "2.0.0",
"terser-webpack-plugin": "^4.1.0",
"terser": "^5.16.3",
"typescript": "^4.7.4",
"url-loader": "^4.1.1",
"webpack": "4.46.0",
"webpack-cli": "^4.10.0",
"webpack-manifest-plugin": "^3.0.0",
"webpack-pwa-manifest": "^4.3.0",
"workbox-webpack-plugin": "^6.5.3",
"vite-plugin-static-copy": "^0.13.0",
"yarn-deduplicate": "^6.0.1"
},
"resolutions": {
@@ -356,7 +358,8 @@
"dot-prop": "^5.2.0",
"js-yaml": "^3.14.1",
"jpeg-js": "0.4.4",
"qs": "6.9.7"
"qs": "6.9.7",
"rollup": "^3.14.0"
},
"version": "0.67.2"
}