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

chore: remove some choices from create-fuels CLI #2444

Merged
merged 27 commits into from
Jun 20, 2024

Conversation

Dhaiwat10
Copy link
Member

@Dhaiwat10 Dhaiwat10 commented Jun 4, 2024

Summary

This PR removes two choices from the create-fuels CLI which we now deem unnecessary.

1. Package Manager

The CLI will just use npm as the default from now on. I tried to add some logic that would detect the package manager used by the user to call the command but have not find a reliable solution yet. Follow up #2552.

Users can still explicitly specify if they want to use a specific package manager by flags like --bun, --pnpm

2. Programs to include

From now on we will just give our users all three programs included in the template, instead of giving them a choice when the CLI is run. If they want only one or two, they can easily delete the rest themselves.


@Dhaiwat10 Dhaiwat10 self-assigned this Jun 4, 2024
@github-actions github-actions bot added the chore Issue is a chore label Jun 4, 2024
Copy link
Contributor

github-actions bot commented Jun 4, 2024

This PR is published in NPM with version 0.0.0-pr-2444-20240618181855

@Dhaiwat10 Dhaiwat10 closed this Jun 12, 2024
@Dhaiwat10 Dhaiwat10 reopened this Jun 12, 2024
@arboleya arboleya added this to the 0.x mainnet milestone Jun 12, 2024
@arboleya
Copy link
Member

Is there an issue we can link this PR to?

@Dhaiwat10
Copy link
Member Author

@arboleya I don't think there is one. This just started off as a quick draft at the offsite without an issue. I will create one.

@Dhaiwat10
Copy link
Member Author

@arboleya #2508

@Dhaiwat10 Dhaiwat10 marked this pull request as ready for review June 13, 2024 03:58
@petertonysmith94
Copy link
Contributor

@Dhaiwat10 are these not the issues you seek?
#2459
#2460

@arboleya
Copy link
Member

@Dhaiwat10 As @petertonysmith94 said here, I think these are the original issues:

Maybe you can close #2508 in favor of these or vice versa.

Or close them all with the PR.

Copy link
Contributor

@petertonysmith94 petertonysmith94 left a comment

Choose a reason for hiding this comment

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

IMO removal of all program based selections would be beneficial - as @nedsalk mentioned here.

We can then remove all envs from the template (and the documentation app) and generally do some simplifications.

Copy link
Contributor

@petertonysmith94 petertonysmith94 left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@maschad maschad left a comment

Choose a reason for hiding this comment

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

Looks good, left one minor comment

Copy link
Contributor

Coverage Report:

Lines Branches Functions Statements
80.96%(-0.06%) 72.42%(-0.13%) 78.3%(-0.03%) 81.04%(-0.06%)
Changed Files:
Ok File (✨=New File) Lines Branches Functions Statements
🔴 packages/create-fuels/src/cli.ts 88.23%
(-1.54%)
37.5%
(-25.83%)
100%
(+0%)
88.23%
(-1.77%)
🔴 packages/create-fuels/src/lib/getPackageManager.ts 100%
(+0%)
80%
(-5.71%)
100%
(+0%)
100%
(+0%)

@petertonysmith94 petertonysmith94 merged commit 681a787 into master Jun 20, 2024
20 checks passed
@petertonysmith94 petertonysmith94 deleted the dp/create-fuels-remove-extra-choices branch June 20, 2024 14:32
nedsalk pushed a commit that referenced this pull request Jun 27, 2024
* remove some choices

* enable pr release

* delete unnecessary files, make npm default

* fix merge conflicts

* remove old exports

* fix lint errors

* add changeset

* fix changeset

* fix test

* fix lint errors

* fix lint error

* remove outdated test

* fix failing test, remove unnecessary awaits

* remove asyncs

* remove from docs

* remove env vars, fix up tests

* disable pr release

---------

Co-authored-by: Peter Smith <peter@blueoceancomputing.co.uk>
Co-authored-by: Chad Nehemiah <chad.nehemiah94@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Issue is a chore
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove some choices from the create-fuels CLI
5 participants