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

move all npm-related stuff to build scripts #1757

Merged
merged 1 commit into from
Nov 22, 2021

Conversation

brettfo
Copy link
Member

@brettfo brettfo commented Nov 16, 2021

With this change running build.cmd/./build.sh will do npm i and npm run compile before dotnet is invoked which means the project files could be simplified.

This also means the dev instructions can be simplified to just "Run the build script" (pending).

PR marked as draft while I run some internal builds to make sure everything still works, including the SkipTests=true flag.

N.b., The Linux portion of this PR was done entirely in a Codspaces VM and because of this some devcontainer stuff was updated to make the experience easier.

@brettfo brettfo force-pushed the refactor-build branch 11 times, most recently from e2d72f1 to b973eb2 Compare November 20, 2021 00:52
@brettfo brettfo marked this pull request as ready for review November 20, 2021 00:52
@brettfo
Copy link
Member Author

brettfo commented Nov 20, 2021

This mostly works. For reasons unknown to me, setting SkipTests=true in the build still causes the NPM tests to run. I have no idea why and I'm willing to explain my bafflement to anybody that wants to be sad. The .NET tests, on the other hand, can be skipped appropriately.

At @colombod's request I also added a build-js.cmd script that will only build the NPM packages.

@brettfo
Copy link
Member Author

brettfo commented Nov 22, 2021

Got it all working as expected.

@brettfo brettfo enabled auto-merge (squash) November 22, 2021 21:38
@brettfo brettfo merged commit 3def90b into dotnet:main Nov 22, 2021
@brettfo brettfo deleted the refactor-build branch November 22, 2021 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants