1.0.1 • Published 5 years ago
zeplin-cli-connect-plugin-stenciljs v1.0.1
Zeplin CLI Stencil JS Plugin
Zeplin CLI plugin to generate descriptions and code snippets for React components.
Installation
Install the plugin using npm.
npm install -g zeplin-cli-connect-plugin-stenciljsUsage
- 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 connectAbout 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. 🧩
Zeplin CLI uses plugins like this one to analyze component source code and publishes a high-level overview to be displayed in Zeplin.