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?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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