melos.yaml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. name: Property-Management
  2. packages:
  3. - "app/"
  4. - "packages/cs_domain/"
  5. - "packages/cs_resources/"
  6. - "packages/cs_router/"
  7. - "packages/cs_shared/"
  8. - "packages/cs_widgets/"
  9. - "packages/cs_plugin_basic/"
  10. - "packages/cs_plugin_platform/"
  11. - "packages/cs_initializer/"
  12. - "packages/cpt_auth/"
  13. - "packages/cpt_community/"
  14. - "packages/cpt_facility/"
  15. - "packages/cpt_form/"
  16. - "packages/cpt_main/"
  17. - "packages/cpt_notice_board/"
  18. - "packages/cpt_payment/"
  19. - "packages/cpt_profile/"
  20. - "packages/cpt_property/"
  21. - "packages/cpt_rewards/"
  22. - "packages/cpt_services/"
  23. command:
  24. bootstrap:
  25. usePubspecOverrides: true
  26. scripts:
  27. analyze:
  28. run: melos exec -- "flutter analyze"
  29. description: 运行 flutter analyze 执行优化命令
  30. pub_get_all:
  31. run: dart pub global run melos exec --flutter "flutter pub get"
  32. description: 在每个子组件中运行 flutter pub get,用来获取和安装这些包的所有依赖
  33. build_runner_all:
  34. run: dart pub global run melos exec -- "dart run build_runner build"
  35. description: 如果模块包含 build_runner,执行 build_runner build 命令
  36. filters:
  37. dependsOn:
  38. - build_runner
  39. build_runner_auth:
  40. run: cd "$MELOS_ROOT_PATH/packages/cpt_auth" && dart run build_runner build --delete-conflicting-outputs
  41. description: Run `dart run build_runner build` in auth module
  42. build_runner_community:
  43. run: cd "$MELOS_ROOT_PATH/packages/cpt_community" && flutter pub run build_runner build --delete-conflicting-outputs
  44. description: Run `dart run build_runner build` in community module
  45. build_runner_facility:
  46. run: cd "$MELOS_ROOT_PATH/packages/cpt_facility" && dart run build_runner build --delete-conflicting-outputs
  47. description: Run `dart run build_runner build` in facility module
  48. build_runner_form:
  49. run: cd "$MELOS_ROOT_PATH/packages/cpt_form" && dart run build_runner build --delete-conflicting-outputs
  50. description: Run `dart run build_runner build` in form module
  51. build_runner_main:
  52. run: cd "$MELOS_ROOT_PATH/packages/cpt_main" && dart run build_runner build --delete-conflicting-outputs
  53. description: Run `dart run build_runner build` in main module
  54. build_runner_notice_board:
  55. run: cd "$MELOS_ROOT_PATH/packages/cpt_notice_board" && dart run build_runner build --delete-conflicting-outputs
  56. description: Run `dart run build_runner build` in notice_board module
  57. build_runner_payment:
  58. run: cd "$MELOS_ROOT_PATH/packages/cpt_payment" && dart run build_runner build --delete-conflicting-outputs
  59. description: Run `dart run build_runner build` in payment module
  60. build_runner_profile:
  61. run: cd "$MELOS_ROOT_PATH/packages/cpt_profile" && dart run build_runner build --delete-conflicting-outputs
  62. description: Run `dart run build_runner build` in profile module
  63. build_runner_property:
  64. run: cd "$MELOS_ROOT_PATH/packages/cpt_property" && flutter pub run build_runner build --delete-conflicting-outputs --verbose
  65. description: Run `dart run build_runner build` in property module
  66. watch_runner_property:
  67. run: cd "$MELOS_ROOT_PATH/packages/cpt_property" && flutter pub run build_runner watch --delete-conflicting-outputs --verbose
  68. description: Run `dart run build_runner build` in property module
  69. build_runner_rewards:
  70. run: cd "$MELOS_ROOT_PATH/packages/cpt_rewards" && dart run build_runner build --delete-conflicting-outputs
  71. description: Run `dart run build_runner build` in rewards module
  72. build_runner_services:
  73. run: cd "$MELOS_ROOT_PATH/packages/cpt_services" && dart run build_runner build --delete-conflicting-outputs
  74. description: Run `dart run build_runner build` in services module
  75. clean_all:
  76. run: melos exec -- "flutter clean"
  77. description: Run `flutter clean` in all packages
  78. clean_app:
  79. run: cd "$MELOS_ROOT_PATH/app" && flutter clean
  80. description: Run `flutter clean` in app module
  81. run_app:
  82. run: cd "$MELOS_ROOT_PATH/app" && flutter run
  83. description: 运行App模块.
  84. run_app2:
  85. run: melos exec --scope="app" -- "flutter run"
  86. description: 运行App模块方式2.
  87. build_apk:
  88. run: cd "$MELOS_ROOT_PATH/app" && flutter build apk
  89. description: 编译安卓Release的APK格式安装包.
  90. resource_get:
  91. run: |
  92. cd "$MELOS_ROOT_PATH/packages/cs_domain/" && flutter pub get
  93. melos exec --scope="cs_resources" -- "flutter pub get"
  94. cd "$MELOS_ROOT_PATH/packages/cs_widgets/" && flutter pub get
  95. description: 更新实体和资源模块
  96. format:
  97. run: melos exec -- "flutter format . --set-exit-if-changed"
  98. description: Run `flutter format .` in all packages
  99. test:
  100. run: melos exec --dir-exists=test -- "flutter test"
  101. description: Run `flutter test` in all packages