brandembassy/ui-components

此软件包的规范存储库似乎已丢失,因此软件包已被冻结。

6.7 2023-10-17 09:15 UTC

This package is auto-updated.

Last update: 2023-11-16 13:17:57 UTC


README

入门 - 将组件添加到您的项目中

React 应用

您的项目需要安装 redux 和 video-react 依赖项

  • yarn add redux video-react

将模块添加到您的项目中

  • yarn add https://github.com/BrandEmbassy/components.git

将全局组件导入到应用程序中

  • import { Global } from 'components';

从 Storybook 导入选定的组件

  • https://brand-embassy-components-prod.s3.amazonaws.com/1.0/storybook/index.html

PHP 服务器端渲染应用

composer install brandembassy/components

请参阅: src-php/Forms/Table/Ui/TableTest.php 了解如何使用 Table 组件。

开发组件

yarn install

  • 在仓库根目录的终端中运行以安装所有依赖项

yarn run lib

  • 创建新的库以推送

构建和运行库

yarn run library

  • 在仓库根目录的终端中运行以构建所有依赖项并启动 UI 库
  • 库将自动在 http://localhost:6006 打开
  • CSS 及其他必要文件将准备在 /build/static 文件夹中

开发

yarn run storybook

  • 在仓库根目录的终端中运行以在开发模式下启动 Storybook
  • Storybook 可在 (http://localhost:6006) 找到