Zeplin CLI plugin to generate descriptions and code snippets for React components.
Install the plugin using npm.
npm install -g zeplin-cli-connect-plugin-stenciljs- Generate the StencilJS json docs, update you
stencil.config.tsfile and inside theoutputTargetsproperty add:
outputTargets: [
{
type: 'docs-json',
file: 'path/to/file.json'
},
]
and then run npm run build to generate the file
- In your
.zeplin/components.jsonconfiguration file, add the plugin and pass the stencil docs file:
"plugins": [
{
"name": "cli-connect-stenciljs-plugin",
"config": {
"sourcePath": 'path/to/file.json'
}
}
]
- Run CLI
connectcommand using the plugin.
zeplin connectConnected 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. 🧩
Zeplin CLI uses plugins like this one to analyze component source code and publishes a high-level overview to be displayed in Zeplin.