Giter Site home page Giter Site logo

vcreact's Introduction

VC React

基于TypeScript开发的React轻量级组件库

安装与使用

安装与使用请移步我们的文档站

开发

代码结构

源码均在 src 目录内。每个组件有自己的子目录。最终所有组件统一在 src/index.js 中 export 出来。

开发

npm run start

构建文档站

npm run build-storybook

构建

npm run build

组件文档

基于 Storybook 中 addons-docs mdx语法,请在组件同级创建 stories 目录,新建同名说明文档,ex. Button.stories.mdx

代码规范

使用 eslint 规范

编辑器

我们推荐使用 Visual Studio Code

为了更好的开发体验,我们建议使用 prettier 进行在开发和提交阶段进行代码格式化,配置如下:

...
"[typescript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.formatOnPaste": true,
    "editor.formatOnSave": true
},
"[typescriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.formatOnPaste": true,
    "editor.formatOnSave": true
},
"[mdx]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.formatOnPaste": true,
    "editor.formatOnSave": true
},
...

测试

执行 npm run test 运行单元测试。

我们的单元测试使用 Facebook 开源的 jest 框架编写。如果你之前没接触过,请移步 jest 文档学习。

❤ 作为一名靠谱的工程师,请为你提交的修改编写相应的单元测试 ❤

讨论 / 问题反馈 / 建议

目前还在搭建中...

vcreact's People

Contributors

wsmdyj avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

enterpriseih

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.