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

Fix recommended run dev command in create-tauri-app #2555

Merged
merged 8 commits into from
Aug 30, 2021

Conversation

CYBAI
Copy link
Contributor

@CYBAI CYBAI commented Aug 30, 2021

--dev is not a valid option for tauri cli; instead, we should use
-- dev or just dev. Also, we can just use tauri dev for all
package managers so we don't need to do the npm checking.

Before After
image image

What kind of change does this PR introduce? (check at least one)

  • Bugfix

Does this PR introduce a breaking change? (check one)

  • No

The PR fulfills these requirements:

  • When resolving a specific issue, it's referenced in the PR's title (e.g. fix: #xxx[,#xxx], where "xxx" is the issue number)
  • A change file is added if any packages will require a version bump due to this PR per the instructions in the readme.

If adding a new feature, the PR's description includes:

  • A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:

lemarier and others added 7 commits August 23, 2021 11:09
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: lucasfernog <lucasfernog@users.noreply.github.com>
Co-authored-by: Ngo Iok Ui (Wu Yu Wei) <wusyong9104@gmail.com>
`--dev` is not a valid option for `tauri` cli; instead, we should use
`-- dev` or just `dev`. Also, we can just use `tauri dev` for all
package managers so we don't need to do the npm checking.
@CYBAI CYBAI requested a review from a team as a code owner August 30, 2021 15:00
@CYBAI
Copy link
Contributor Author

CYBAI commented Aug 30, 2021

@wusyong could you please help me check this PR? 🙏 I've confirmed it locally and the screenshot is in the PR description. thank you!

Copy link
Member

@amrbashir amrbashir left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, but please keep the double-dash when npm is used, because in some npm versions (I think npm v6), it will fail without it.

The fix should be to just add a space after the double-dash, so '--' should be '-- '

Edit: I was wrong -- is only need when additional arguments like --ci so your PR is fine

@amrbashir amrbashir self-requested a review August 30, 2021 15:24
@amrbashir amrbashir changed the base branch from dev to next August 30, 2021 15:28
@amrbashir amrbashir requested review from a team August 30, 2021 15:28
@CYBAI
Copy link
Contributor Author

CYBAI commented Aug 30, 2021

@amrbashir thank you so much for your confirmation! 🙏

and thanks for quick review from both of you!!

@amrbashir amrbashir merged commit f2865fa into tauri-apps:next Aug 30, 2021
@CYBAI CYBAI deleted the fix-dev-args branch August 30, 2021 16:40
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.

None yet

6 participants