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: add infra to support multiple create fuels templates #2851

Merged
merged 23 commits into from
Aug 7, 2024

Conversation

Dhaiwat10
Copy link
Member

@Dhaiwat10 Dhaiwat10 commented Jul 29, 2024

Summary

This PR adds a new flag to the create fuels CLI which will let users pass in a template name of their choice like so:

npm create fuels  -- --template nextjs

Do note that this PR does not add any new templates, but rather the infrastructure to support multiple of them in the future.

Checklist

  • I addedtests to prove my changes
  • I updated — all the necessary docs
  • I reviewed — the entire PR myself, using the GitHub UI
  • I described — all breaking changes and the Migration Guide

packages/create-fuels/src/cli.ts Outdated Show resolved Hide resolved
packages/create-fuels/src/cli.ts Outdated Show resolved Hide resolved
packages/create-fuels/src/cli.ts Show resolved Hide resolved
packages/create-fuels/src/lib/setupProgram.ts Outdated Show resolved Hide resolved
Copy link
Contributor

github-actions bot commented Aug 7, 2024

Coverage Report:

Lines Branches Functions Statements
79.59%(+0.03%) 71.9%(+0.03%) 77.58%(+0.02%) 79.73%(+0.03%)
Changed Files:
Ok File (✨=New File) Lines Branches Functions Statements
🔴 packages/create-fuels/src/cli.ts 87.01%
(+1.51%)
47.36%
(+9.86%)
100%
(+0%)
87.01%
(+1.51%)
✨ packages/create-fuels/src/lib/doesTemplateExist.ts 100%
(+100%)
100%
(+100%)
100%
(+100%)
100%
(+100%)

@Dhaiwat10 Dhaiwat10 merged commit 4e82ad4 into master Aug 7, 2024
20 checks passed
@Dhaiwat10 Dhaiwat10 deleted the dp/multi-templates-infra branch August 7, 2024 10:45
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.

Add support for multiple templates in create fuels
7 participants