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

Build script to run both Server/Client at the same time #8

Open
leolorenzoluis opened this issue Aug 17, 2022 · 3 comments
Open

Build script to run both Server/Client at the same time #8

leolorenzoluis opened this issue Aug 17, 2022 · 3 comments

Comments

@leolorenzoluis
Copy link

No description provided.

@JordanMarr
Copy link
Owner

I'm not sure what the request is here.

@leolorenzoluis
Copy link
Author

I have to run separate shell scripts to run the Server and Client. In NPM I can run both the server and client with 1 command. I'm sure it's possible just not sure how to code that with FAKE

@JordanMarr
Copy link
Owner

JordanMarr commented Aug 23, 2022

I personally prefer to launch them separately, but you certainly could do this via FAKE.

If you are more comfortable with npm, you could bypass FAKE altogether and just use npm script runner.
Just add a "dev" script to your 'packages.json' file:

"scripts": {
  "api": "dotnet watch --project ../WebApi/WebApi.fsproj run",
  "dev": "concurrently --kill-others \"npm run start\" \"npm run api\""
  "start": ...
)

then:
npm run dev

You will also have to install concurrently if you go this route.
See https://stackoverflow.com/questions/30950032/how-can-i-run-multiple-npm-scripts-in-parallel

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

No branches or pull requests

2 participants