Giter VIP home page Giter VIP logo

mui-eazy's Introduction

Mui-Eazy

Mui-Eazy

两个版本

  • 共同点:
    • 都实现了组件级别的代码拆分
    • 支持按需加载,无论是tree shaking环境还是不支持,都可以实现最小导入

青春版:

  • 只包含扩展内容,不包含mui,react相关的所有库,需要宿主项目自行安装
  • 实现包体最小化,全量大小仅仅 1.5m
  • 方便全局控制,比如:定制mui主题
pnpm add mui-eazy react react-dom @emotion/react @mui/material @emotion/styled @mui/system @mui/x-data-grid @mui/x-date-pickers yup @mui/lab

整合版:包含除react相关以外的所有库,一条龙搞定

  • 快捷无脑
  • 给啥用啥
  • 上手就干
pnpm add mui-eazy react react-dom

项目组成

  • 文档项目:docusaurus项目
  • mui-eazy 青春版
  • mui-eazy 整合版

组成介绍

  • 项目是 monorepo,通过pnpm的workspace进行的管理
  • 组件库使用的是rollUp进行的打包
  • 目前文档使用的mui-eazy 青春版作为组件库进行展示,默认目录下已经有打包好的组件库了

如何运行

安装依赖

pnpm i

仅仅在跑文档项目,皆可预览组件库

npm run start

构建文档库

npm run build:doc

构建组件库

npm run build:split

mui-eazy's People

Contributors

qang-lee avatar moderateman avatar

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.