Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(build): clean build folder before rebuilding all targets #5695

Merged
merged 2 commits into from Oct 4, 2023
Merged

feat(build): clean build folder before rebuilding all targets #5695

merged 2 commits into from Oct 4, 2023

Conversation

epreston
Copy link
Contributor

@epreston epreston commented Sep 28, 2023

Cleans the "Build" directory before rebuilding all targets.

Normally, the expectation is that:

  • building one or specific set of targets - do not clear
  • building all targets - rimraf (clear) the build directory before building

Resolves the edge cases described in linked issue.

This improves the readability of the build logic by separating custom rollup plugins into reusable units. Moving them into the "utils" folder and out of the root of the project.

Fixes: #5588

I confirm I have read the contributing guidelines and signed the Contributor License Agreement.

simplify build file by separating custom rollup plugins into reusable units
clear build directory before rebuilding all targets.
Copy link
Contributor

@mvaligursky mvaligursky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glad you separated those plugins out.

@mvaligursky mvaligursky merged commit d34e10b into playcanvas:main Oct 4, 2023
7 checks passed
@epreston epreston deleted the build-clean-targets branch October 4, 2023 09:58
@epreston
Copy link
Contributor Author

epreston commented Oct 4, 2023

Anytime, send through anything you need done.

I want to explore reusing those plugins. I have a build change in mind, this will make it easier to review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build directory not cleared before build "all" targets
2 participants