Socket
Socket
Sign inDemoInstall

@comate/plugin-cli

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@comate/plugin-cli

## 安装


Version published
Maintainers
1
Created
Source

Comate+插件开发命令行工具

安装

npm install @comate/plugin-cli

安装后,可以使用cpd命令。

构建

cpd build

构建要求:

  1. src/index.ts为主入口。
  2. 项目为TypeScript项目,且为纯ESM项目,即满足以下要求:
    1. tsconfig.json中的modulemoduleResolution均为NodeNext
    2. package.json"type": "module"字段。

构建使用Rollup进行,会将文件找包为dist/index.js

调试

cpd dev

调试服务器会自动构建插件并输出到dist目录下,你可以打开http://localhost:8080看到调试界面,按照界面说明操作即可。

当你修改src下的代码或package.json时,调试服务器会自动重新构建并重启服务器,但浏览器页面需要手动刷新(如果没有配置结构的变化,通常不刷新直接发送新的会话也会生效)。

FAQs

Package last updated on 11 Mar 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc