halo-dev / halo

强大易用的开源建站工具。
https://www.halo.run
GNU General Public License v3.0
33.44k stars 9.62k forks source link

Build and run using IntelliJ IDEA after building ui #6261

Closed JohnNiang closed 3 months ago

JohnNiang commented 3 months ago

What type of PR is this?

/kind improvement /area core /milestone 2.18.x

What this PR does / why we need it:

This PR treats ui/build/dist as resource dir for application module to adapt building and running using IntelliJ IDEA.

How to use?

  1. Build ui project by executing command ./gradlew :ui:build -x :ui:check.
  2. Create a Run/Debug Configuration with arguments --spring.profiles.active=dev --halo.console.proxy.enabled=false --halo.uc.proxy.enabled=false.
  3. Go to Settings | Build, Execution, Deployment | Build Tools | Gradle and select IntelliJ IDEA for Build and run using:
  4. Run/Debug the configuration

Does this PR introduce a user-facing change?

None
codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 58.21%. Comparing base (bc10336) to head (6251aec). Report is 60 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #6261 +/- ## ============================================ + Coverage 54.51% 58.21% +3.70% - Complexity 3523 3757 +234 ============================================ Files 646 646 Lines 21862 21946 +84 Branches 1528 1542 +14 ============================================ + Hits 11917 12775 +858 + Misses 9328 8551 -777 - Partials 617 620 +3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

JohnNiang commented 3 months ago

/ping @halo-dev/sig-halo

f2c-ci-robot[bot] commented 3 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: guqing

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/halo-dev/halo/blob/main/OWNERS)~~ [guqing] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment