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

Add a MSBuild task for running yarn build #1110

Merged
merged 1 commit into from Aug 25, 2021
Merged

Conversation

exyi
Copy link
Member

@exyi exyi commented Aug 22, 2021

In case yarn is not installed, npm is used.
Yarn is preferred, because it takes less time to run it, so it's
less annoying.
The Target only runs when any typescript file is changed,
otherwise it's skipped by MSBuild

In case there are some JS error, the build should continue normally,
so hopefully it won't cause some build issues

This should solve the problem that we forget to build the JS and
then something does not work. And when someone clones the repo,
it just won't compile because the JS files are missing

@exyi exyi requested a review from quigamdev August 22, 2021 20:39
In case yarn is not installed, npm is used.
Yarn is preferred, because it takes less time to run it, so it's
less annoying.
The Target only runs when any typescript file is changed,
otherwise it's skipped by MSBuild

In case there are some JS error, the build should continue normally,
so hopefully it won't cause some build issues

This should solve the problem that we forget to build the JS and
then something does not work. And when someone clones the repo,
it just won't compile because the JS files are missing
@cafour
Copy link
Contributor

cafour commented Aug 25, 2021

This seems to work alright. Would you mind removing the npm build step from ci/linux/run.sh and ci/windows/run.ps or should I do it?

@quigamdev quigamdev added this to the Version 4.0 milestone Aug 25, 2021
@quigamdev quigamdev merged commit 4d33f57 into v4-main Aug 25, 2021
@quigamdev quigamdev deleted the msbuild-yarn-task branch August 25, 2021 10:41
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.

None yet

3 participants