Git Product home page Git Product logo

monorepo-template's Introduction

What is this?

这是一个基于 Turborepo+pnpm+changesets+dumi 搭建的 monorepo 多包组件库。

What's inside?

这个工程包含packagesapps

每个包都是 100%的 TypeScript

Apps

  • docs: 一个基于dumi2搭建的组件静态站点

Packages

  • eslint-config-custom: 一个可被共享的自定义 eslint 配置,我们使用了 alloy 的规则,如果你需要自己拓展也没有问题
  • tsconfig: 一个可被共享的 tsconfig 配置文件,我们设置了 base 和 react-library 两个配置,当然你也可以自己定义
  • utils: 工具包
  • ui: UI 组件包

Develop

要开发所有应用程序和包,运行以下命令:

pnpm dev

你可以预览到 app 下的 docs 前端工程

Build

要构建所有的应用和包,运行以下命令:

pnpm build

产物:

  • docs——docs-dist
  • utils——lib
  • ui——es、lib、dist

What you need to do

  • 修改每个包的名称,前边的组织换成你需要的
  • .npmrc 文件中的 registry 换成你的私有源

How to release?

  • 你修改了代码,并且测试通过
  • git 提交代码到仓库
  • 执行pnpm build进行编译
  • 编译通过后执行pnpm changeset根据步骤进行版本管理、记录 changelog、commit 代码
  • 执行pnpm -r publish进行发版

monorepo-template's People

Contributors

turbobot-temp avatar

Stargazers

 avatar  avatar  avatar  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.