Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

components-manager

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

components-manager

```bash npm install components-manager --dev ```

  • 1.2.9
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

安装

npm install components-manager --dev

快速入门

在项目根目录添加以下配置文件:components-manager.json 或者 components-manager.config.js,使用 js 后缀可以使用回调函数。

配置文件类型是:MangerConfig:

declare interface ManagerConfig {
  /**
   * 组件
   */
  components: Array<ComponentInfo>
  /**
   * 发布脚本,默认是 npm publish
   */
  publishCommand?: string
  /**
   * 所有组件都依赖的包
   */
  dependencies?: string[]
  /**
   * 发布前的回调,【仅支持 js 配置文件】
   */
  beforePublish?: (componentInfo?: ComponentInfo) => void
}

declare interface ComponentInfo {
  /**
   * 组件根目录的相对路径
   */
  root: string
  /**
   * 组件的包名
   */
  name: string
  /**
   * git 仓库地址
   */
  git?: string
  /**
   * 代码引用的入口文件(相对路径于根目录),默认为 ./
   */
  main?: string
  /**
   * 外部引用的入口文件夹,不用精确到文件,文件会自动从 main 中补全(相对路径于根目录),默认为 ./lib
   */
  outputDir?: string
  /**
   * 编译产出路径,如果不设置,说明不需要产出,可以直接发布
   */
  builtPath?: string
  /**
   * 依赖分析忽略的目录
   */
  analyseIgnore?: string[]
}

命令

查看文档

components-manager -h

FAQs

Package last updated on 06 Feb 2018

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