Recommended Dart project layout for public, private, app, server and/or test files?

前端 未结 1 924
小鲜肉
小鲜肉 2021-01-20 11:00

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条回答
  • 2021-01-20 11:58

    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
    
    0 讨论(0)
提交回复
热议问题