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

dev: use npm run dev to run app in dev mode #840

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

theborakompanioni
Copy link
Collaborator

Small improvement for local development:
Changes the command for running in dev mode from npm run dev:start to npm run dev (e.g. as next.js does).

@theborakompanioni theborakompanioni added the devtools Improvements in tooling label Sep 11, 2024
@theborakompanioni theborakompanioni self-assigned this Sep 11, 2024
@theborakompanioni theborakompanioni marked this pull request as ready for review September 11, 2024 10:04
Copy link
Contributor

@MarnixCroes MarnixCroes left a comment

Choose a reason for hiding this comment

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

tACK

package.json Outdated
@@ -47,8 +47,10 @@
"react-router-dom": "^6.26.1"
},
"scripts": {
"dev:start": "REACT_APP_JAM_DEV_MODE=true npm start",
"dev:start:secondary": "PORT=3001 JAM_BACKEND=jam-standalone JAM_API_PORT=29080 npm run dev:start",
"dev:start": "echo 'Deprecated command will be removed soon. Please use `npm run dev` instead.' && npm run dev",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"dev:start": "echo 'Deprecated command will be removed soon. Please use `npm run dev` instead.' && npm run dev",
"dev:start": "echo 'Deprecated command will be removed soon. Please use `npm run dev` instead.'",

this could be removed maybe?
if you don't do install first and just run npm run dev then the && in front will not work ofc..
feel free to ignore

@theborakompanioni theborakompanioni merged commit d0d13e9 into devel Sep 11, 2024
1 check passed
@theborakompanioni theborakompanioni deleted the chore/dev-start branch September 11, 2024 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devtools Improvements in tooling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants