Comments (5)
@luoqiz 靓仔,这里上monorepo多包的原因是什么呢?可以详细描述下具体使用的场景吗?
因为 tov-template 在这里只是单 web app,好像找不出其他的理由需要加monorepo多包 🤣
from tov-template.
我现在有三个C端项目,一个C端WEB管理后台,一个C端桌面版本(WEB页面),一个C端H5,除了页面展示不一样之外,其他基本一致,现在三个项目来回拷贝,而且后台的代码生成器也只是桌面版本的。现在准备都使用这个模板重构,发现monorepo的多包模式更适合这种实际公司中的多端开发,所以提出了此建议。
from tov-template.
我现在有三个C端项目,一个C端WEB管理后台,一个C端桌面版本(WEB页面),一个C端H5,除了页面展示不一样之外,其他基本一致,现在三个项目来回拷贝,而且后台的代码生成器也只是桌面版本的。现在准备都使用这个模板重构,发现monorepo的多包模式更适合这种实际公司中的多端开发,所以提出了此建议。
这种确实需要 monorepo 多包,但 tov-template 当前的设计完全是单 web app,我认为需要一定时间来探索一种更通用的方式来处理这种多项目的场景。
当前在使用和 tov-template 上差不多,同时更友好的支持 monorepo 的方案,我认为是 nuxt 的 spa 模式下的 layer 功能。
稍候,我将写一个最小的仓库来实现它
from tov-template.
@luoqiz 这是一个 nuxt monorepo 例子 👉 nuxt-mon
from tov-template.
我看了这个方案,又引入了nuxt,不过这种方案也是非常棒的,也是我最初想到过的继承方案,但是当时不知道nuxt3 加入了layer 模块。我是主做Java后台的,不知道你是否了解java的微服务,我的思路里是按照微服务形式进行逻辑分模块和ui分离后的组合,这样复用程度更高,而且作为项目模板的时候可以自由组合需要的逻辑和ui(比如使用el、vant、ant等)。
from tov-template.
Related Issues (20)
- package.json中的overrides是否可以剔除,会有影响吗 HOT 2
- 如何进行路由的重定向 HOT 7
- Failed to resolve import "ant-design-vue/es/layout/style/css" from "src\components\HelloWorld.vue". Does the file exist? HOT 5
- 设置嵌套动态路由 HOT 6
- 静态文件在改 base 之后,路径错误 HOT 4
- build 之后使用 liveServer 空白 HOT 1
- error: 中英文切换时,使用的第三方ui组件未切换 HOT 1
- feat!: 将开发环境配置和生产打包配置分开文件进行配置 HOT 6
- 建议:考虑在项目模板中集成pinia持久化插件 HOT 1
- perf!: 自动检测是否使用 Lightning CSS 来加快 css 处理 HOT 1
- fix!: 统一预设中的所有路径为绝对路径
- external: 完善文档以降低使用难度 HOT 1
- 有没有基于tov-template开源的项目来学习 HOT 1
- feat(scripts): 安全的初始化 HOT 8
- perf!: 路由预取 HOT 1
- 带 base 生产时无法正确重定向 HOT 3
- feat: 添加 .nvmrc 支持 lts 版本的 node
- perf(build): 使用 vite-plugin-legacy-swc 来加快 legacy 的构建
- support keep-alive HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tov-template.