Giter VIP home page Giter VIP logo

Comments (5)

markthree avatar markthree commented on June 13, 2024

@luoqiz 靓仔,这里上monorepo多包的原因是什么呢?可以详细描述下具体使用的场景吗?
因为 tov-template 在这里只是单 web app,好像找不出其他的理由需要加monorepo多包 🤣

from tov-template.

luoqiz avatar luoqiz commented on June 13, 2024

我现在有三个C端项目,一个C端WEB管理后台,一个C端桌面版本(WEB页面),一个C端H5,除了页面展示不一样之外,其他基本一致,现在三个项目来回拷贝,而且后台的代码生成器也只是桌面版本的。现在准备都使用这个模板重构,发现monorepo的多包模式更适合这种实际公司中的多端开发,所以提出了此建议。

from tov-template.

markthree avatar markthree commented on June 13, 2024

我现在有三个C端项目,一个C端WEB管理后台,一个C端桌面版本(WEB页面),一个C端H5,除了页面展示不一样之外,其他基本一致,现在三个项目来回拷贝,而且后台的代码生成器也只是桌面版本的。现在准备都使用这个模板重构,发现monorepo的多包模式更适合这种实际公司中的多端开发,所以提出了此建议。

这种确实需要 monorepo 多包,但 tov-template 当前的设计完全是单 web app,我认为需要一定时间来探索一种更通用的方式来处理这种多项目的场景。

当前在使用和 tov-template 上差不多,同时更友好的支持 monorepo 的方案,我认为是 nuxt 的 spa 模式下的 layer 功能。

稍候,我将写一个最小的仓库来实现它

from tov-template.

markthree avatar markthree commented on June 13, 2024

@luoqiz 这是一个 nuxt monorepo 例子 👉 nuxt-mon

from tov-template.

luoqiz avatar luoqiz commented on June 13, 2024

我看了这个方案,又引入了nuxt,不过这种方案也是非常棒的,也是我最初想到过的继承方案,但是当时不知道nuxt3 加入了layer 模块。我是主做Java后台的,不知道你是否了解java的微服务,我的思路里是按照微服务形式进行逻辑分模块和ui分离后的组合,这样复用程度更高,而且作为项目模板的时候可以自由组合需要的逻辑和ui(比如使用el、vant、ant等)。

from tov-template.

Related Issues (20)

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.