chore: remove unused packages
This commit is contained in:
@@ -1,2 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
. "$(dirname "$0")/_/husky.sh"
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
. "$(dirname "$0")/_/husky.sh"
|
|
||||||
|
|
||||||
npm run lint
|
|
||||||
+1
-4
@@ -4,7 +4,6 @@ const fs = require("fs");
|
|||||||
const path = require("path");
|
const path = require("path");
|
||||||
const paths = require("./paths");
|
const paths = require("./paths");
|
||||||
const chalk = require("react-dev-utils/chalk");
|
const chalk = require("react-dev-utils/chalk");
|
||||||
const resolve = require("resolve");
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get additional module paths based on the baseUrl of a compilerOptions object.
|
* 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
|
// TypeScript project and set up the config
|
||||||
// based on tsconfig.json
|
// based on tsconfig.json
|
||||||
if (hasTsConfig) {
|
if (hasTsConfig) {
|
||||||
const ts = require(resolve.sync("typescript", {
|
const ts = require("typescript");
|
||||||
basedir: paths.appNodeModules
|
|
||||||
}));
|
|
||||||
config = ts.readConfigFile(paths.appTsConfig, ts.sys.readFile).config;
|
config = ts.readConfigFile(paths.appTsConfig, ts.sys.readFile).config;
|
||||||
// Otherwise we'll check if there is jsconfig.json
|
// Otherwise we'll check if there is jsconfig.json
|
||||||
// for non TS projects.
|
// for non TS projects.
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
const webpack = require("webpack");
|
const webpack = require("webpack");
|
||||||
// const resolve = require("resolve");
|
|
||||||
const HtmlWebpackPlugin = require("html-webpack-plugin");
|
const HtmlWebpackPlugin = require("html-webpack-plugin");
|
||||||
const InlineChunkHtmlPlugin = require("react-dev-utils/InlineChunkHtmlPlugin");
|
const InlineChunkHtmlPlugin = require("react-dev-utils/InlineChunkHtmlPlugin");
|
||||||
const TerserPlugin = require("terser-webpack-plugin");
|
const TerserPlugin = require("terser-webpack-plugin");
|
||||||
|
|||||||
+3
-9
@@ -14,13 +14,9 @@
|
|||||||
"@toast-ui/editor": "^3.2.2",
|
"@toast-ui/editor": "^3.2.2",
|
||||||
"@toast-ui/editor-plugin-code-syntax-highlight": "^3.1.0",
|
"@toast-ui/editor-plugin-code-syntax-highlight": "^3.1.0",
|
||||||
"@toast-ui/react-editor": "^3.2.3",
|
"@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",
|
"@udecode/plate": "16.8",
|
||||||
"@uiball/loaders": "^1.3.0",
|
"@uiball/loaders": "^1.3.0",
|
||||||
"agora-rtc-sdk-ng": "^4.18.2",
|
"agora-rtc-sdk-ng": "^4.18.2",
|
||||||
"bfj": "^7.0.2",
|
|
||||||
"broadcast-channel": "^5.1.0",
|
"broadcast-channel": "^5.1.0",
|
||||||
"browserslist": "^4.21.10",
|
"browserslist": "^4.21.10",
|
||||||
"clsx": "^2.0.0",
|
"clsx": "^2.0.0",
|
||||||
@@ -68,7 +64,6 @@
|
|||||||
"react-use-wizard": "^2.2.3",
|
"react-use-wizard": "^2.2.3",
|
||||||
"react-viewport-list": "^7.1.1",
|
"react-viewport-list": "^7.1.1",
|
||||||
"react-virtuoso": "^4.4.2",
|
"react-virtuoso": "^4.4.2",
|
||||||
"resolve": "^1.22.3",
|
|
||||||
"rooks": "^7.14.1",
|
"rooks": "^7.14.1",
|
||||||
"slate": "^0.94.1",
|
"slate": "^0.94.1",
|
||||||
"slate-history": "^0.93.0",
|
"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": "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",
|
"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",
|
"deploy:demo": "REACT_APP_OFFICIAL_DEMO=true yarn build && gh-pages -d build",
|
||||||
"lint": "lint-staged",
|
|
||||||
"prepare": "husky install",
|
|
||||||
"postinstall": "patch-package"
|
"postinstall": "patch-package"
|
||||||
},
|
},
|
||||||
"browserslist": {
|
"browserslist": {
|
||||||
@@ -129,6 +122,9 @@
|
|||||||
"@types/emoji-mart": "^3.0.9",
|
"@types/emoji-mart": "^3.0.9",
|
||||||
"@types/masonry-layout": "^4.2.5",
|
"@types/masonry-layout": "^4.2.5",
|
||||||
"@types/react-helmet": "^6.1.6",
|
"@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",
|
"@types/react-syntax-highlighter": "^15.5.7",
|
||||||
"@typescript-eslint/eslint-plugin": "^6.2.0",
|
"@typescript-eslint/eslint-plugin": "^6.2.0",
|
||||||
"@typescript-eslint/parser": "^6.2.0",
|
"@typescript-eslint/parser": "^6.2.0",
|
||||||
@@ -143,8 +139,6 @@
|
|||||||
"eslint-plugin-react": "^7.33.1",
|
"eslint-plugin-react": "^7.33.1",
|
||||||
"eslint-plugin-react-hooks": "^4.6.0",
|
"eslint-plugin-react-hooks": "^4.6.0",
|
||||||
"gh-pages": "^5.0.0",
|
"gh-pages": "^5.0.0",
|
||||||
"husky": "^8.0.3",
|
|
||||||
"lint-staged": "^13.2.3",
|
|
||||||
"md5-file": "^5.0.0",
|
"md5-file": "^5.0.0",
|
||||||
"patch-package": "^8.0.0",
|
"patch-package": "^8.0.0",
|
||||||
"postcss": "^8.4.27",
|
"postcss": "^8.4.27",
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ const md5File = require("md5-file");
|
|||||||
const path = require("path");
|
const path = require("path");
|
||||||
const chalk = require("react-dev-utils/chalk");
|
const chalk = require("react-dev-utils/chalk");
|
||||||
const fs = require("fs-extra");
|
const fs = require("fs-extra");
|
||||||
const bfj = require("bfj");
|
|
||||||
const webpack = require("webpack");
|
const webpack = require("webpack");
|
||||||
const configFactory = require("../config/webpack.config");
|
const configFactory = require("../config/webpack.config");
|
||||||
const paths = require("../config/paths");
|
const paths = require("../config/paths");
|
||||||
@@ -182,13 +181,6 @@ function build(previousFileSizes) {
|
|||||||
warnings: messages.warnings
|
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);
|
return resolve(resolveArgs);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user