Giter Site home page Giter Site logo

nx-pnpm's Introduction

项目描述

基于pnpm workspace + nx v8 搭建的monorepo项目

配置husky + lint-staged + prettier + commitlint + commitLog 统一代码风格及commit信息

  • apps目录为应用项目,base作为Qiankun基座模块,无特殊需求技术选型选择React + Vite + tailwind + React Query

  • libs目录为依赖项目,技术选型为dumi,包含

  • UI(业务无关公用组件库)

  • BUI(强业务相关组件库,如人员检索选择等)

  • FUI(提供给Formily低代码平台使用的组件)

  • requests(封装配置apps模块涉及的接口调用,统一封装axios)

  • utils(公用方法函数)

  • icons(图标库)

其他说明:

  • pnpm版本目前使用9.1.3,为避免报错,禁止使用npm及yarn管理依赖

项目使用

安装依赖

pnpm install

新建apps项目

新建libs项目

优化方向

  • libs中部分模块允许作为npm包统一发布
  • ui组件引用多个antd组件,载入时应该实现按需载入
  • apps模块统一CI/CD流程
  • 为apps需求模块增加埋点

nx-pnpm's People

Contributors

lin-pq avatar

Watchers

 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.