简体   繁体   English

Salesforce Lightning 或替代品中的故事书

[英]Storybook in Salesforce Lightning or alternative

Recently I've joined a new job and they are working with Salesforce.最近我加入了一份新工作,他们正在使用 Salesforce。 They have all pages with APEX and I propose to migrate to Lightning components.他们的所有页面都带有 APEX,我建议迁移到 Lightning 组件。

I've created the first 7 components and I'm using Atomic Design Methodology ( https://atomicdesign.bradfrost.com/chapter-2/ ) to develop these components.我已经创建了前 7 个组件,并且正在使用原子设计方法 ( https://atomicdesign.bradfrost.com/chapter-2/ ) 来开发这些组件。

I want to implement stories (with Storybook) or another similar library to document and put examples of each web component.我想实现故事(使用 Storybook)或另一个类似的库来记录和放置每个 web 组件的示例。

My question is... Is it possible?我的问题是……有可能吗? I try to install Storybook in the project and isn't working.我尝试在项目中安装 Storybook 并且无法正常工作。 The question is simple, whether or not you can.问题很简单,能不能。 And if not, if you know any alternative to it.如果没有,如果您知道任何替代方案。

Thank you!谢谢!

In order to use Storybook, you will need to follow the provided Storybook documentation for lightning "Web Component" rather than the other available options like React and configure your VS Code to work with your SF Environment.为了使用 Storybook,您需要遵循提供的有关闪电“Web 组件”的 Storybook 文档,而不是其他可用选项(如 React),并配置您的 VS 代码以与您的 SF 环境一起使用。 Also, you might want to look into downloading the lwc-services, lwc-webpack-plugin and mo-dx-plugin dependency.此外,您可能希望下载 lwc-services、lwc-webpack-plugin 和 mo-dx-plugin 依赖项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM