New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@zeplin/cli-connect-react-plugin

Package Overview
Dependencies
Maintainers
5
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zeplin/cli-connect-react-plugin

Zeplin CLI Connected Components - React Plugin

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.4K
decreased by-33.12%
Maintainers
5
Weekly downloads
 
Created
Source

Zeplin CLI React Plugin

Zeplin CLI plugin to generate descriptions and code snippets for React components.

Zeplin CLI React Plugin uses react-docgen and react-docgen-typescript to analyze and collect information from React components. For more details about the supported formats, see react-docgen guidelines and react-docgen-typescript examples.

Installation

Install the plugin using npm.

npm install -g @zeplin/cli-connect-react-plugin

Usage

Run CLI connect command using the plugin.

zeplin connect -p @zeplin/cli-connect-react-plugin

Using react-docgen-typescript for Typescript components

You can choose to use either react-docgen or react-docgen-typescript for TypeScript in your plugin configurations.

{
    ...
    "plugins" : [{
        "name": "@zeplin/cli-connect-react-plugin",
        "config": {
            "tsDocgen": "react-docgen-typescript", // Default: "react-docgen"
            "tsConfigPath": "/path/to/tsconfig.json" // Default: "./tsconfig.json"
        }
    }],
    ...
}

Using react-docgen resolvers

You can set which built-in react-docgen resolver to use.

{
    ...
    "plugins" : [{
        "name": "@zeplin/cli-connect-react-plugin",
        "config": {
            // Default: "findAllExportedComponentDefinitions"
            "reactDocgenResolver": "findExportedComponentDefinition",
        }
    }],
    ...
}

About Connected Components

Connected Components in Zeplin lets you access components in your codebase directly on designs in Zeplin, with links to Storybook, GitHub and any other source of documentation based on your workflow. 🧩

Check Zeplin Connected Components Documentation for getting started.

Zeplin CLI uses plugins like this one to analyze component source code and publishes a high-level overview to be displayed in Zeplin.

FAQs

Package last updated on 13 Dec 2023

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