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

use npm workspace #18

Merged
merged 10 commits into from
Mar 11, 2024
Merged

use npm workspace #18

merged 10 commits into from
Mar 11, 2024

Conversation

Florent-Bouisset
Copy link
Collaborator

This PR add the usage of npm workspace to simplify a fix the CI and to simply the build and serve steps when developping locally.

see https://docs.npmjs.com/cli/v10/using-npm/workspaces

On this branch doing this simple commands at project root will build and serve the client, inspector and server all at once.

# in ./RxPaired
npm install
npm run build
npm run serve

With workspace there is only one package-lock and one node_modules folder, at the root of the project.
There is now only one .npmrc at the root of the project.

CLIENT.md Outdated

- Either you store it on an HTTP(S) server, in which case you'll have to
indicate its URI to the `RxPaired-inspector` (more information on that
in its directory: `./inspector`).
Copy link
Collaborator

Choose a reason for hiding this comment

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

It should now be in INSPECTOR.md no?

CLIENT.md Outdated
npm install
```

You have to create a `.npmrc` file in the root directory.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe now we'll need to add something like "if not already done", as all parts now rely on that same config file

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I added it

CLIENT.md Show resolved Hide resolved
@peaBerberian
Copy link
Collaborator

It's missing INSPECTOR.md and SERVER.md, no?

@peaBerberian peaBerberian merged commit b975f49 into main Mar 11, 2024
2 checks passed
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