-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat: fuels
CLI
#1291
Merged
Merged
feat: fuels
CLI
#1291
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This PR is published in NPM with version 0.0.0-pr-1291-20231101155347 |
Coverage report
Show new covered files 🐣
Test suite run success1367 tests passing in 248 suites. Report generated by 🧪jest coverage report action from e356e5b |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Dhaiwat10
previously approved these changes
Oct 30, 2023
Torres-ssf
previously approved these changes
Oct 31, 2023
danielbate
previously approved these changes
Oct 31, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Dhaiwat10
previously approved these changes
Oct 31, 2023
arboleya
dismissed stale reviews from Dhaiwat10, danielbate, and Torres-ssf
via
November 1, 2023 15:51
7c1f315
Torres-ssf
approved these changes
Nov 1, 2023
danielbate
approved these changes
Nov 2, 2023
Dhaiwat10
approved these changes
Nov 3, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
TL;DR
watch
—>rebuild
—>reload
approach that's well-known and appreciated for overall Web Developmentnpm create fuels@latest my-fuel-dapp
Try it out
You can install this PR's release using the tag from this comment:
Essential commands
fuels init
— Creates a newfuels.config.ts
filefuels build
— Build Forc workspace and generate Typescript for everythingfuels deploy
— Deploy Forc workspace locally and save deployed contract IDs in JSON filefuels dev
— Start a local Fuel node and runbuild
+deploy
on every file changeConfig File:
fuels.config.ts
The
fuels
CLI uses afuels.config.ts
file for pre-configuring project defaults:Configure the path to your
forc
workspace andoutput
dir, and voilà.Developing
Start developing with a single command:
pnpm fuels dev
Under the hood, the
fuels
CLI automates all manual tasks duringdev
elopment:fuel-core
)forc
)<output>/contract-ids.json
file<output>/
<output>/contract-ids.json
Quick Demo
One-liner showing the basics:
Documentation
One-liner to check the rendered docs:
CLI Help screen
pnpm fuels help
Test Coverage
FWIW, all new files should be 100% fully test-covered.
Special Thanks
Goes to @luizstacio ❤️ for the original idea and making this possible via #635.