melos.yaml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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" && dart run build_runner build
  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
  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
  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
  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
  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
  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
  62. description: Run `dart run build_runner build` in profile module
  63. build_runner_property:
  64. run: cd "$MELOS_ROOT_PATH/packages/cpt_property" && dart run build_runner build
  65. description: Run `dart run build_runner build` in property module
  66. build_runner_rewards:
  67. run: cd "$MELOS_ROOT_PATH/packages/cpt_rewards" && dart run build_runner build
  68. description: Run `dart run build_runner build` in rewards module
  69. build_runner_services:
  70. run: cd "$MELOS_ROOT_PATH/packages/cpt_services" && dart run build_runner build
  71. description: Run `dart run build_runner build` in services module
  72. clean_all:
  73. run: melos exec -- "flutter clean"
  74. description: Run `flutter clean` in all packages
  75. clean_app:
  76. run: cd "$MELOS_ROOT_PATH/app" && flutter clean
  77. description: Run `flutter clean` in app module
  78. run_app:
  79. run: cd "$MELOS_ROOT_PATH/app" && flutter run
  80. description: 运行App模块.
  81. run_app2:
  82. run: melos exec --scope="app" -- "flutter run"
  83. description: 运行App模块方式2.
  84. build_apk:
  85. run: cd "$MELOS_ROOT_PATH/app" && flutter build apk
  86. description: 编译安卓Release的APK格式安装包.
  87. resource_get:
  88. run: |
  89. cd "$MELOS_ROOT_PATH/packages/cs_domain/" && flutter pub get
  90. melos exec --scope="cs_resources" -- "flutter pub get"
  91. cd "$MELOS_ROOT_PATH/packages/cs_widgets/" && flutter pub get
  92. description: 更新实体和资源模块
  93. format:
  94. run: melos exec -- "flutter format . --set-exit-if-changed"
  95. description: Run `flutter format .` in all packages
  96. test:
  97. run: melos exec --dir-exists=test -- "flutter test"
  98. description: Run `flutter test` in all packages