Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Cofe-ToolkitNew to Visual Studio Code? Get it now.
Cofe-Toolkit

Cofe-Toolkit

Cofe-Toolkit

|
18 installs
| (0) | Free
客服插件集合
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Cofe-Toolkit

接入流程

项目约定

  • subExtensions 中的文件禁止相互引用,保持子插件的独立性,共用的能力提取到 shared 内,
  • 不要随意修改 template 中的内容,修改后保证 npm run creat-new-subExtension 无影响

如何新建子插件

npm run creat-new-subExtension -----> 输入子插件名称 src=>extension.ts 引入插件,并激活 npm run creat-new-subExtension npm run merge-configs -----> 同步插件配置到 package.json

文件路径结构

├── dist 打包后 ├── javascript 脚本文件夹 ├── template 模版目录(用于新建子插件) ├── src 源码目录 │ ├── extension.ts 插件入口
│ ├── subExtensions 子插件文件目录 │ │ └── index 逻辑 │ │ └── config.json 配置 │ ├── shared 公用逻辑 │ │ ├── constants 常量 │ │ └── utils 工具函数 ├── .npmrc npm 配置 ├── README.md 项目说明文档 ├── babel.config.js babel 配置 ├── pnpm-lock.yaml
├── package.json 项目配置文件 ├── tsconfig.json ts 配置 ├── webpack.config.js webpack 配置 ├── .eslintignore 忽略 lint 的文件夹 ├── .eslintrc.js eslint 配置 ├── .gitignore git 忽略的文件夹

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft