Skip to content

Commit

Permalink
🔧 chore(config): 优化项目配置和依赖管理
Browse files Browse the repository at this point in the history
- 更新项目配置文件结构和编译选项
- 移除 SVN SCM 扩展依赖
- 优化 TypeScript 配置,添加路径别名和跳过类型检查
- 修复 React 组件导入路径
-【配置优化】添加 node_modules 和 dist 到 exclude 列表
-【依赖调整】调整 Git 和 SVN SCM 扩展的依赖关系
-【文档更新】补充 Git SCM 安装说明和 SVN SCM 下载链接
  • Loading branch information
littleCareless committed Jan 3, 2025
1 parent 01f5f93 commit 01e53ed
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 9 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ Weekly report generation supports custom templates:
- VS Code 1.80.0+
- [SVN Command Line Tool](http://subversion.apache.org/packages.html)
- SVN SCM (Optional) - Install [SVN SCM v2.18.1+](https://github.com/littleCareless/svn-scm/releases/tag/v2.18.1) if you need to enter commit messages in VSCode's SCM input box
- Download the latest version of the SVN SCM extension from the [release page](https://marketplace.visualstudio.com/items?itemName=littleCareless.svn-scm-ai)
- Git SCM (Optional) - Install [Git SCM](https://marketplace.visualstudio.com/items?itemName=vscode.git) if you need to enter commit messages in VSCode's SCM input box
- Valid AI service configuration (OpenAI API Key or Ollama service)

### Configuration
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"Gemini"
],
"extensionDependencies": [
"johnstoncode.svn-scm",
"vscode.git"
],
"main": "./out/extension.js",
Expand Down
2 changes: 1 addition & 1 deletion src/webview-ui/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Save, FileDown, Wand2 } from "lucide-react";
import { useToast } from "@/hooks/use-toast";
// import { getMessageType } from "@/constants";
// import "vscode-webview";
import { vscode } from "@/lib/vscode.ts";
import { vscode } from "@/lib/vscode";

function App() {
const [content, setContent] = useState("");
Expand Down
2 changes: 1 addition & 1 deletion src/webview-ui/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import App from './App.tsx';
import App from './App';
import './index.css';

createRoot(document.getElementById('root')!).render(
Expand Down
3 changes: 2 additions & 1 deletion src/webview-ui/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@
"@/*": ["./src/*"]
}
},
"include": ["src"]
"include": ["src"],
"exclude": ["node_modules", "dist"]
}
2 changes: 1 addition & 1 deletion src/webview-ui/tsconfig.app.tsbuildinfo
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"root":["./src/app.tsx","./src/constants.ts","./src/main.tsx","./src/vite-env.d.ts","./src/components/daterangeselector.tsx","./src/components/editor.tsx","./src/components/ui/accordion.tsx","./src/components/ui/alert-dialog.tsx","./src/components/ui/alert.tsx","./src/components/ui/aspect-ratio.tsx","./src/components/ui/avatar.tsx","./src/components/ui/badge.tsx","./src/components/ui/breadcrumb.tsx","./src/components/ui/button.tsx","./src/components/ui/calendar.tsx","./src/components/ui/card.tsx","./src/components/ui/carousel.tsx","./src/components/ui/chart.tsx","./src/components/ui/checkbox.tsx","./src/components/ui/collapsible.tsx","./src/components/ui/command.tsx","./src/components/ui/context-menu.tsx","./src/components/ui/dialog.tsx","./src/components/ui/drawer.tsx","./src/components/ui/dropdown-menu.tsx","./src/components/ui/form.tsx","./src/components/ui/hover-card.tsx","./src/components/ui/input-otp.tsx","./src/components/ui/input.tsx","./src/components/ui/label.tsx","./src/components/ui/menubar.tsx","./src/components/ui/navigation-menu.tsx","./src/components/ui/pagination.tsx","./src/components/ui/popover.tsx","./src/components/ui/progress.tsx","./src/components/ui/radio-group.tsx","./src/components/ui/resizable.tsx","./src/components/ui/scroll-area.tsx","./src/components/ui/select.tsx","./src/components/ui/separator.tsx","./src/components/ui/sheet.tsx","./src/components/ui/skeleton.tsx","./src/components/ui/slider.tsx","./src/components/ui/sonner.tsx","./src/components/ui/switch.tsx","./src/components/ui/table.tsx","./src/components/ui/tabs.tsx","./src/components/ui/textarea.tsx","./src/components/ui/toast.tsx","./src/components/ui/toaster.tsx","./src/components/ui/toggle-group.tsx","./src/components/ui/toggle.tsx","./src/components/ui/tooltip.tsx","./src/contexts/extensioncontext.tsx","./src/hooks/use-toast.ts","./src/lib/constants.ts","./src/lib/utils.ts","./src/lib/vscode.ts","./src/types/vscode.d.ts"],"version":"5.7.2"}
{"root":["./src/App.tsx","./src/constants.ts","./src/main.tsx","./src/vite-env.d.ts","./src/components/DateRangeSelector.tsx","./src/components/Editor.tsx","./src/components/ui/accordion.tsx","./src/components/ui/alert-dialog.tsx","./src/components/ui/alert.tsx","./src/components/ui/aspect-ratio.tsx","./src/components/ui/avatar.tsx","./src/components/ui/badge.tsx","./src/components/ui/breadcrumb.tsx","./src/components/ui/button.tsx","./src/components/ui/calendar.tsx","./src/components/ui/card.tsx","./src/components/ui/carousel.tsx","./src/components/ui/chart.tsx","./src/components/ui/checkbox.tsx","./src/components/ui/collapsible.tsx","./src/components/ui/command.tsx","./src/components/ui/context-menu.tsx","./src/components/ui/dialog.tsx","./src/components/ui/drawer.tsx","./src/components/ui/dropdown-menu.tsx","./src/components/ui/form.tsx","./src/components/ui/hover-card.tsx","./src/components/ui/input-otp.tsx","./src/components/ui/input.tsx","./src/components/ui/label.tsx","./src/components/ui/menubar.tsx","./src/components/ui/navigation-menu.tsx","./src/components/ui/pagination.tsx","./src/components/ui/popover.tsx","./src/components/ui/progress.tsx","./src/components/ui/radio-group.tsx","./src/components/ui/resizable.tsx","./src/components/ui/scroll-area.tsx","./src/components/ui/select.tsx","./src/components/ui/separator.tsx","./src/components/ui/sheet.tsx","./src/components/ui/skeleton.tsx","./src/components/ui/slider.tsx","./src/components/ui/sonner.tsx","./src/components/ui/switch.tsx","./src/components/ui/table.tsx","./src/components/ui/tabs.tsx","./src/components/ui/textarea.tsx","./src/components/ui/toast.tsx","./src/components/ui/toaster.tsx","./src/components/ui/toggle-group.tsx","./src/components/ui/toggle.tsx","./src/components/ui/tooltip.tsx","./src/contexts/ExtensionContext.tsx","./src/hooks/use-toast.ts","./src/lib/constants.ts","./src/lib/utils.ts","./src/lib/vscode.ts","./src/types/vscode.d.ts"],"version":"5.7.2"}
3 changes: 2 additions & 1 deletion src/webview-ui/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"@/*": ["./src/*"]
},
"jsx": "react"
}
},
"exclude": ["node_modules", "dist"]
}
3 changes: 2 additions & 1 deletion src/webview-ui/tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": ["vite.config.ts"]
"include": ["vite.config.ts"],
"exclude": ["node_modules", "dist"]
}
10 changes: 8 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@
"lib": ["ES2022", "DOM"],
"sourceMap": false,
"rootDir": "src",
"skipLibCheck": true,
"strict": true /* enable all strict type-checking options */,
/* Additional Checks */
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
// "noUnusedParameters": true, /* Report errors on unused parameters. */
"esModuleInterop": true,
"resolveJsonModule": true
}
"resolveJsonModule": true,
"paths": {
"@/*": ["./src/webview-ui/src/*"]
},
"jsx": "react-jsx"
},
"exclude": ["node_modules", "dist"]
}

0 comments on commit 01e53ed

Please sign in to comment.