From 18b4c1d3df8bb1785215a167e35a987f885c4dc4 Mon Sep 17 00:00:00 2001 From: Kwan Rimorin John Eric Date: Tue, 12 Sep 2023 00:04:01 +0800 Subject: [PATCH] build: more build tools --- package-lock.json | 70 +++++++++++++++++++++++++++++++++++++++++++++++ package.json | 2 ++ vite.config.js | 6 +++- 3 files changed, 77 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index a66bf2b1..577fa939 100644 --- a/package-lock.json +++ b/package-lock.json @@ -60,7 +60,9 @@ "vite": "^4.4.9", "vite-plugin-checker": "^0.6.2", "vite-plugin-image-optimizer": "^1.1.7", + "vite-plugin-progress": "^0.0.7", "vite-plugin-svgr": "^3.2.0", + "vite-plugin-turbo-console": "^0.1.0", "vitest": "^0.34.4" } }, @@ -12727,6 +12729,15 @@ "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "dev": true }, + "node_modules/progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/prop-types": { "version": "15.8.1", "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", @@ -12890,6 +12901,21 @@ "node": ">=0.10.0" } }, + "node_modules/rd": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/rd/-/rd-2.0.1.tgz", + "integrity": "sha512-/XdKU4UazUZTXFmI0dpABt8jSXPWcEyaGdk340KdHnsEOdkTctlX23aAK7ChQDn39YGNlAJr1M5uvaKt4QnpNw==", + "dev": true, + "dependencies": { + "@types/node": "^10.3.6" + } + }, + "node_modules/rd/node_modules/@types/node": { + "version": "10.17.60", + "resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.60.tgz", + "integrity": "sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw==", + "dev": true + }, "node_modules/react": { "version": "18.2.0", "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", @@ -15607,6 +15633,24 @@ "vite": ">=3" } }, + "node_modules/vite-plugin-progress": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/vite-plugin-progress/-/vite-plugin-progress-0.0.7.tgz", + "integrity": "sha512-zyvKdcc/X+6hnw3J1HVV1TKrlFKC4Rh8GnDnWG/2qhRXjqytTcM++xZ+SAPnoDsSyWl8O93ymK0wZRgHAoglEQ==", + "dev": true, + "dependencies": { + "picocolors": "^1.0.0", + "progress": "^2.0.3", + "rd": "^2.0.1" + }, + "engines": { + "node": ">=14", + "pnpm": ">=7.0.0" + }, + "peerDependencies": { + "vite": ">2.0.0-0" + } + }, "node_modules/vite-plugin-svgr": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/vite-plugin-svgr/-/vite-plugin-svgr-3.2.0.tgz", @@ -15621,6 +15665,32 @@ "vite": "^2.6.0 || 3 || 4" } }, + "node_modules/vite-plugin-turbo-console": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/vite-plugin-turbo-console/-/vite-plugin-turbo-console-0.1.0.tgz", + "integrity": "sha512-EaiM8tmTejbfAzqobN6EE8oAoNjZ0HFcVc8kuDyNbZD58zpy9LFDLXtLiVZV7DFXBRjlvyJCwGNT4rR9PnZZXw==", + "dev": true, + "dependencies": { + "acorn-walk": "^8.2.0", + "magic-string": "^0.30.0", + "source-map": "^0.7.4" + }, + "funding": { + "url": "https://github.com/sponsors/yuyinws" + }, + "peerDependencies": { + "vite": "^4.0.0 || ^3.0.0" + } + }, + "node_modules/vite-plugin-turbo-console/node_modules/source-map": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", + "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", + "dev": true, + "engines": { + "node": ">= 8" + } + }, "node_modules/vitest": { "version": "0.34.4", "resolved": "https://registry.npmjs.org/vitest/-/vitest-0.34.4.tgz", diff --git a/package.json b/package.json index e6641005..a44ac94c 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,9 @@ "vite": "^4.4.9", "vite-plugin-checker": "^0.6.2", "vite-plugin-image-optimizer": "^1.1.7", + "vite-plugin-progress": "^0.0.7", "vite-plugin-svgr": "^3.2.0", + "vite-plugin-turbo-console": "^0.1.0", "vitest": "^0.34.4" }, "release": { diff --git a/vite.config.js b/vite.config.js index 1828e8d6..bcf99b4b 100644 --- a/vite.config.js +++ b/vite.config.js @@ -4,6 +4,8 @@ import svgr from "vite-plugin-svgr"; import visualizer from "rollup-plugin-visualizer"; import checker from "vite-plugin-checker"; import { ViteImageOptimizer } from "vite-plugin-image-optimizer"; +import TurboConsole from "vite-plugin-turbo-console"; +import progress from "vite-plugin-progress"; export default defineConfig(() => { return { build: { @@ -31,7 +33,9 @@ export default defineConfig(() => { svgr(), visualizer(), checker({ typescript: true }), - ViteImageOptimizer() + ViteImageOptimizer(), + TurboConsole(), + progress() ], test: { globals: true,