Skip to content

Commit

Permalink
feat: 🚀 only serving the React technology stack
Browse files Browse the repository at this point in the history
  • Loading branch information
limuen committed Jun 18, 2024
1 parent f2a0004 commit 7edaaba
Show file tree
Hide file tree
Showing 8 changed files with 69 additions and 70 deletions.
2 changes: 0 additions & 2 deletions apps/defaultProject/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
"devDependencies": {
"@types/react": "^18.2.43",
"@types/react-dom": "^18.2.17",
"@vitejs/plugin-react-swc": "^3.5.0",
"vite-plugin-checker": "^0.6.2",
"vite": "5.2.0",
"@limuen/viteconfig": "workspace:*",
"@limuen/tsconfig": "workspace:*"
Expand Down
6 changes: 1 addition & 5 deletions apps/defaultProject/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import { defineConfig, mergeConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import checker from "vite-plugin-checker";
import viteConfig from "@limuen/viteconfig";

export default defineConfig(configEnv => {
return mergeConfig(viteConfig(configEnv), {
plugins: [react(), checker({ typescript: true })]
});
return mergeConfig(viteConfig(configEnv), {});
});
2 changes: 0 additions & 2 deletions apps/react-low-code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
"devDependencies": {
"@limuen/tsconfig": "workspace:*",
"@limuen/viteconfig": "workspace:*",
"@vitejs/plugin-react-swc": "^3.5.0",
"vite-plugin-checker": "^0.6.2",
"@types/babel__standalone": "^7.1.7",
"@types/prettier": "^2.6.2",
"@types/react": "^18.2.66",
Expand Down
6 changes: 1 addition & 5 deletions apps/react-low-code/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import { defineConfig, mergeConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import checker from "vite-plugin-checker";
import viteConfig from "@limuen/viteconfig";

export default defineConfig(configEnv => {
return mergeConfig(viteConfig(configEnv), {
plugins: [react(), checker({ typescript: true })]
});
return mergeConfig(viteConfig(configEnv), {});
});
2 changes: 2 additions & 0 deletions packages/viteconfig/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"build": "tsup"
},
"dependencies": {
"@vitejs/plugin-react-swc": "^3.5.0",
"vite-plugin-checker": "^0.6.2",
"rollup-plugin-visualizer": "^5.12.0",
"vite": "^5.2.11",
"vite-plugin-compression": "^0.5.1"
Expand Down
5 changes: 5 additions & 0 deletions packages/viteconfig/src/scripts/plugins.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { PluginOption } from "vite";
import { visualizer } from "rollup-plugin-visualizer";
import react from "@vitejs/plugin-react-swc";
import checker from "vite-plugin-checker";
import viteCompression from "vite-plugin-compression";

/**
Expand All @@ -10,6 +12,9 @@ export const createVitePlugins = (viteEnv: ViteEnv): (PluginOption | PluginOptio
const { VITE_REPORT } = viteEnv;

return [
react(),
// esLint error messages are displayed on the browser interface
checker({ typescript: true }),
// Create a packaged compression configuration
createCompression(viteEnv),
// Whether to generate package preview, analyze dependent package size for optimization
Expand Down
105 changes: 60 additions & 45 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 0 additions & 11 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,6 @@
"outputs": ["dist/**"],
"env": [".env.development.local", ".env.development", ".env.local", ".env"]
},
"geeker-admin-template#dev": {
"dependsOn": ["@limuen/viteconfig#build"],
"cache": false,
"persistent": true,
"env": [".env.development.local", ".env.development", ".env.local", ".env"]
},
"geeker-admin-template#build": {
"dependsOn": ["@limuen/viteconfig#build"],
"outputs": ["dist/**"],
"env": [".env.development.local", ".env.development", ".env.local", ".env"]
},
"dev:weapp": {
"dependsOn": ["^dev:weapp"],
"persistent": true,
Expand Down

0 comments on commit 7edaaba

Please sign in to comment.