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

WIP - NX NPM scripts #18

Merged
merged 6 commits into from
Oct 27, 2022
Merged

WIP - NX NPM scripts #18

merged 6 commits into from
Oct 27, 2022

Conversation

Omri-Levy
Copy link
Contributor

Adds the missing scripts one would expect from a monorepo, refactors script names and commands to be more consistent and adhere to NX's docs.

@changeset-bot
Copy link

changeset-bot bot commented Oct 27, 2022

⚠️ No Changeset found

Latest commit: 9248ca9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor Author

@Omri-Levy Omri-Levy left a comment

Choose a reason for hiding this comment

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

Please note the following;

  • The use of nx affected might be something undesired for format/lint, subject to change where to use affected
  • The --projects flag for commands like dev is something that could include other projects that make sense to be ran in parallel, currently it only includes web-sdk
  • Changed web-sdk's preview command to start to ensure parity, non-vite projects such as node projects expect a start script, this allows running start from root with no error or excluding Vite projects
  • Formatting changes are due to testing the lint and format commands, should be a non-issue when the formatting/ci PRs are merged
  • Right now the test scripts only echo a message, this will be as part of the tests PRs

@Omri-Levy Omri-Levy merged commit 464395c into main Oct 27, 2022
MihirMandviwala pushed a commit that referenced this pull request Feb 12, 2024
* (chore): init commit for opening a wip pr

* (refactor): replaced pnpm exec in npm scripts to adhere to nx's docs with nx run app:script format

* (refactor): removed start: prefix from npm scripts to ensure consistency across npm scripts

* (build): added npm scripts expected from a monorepo to the root's package.json
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