针对公共,私有,应用程序,服务器和/或测试文件的推荐Dart项目布局? [英] Recommended Dart project layout for public, private, app, server and/or test files?
本文介绍了针对公共,私有,应用程序,服务器和/或测试文件的推荐Dart项目布局?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我同时拥有应用程序(客户端)和服务器代码以及私有lib资源和测试文件,建议的 Dart项目布局是什么?
What is the recommended Dart project layout if I have both app (client) and server code as well as private lib resources and test files?
推荐答案
Dan Rubel和Eric Clayberg共享的项目布局(在 2013-12-18 Googleplex Eclipse Day )是这样的:
The project layout shared by Dan Rubel and Eric Clayberg (in a presentation at the 2013-12-18 Googleplex Eclipse Day) is something like this:
my_app/
pubspec.yaml
README.md
bin/
start_my_app <-- server-side code
lib/
public_code.dart <-- shared public code
src/
internal_code.dart <-- private code
test/
my_app_test.dart
web/ <-- client-side code
index.html
main.dart
main.css
这篇关于针对公共,私有,应用程序,服务器和/或测试文件的推荐Dart项目布局?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文