
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@ks-dbdev/template-db-automatic-plugin
Advanced tools
多维表格自动化插件开发模板,用于创建自定义的自动化操作插件。
# 使用 dbdev CLI 工具
npx @ks-dbdev/cli create template
# 或全局安装后使用
npm install -g @ks-dbdev/cli
dbdev create template
选择 "自动化插件" 模板
template-db-automatic-plugin/
├── package.json
├── plugin.json # 插件配置
├── rollup.config.js # 打包配置
├── README.md
├── src/
│ ├── meta.json # 插件元数据
│ ├── template.json # 模板配置
│ ├── common/ # 公共工具库
│ │ ├── api.js # API 工具
│ │ ├── config.js # 配置管理
│ │ ├── logger.js # 日志工具
│ │ └── utils.js # 通用工具函数
│ └── scripts/
│ └── index.js # 主逻辑入口
├── build/ # 打包脚本
└── dist/ # 打包输出目录
npm install
启动本地调试服务
打开项目目录终端,执行以下命令启动本地调试服务:
npm run debug:server
打开目标多维表页面
打开需要调试的多维表页面,并在 URL 后增加查询参数:?autoTaskDebug=true
示例如下:
https://www.kdocs.cn/l/XXXXXXXXX?autoTaskDebug=truehttps://www.kdocs.cn/l/XXXXXXXXX?R=XXXXXXXX&autoTaskDebug=true验证本地调试效果
页面加载后,打开自动化流程指令列表,即可看到本地开发的对应指令,表示本地调试模式已成功启用。
💡请确保本地调试服务(npm run debug:server)处于运行状态,否则无法加载本地指令。
# 仅打包
npm run build
# 仅压缩
npm run zip
# 打包并压缩(推荐)
npm run build-zip
生成的 output/dist.zip 即可上传到WPS开放平台。
| 命令 | 说明 |
|---|---|
npm run debug:server | 启动本地调试服务器 |
npm run build | 打包插件代码 |
npm run zip | 压缩打包后的文件 |
npm run build-zip | 打包并压缩(一键发布) |
FAQs
`npm run build`
We found that @ks-dbdev/template-db-automatic-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.