我想在Dart中开发几个微服务,并想使用build
包或类似的包来自动化一些任务。就我而言,我想使用协议缓冲区。
这是我要记住的文件夹结构:
- shared/
- tooling/ [possibly have shared builders]
- proto/
- messages.proto (contains general messages)
- service1/
- proto/
- messages.proto
- services.proto
- service/
- lib/
- src/
- generated/
- proto/ [Would like the proto dart files to get here]
- service2/
- proto/
- messages.proto
- services.proto
- service/
- lib/
- src/
- generated/
- proto/ [Would like the proto dart files to get here]
[... possibly more services with the same structure ...]
我想使这个问题更具体,但基本上我想知道:
最后的评论:
build
,mono_repo
等可以提供良好的解决方案。