chore: remove unused packages

This commit is contained in:
Tristan Yang
2023-08-01 21:12:22 +08:00
parent 5c7b4a22b0
commit 34dcb8d3af
7 changed files with 183 additions and 562 deletions
-2
View File
@@ -1,2 +0,0 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
-4
View File
@@ -1,4 +0,0 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npm run lint
+1 -4
View File
@@ -4,7 +4,6 @@ const fs = require("fs");
const path = require("path");
const paths = require("./paths");
const chalk = require("react-dev-utils/chalk");
const resolve = require("resolve");
/**
* Get additional module paths based on the baseUrl of a compilerOptions object.
@@ -87,9 +86,7 @@ function getModules() {
// TypeScript project and set up the config
// based on tsconfig.json
if (hasTsConfig) {
const ts = require(resolve.sync("typescript", {
basedir: paths.appNodeModules
}));
const ts = require("typescript");
config = ts.readConfigFile(paths.appTsConfig, ts.sys.readFile).config;
// Otherwise we'll check if there is jsconfig.json
// for non TS projects.
-1
View File
@@ -3,7 +3,6 @@
const fs = require("fs");
const path = require("path");
const webpack = require("webpack");
// const resolve = require("resolve");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const InlineChunkHtmlPlugin = require("react-dev-utils/InlineChunkHtmlPlugin");
const TerserPlugin = require("terser-webpack-plugin");
+3 -9
View File
@@ -14,13 +14,9 @@
"@toast-ui/editor": "^3.2.2",
"@toast-ui/editor-plugin-code-syntax-highlight": "^3.1.0",
"@toast-ui/react-editor": "^3.2.3",
"@types/node": "^20.4.5",
"@types/react": "^18.2.17",
"@types/react-dom": "^18.2.7",
"@udecode/plate": "16.8",
"@uiball/loaders": "^1.3.0",
"agora-rtc-sdk-ng": "^4.18.2",
"bfj": "^7.0.2",
"broadcast-channel": "^5.1.0",
"browserslist": "^4.21.10",
"clsx": "^2.0.0",
@@ -68,7 +64,6 @@
"react-use-wizard": "^2.2.3",
"react-viewport-list": "^7.1.1",
"react-virtuoso": "^4.4.2",
"resolve": "^1.22.3",
"rooks": "^7.14.1",
"slate": "^0.94.1",
"slate-history": "^0.93.0",
@@ -101,8 +96,6 @@
"build": "rm -rf build && REACT_APP_BUILD_TIME=$(date +%s) GENERATE_SOURCEMAP=false node scripts/build.js",
"build:release": "rm -rf build && REACT_APP_BUILD_TIME=$(date +%s) REACT_APP_RELEASE=true GENERATE_SOURCEMAP=false node scripts/build.js",
"deploy:demo": "REACT_APP_OFFICIAL_DEMO=true yarn build && gh-pages -d build",
"lint": "lint-staged",
"prepare": "husky install",
"postinstall": "patch-package"
},
"browserslist": {
@@ -129,6 +122,9 @@
"@types/emoji-mart": "^3.0.9",
"@types/masonry-layout": "^4.2.5",
"@types/react-helmet": "^6.1.6",
"@types/node": "^20.4.5",
"@types/react": "^18.2.17",
"@types/react-dom": "^18.2.7",
"@types/react-syntax-highlighter": "^15.5.7",
"@typescript-eslint/eslint-plugin": "^6.2.0",
"@typescript-eslint/parser": "^6.2.0",
@@ -143,8 +139,6 @@
"eslint-plugin-react": "^7.33.1",
"eslint-plugin-react-hooks": "^4.6.0",
"gh-pages": "^5.0.0",
"husky": "^8.0.3",
"lint-staged": "^13.2.3",
"md5-file": "^5.0.0",
"patch-package": "^8.0.0",
"postcss": "^8.4.27",
-8
View File
@@ -17,7 +17,6 @@ const md5File = require("md5-file");
const path = require("path");
const chalk = require("react-dev-utils/chalk");
const fs = require("fs-extra");
const bfj = require("bfj");
const webpack = require("webpack");
const configFactory = require("../config/webpack.config");
const paths = require("../config/paths");
@@ -182,13 +181,6 @@ function build(previousFileSizes) {
warnings: messages.warnings
};
if (writeStatsJson) {
return bfj
.write(paths.appBuild + "/bundle-stats.json", stats.toJson())
.then(() => resolve(resolveArgs))
.catch((error) => reject(new Error(error)));
}
return resolve(resolveArgs);
});
});
+179 -534
View File
File diff suppressed because it is too large Load Diff