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

docs: add further snippets with new infrastructure #3297

Merged
merged 159 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
159 commits
Select commit Hold shift + click to select a range
28c0b1c
Starting new code-snippets app
arboleya Jul 2, 2024
48bbcba
Porting getting-started snippets
arboleya Jul 2, 2024
5b4f678
Ignoring new app in changesets
arboleya Jul 2, 2024
a45a02a
Adding changeset
arboleya Jul 2, 2024
b382460
Ignoring wrapped snippets files (generated)
arboleya Jul 2, 2024
a83e65c
Ignore test files trying to import files that haven’t been built yet
arboleya Jul 2, 2024
41c2943
Merge branch 'master' into aa/feat/infra-for-new-snippets
Torres-ssf Jul 3, 2024
596242c
Merge branch 'master' into aa/feat/infra-for-new-snippets
Torres-ssf Jul 3, 2024
89bd596
Using real code/file rather than code-string
arboleya Jul 4, 2024
89348f9
Adding example using `launchTestNode` and `LOCAL_NETWORK_URL` overrides
arboleya Jul 4, 2024
0b790b7
Skipping until forc workspace has at least one member
arboleya Jul 4, 2024
125aaad
Renaming variable
arboleya Jul 4, 2024
3406527
Fixing regex
arboleya Jul 4, 2024
01f8558
Ignoring lint issues individually
arboleya Jul 4, 2024
b63c163
Removing from browser group
arboleya Jul 4, 2024
36dbe16
Lintfix
arboleya Jul 4, 2024
663d9ce
Merge branch 'master' into aa/feat/infra-for-new-snippets
arboleya Jul 4, 2024
9134334
Restoring console after snippet
arboleya Jul 4, 2024
168f124
Keeping wrapper free from weird hacks
arboleya Jul 4, 2024
3dd1e3f
Adding mock utility
arboleya Jul 4, 2024
6ed91e2
Using mocking utility
arboleya Jul 4, 2024
939f9d6
Validating if `nertworkUrl` was properly mocked
arboleya Jul 4, 2024
571e85c
Merge branch 'master' into aa/feat/infra-for-new-snippets
arboleya Jul 4, 2024
f795f00
Mock provider instead?
arboleya Jul 4, 2024
5732d8c
Mocking only for localhost
arboleya Jul 4, 2024
020022f
Adjusting snippets
arboleya Jul 4, 2024
1388057
Wrapping snippet in a try/catch
arboleya Jul 5, 2024
48f1176
Merge branch 'master' into aa/feat/infra-for-new-snippets
arboleya Jul 15, 2024
98b02e1
Adding blank spaces
arboleya Jul 15, 2024
ea01d46
Removing mocking utility
arboleya Jul 15, 2024
2cacdb2
Adding pass-through options for `console.log` calls
arboleya Jul 15, 2024
86205c4
Adding new slot for injecting test node launcher into wrapped snippet
arboleya Jul 15, 2024
a6545af
Injecting node launcher for snippets using `LOCAL_NETWORK_URL`
arboleya Jul 15, 2024
fd9a886
Trim snippets
arboleya Jul 15, 2024
8295f4f
Cleanup snippets tests
arboleya Jul 15, 2024
70dde7c
Stop ignoring test for `docs-snippets2`
arboleya Jul 15, 2024
45b576b
Re-adding `docs-snippets2` tests to knip ignore list
arboleya Jul 15, 2024
802356a
Using internal builds
arboleya Jul 19, 2024
74f7cef
Fixing ignore rule
arboleya Jul 19, 2024
8c0be15
Adding basic counter Sway project
arboleya Jul 19, 2024
6af5a6a
Improving scripts
arboleya Jul 19, 2024
143d8be
Adding sample env file
arboleya Jul 19, 2024
5a47c48
Standardizing snippets and tests
arboleya Jul 19, 2024
c68ea14
Validate env constants existence
arboleya Jul 20, 2024
7a65623
Drafting new snippet
arboleya Jul 20, 2024
f2f4133
Merge branch 'master' into aa/feat/infra-for-new-snippets
arboleya Jul 20, 2024
c32a6e9
Adjusting script command
arboleya Jul 20, 2024
0d81092
Removing unnecessary wallet
arboleya Jul 20, 2024
65d6e80
Extacting launcher into another file
arboleya Jul 20, 2024
7ddc250
New API draft
arboleya Jul 20, 2024
28cce95
Syncing env and launcher template
arboleya Jul 20, 2024
47b19bd
Better docs
arboleya Jul 20, 2024
f0287c2
Adding new sway script
arboleya Jul 20, 2024
4ac46af
Removing API draft
arboleya Jul 20, 2024
e0c319e
Fixing file location
arboleya Jul 20, 2024
c647814
Add script to workspace
arboleya Jul 20, 2024
1ebc19d
Improve snippet
arboleya Jul 20, 2024
9c93682
Using new snippets
arboleya Jul 20, 2024
739d78e
Add new API draft
arboleya Jul 20, 2024
3808175
Matching extra blankspace
arboleya Jul 20, 2024
a91820f
Ignoring env file
arboleya Jul 20, 2024
7b8bbbb
Adding region marks
arboleya Jul 20, 2024
847c412
Avoid repetition
arboleya Jul 20, 2024
3f756e9
Trim env consts
arboleya Jul 20, 2024
16abcb4
Cleanup
arboleya Jul 20, 2024
094355b
Playing around new API
arboleya Jul 20, 2024
a5d3d08
Tidying up
arboleya Jul 20, 2024
501d913
Ignoring experimental file
arboleya Jul 20, 2024
71f0c01
Ignoring generated files in eslint
arboleya Jul 20, 2024
ae8fc47
Adjusting wallets count
arboleya Jul 20, 2024
4379cff
Moving chunk around
arboleya Jul 20, 2024
b4f2164
Adjusting ignore rule
arboleya Jul 20, 2024
8bf6293
Improving imports manipulation
arboleya Jul 20, 2024
9590341
Adding comments
arboleya Jul 20, 2024
4be8d63
Adjusting template markers
arboleya Jul 20, 2024
88a04b4
Tyop
arboleya Jul 20, 2024
57289fd
Update draft
arboleya Jul 20, 2024
71847b0
Update title
arboleya Jul 20, 2024
2f02691
Adjust deployment usage
arboleya Jul 20, 2024
a7fd7e7
Updating example
arboleya Jul 22, 2024
7f8c273
Merge branch 'master' into aa/feat/infra-for-new-snippets
arboleya Jul 22, 2024
247898c
Removing temp draft
arboleya Jul 22, 2024
dfe8eb9
Removing temp draft section
arboleya Jul 22, 2024
e73a076
Merge branch 'master' into aa/feat/infra-for-new-snippets
arboleya Aug 1, 2024
e03c3db
Merge branch 'master' into aa/feat/infra-for-new-snippets
arboleya Aug 11, 2024
aa09fbd
Updating broken test
arboleya Aug 11, 2024
0268ef3
Merge branch 'master' into aa/feat/infra-for-new-snippets
arboleya Aug 13, 2024
5cb05ae
Merge branch 'master' into aa/feat/infra-for-new-snippets
arboleya Aug 13, 2024
afa36c7
Merge branch 'master' into aa/feat/infra-for-new-snippets
arboleya Aug 30, 2024
6e05237
Merge branch 'master' into aa/feat/infra-for-new-snippets
arboleya Aug 31, 2024
739ccef
Merge branch 'master' into aa/feat/infra-for-new-snippets
arboleya Sep 5, 2024
dd4d3f8
Merge branch 'master' into aa/feat/infra-for-new-snippets
arboleya Sep 6, 2024
3c36528
Merge branch 'master' into aa/feat/infra-for-new-snippets
arboleya Sep 7, 2024
5d85686
Merge branch 'master' into aa/feat/infra-for-new-snippets
arboleya Sep 10, 2024
9647ccf
Using `NETWORK_URL` across the board
arboleya Sep 10, 2024
85c8cbd
Reword comment
arboleya Sep 10, 2024
1fcdf29
Adding scripts dir to tsconfig
arboleya Sep 10, 2024
3b463d0
Starting with more wallets
arboleya Sep 10, 2024
405b4fd
Merge branch 'master' into aa/feat/infra-for-new-snippets
arboleya Sep 13, 2024
9532319
Automatically generating tests for code snippets
arboleya Sep 13, 2024
00234d6
Forcing assertion failures to throw
arboleya Sep 13, 2024
8e17acb
Merge branch 'master' into aa/feat/infra-for-new-snippets
arboleya Sep 17, 2024
52d6c2d
Merge branch 'master' into aa/feat/infra-for-new-snippets
arboleya Sep 19, 2024
fb99481
Merge branch 'master' into mc/continue-infra-for-snippets
maschad Sep 20, 2024
eaca43f
docs: initial transpose of encoding + bytes docs
maschad Sep 22, 2024
2e53e9d
docs: add wallet management + utilities
maschad Sep 22, 2024
e657335
Merge branch 'master' into mc/continue-infra-for-snippets
maschad Sep 26, 2024
1ba314b
docs: add launch node testing snippets
maschad Sep 26, 2024
38c5ae6
Merge branch 'next' into mc/continue-infra-for-snippets
maschad Sep 27, 2024
63ebc63
docs: added configurable constant + custom transaction snippets
maschad Sep 27, 2024
dfee87d
lint: forc formatting
maschad Sep 27, 2024
60be4a5
docs: run test snippets in node
maschad Sep 27, 2024
546c116
docs: revert changes in test node original snippets
maschad Sep 28, 2024
607a872
chore: modify template to check test environment
maschad Sep 30, 2024
5a2aba8
Merge branch 'next' into mc/continue-infra-for-snippets
maschad Sep 30, 2024
7baad23
docs: fix doc links
maschad Sep 30, 2024
f6a5869
docs: update test comments
maschad Oct 1, 2024
9a58d2c
docs: remove unnecessary spacing
maschad Oct 1, 2024
f5893e5
docs: update variable naming
maschad Oct 1, 2024
a9aa0f2
docs: update vars
maschad Oct 1, 2024
f725f95
docs: update spacing
maschad Oct 1, 2024
ab529f2
docs: whitespace
maschad Oct 1, 2024
561b33c
docs: remove unnecessary comments
maschad Oct 1, 2024
84af072
docs: whitespace
maschad Oct 1, 2024
098b3db
docs: remove whitespace
maschad Oct 1, 2024
29f83c7
docs: remove whitespace
maschad Oct 1, 2024
2f094a1
docs: remove whitespace
maschad Oct 1, 2024
b2b4d13
docs: whitespace
maschad Oct 1, 2024
1a4dbe0
docs: add more spacing
maschad Oct 1, 2024
3c30cd2
ci: update workflows to include next branch (#3234)
maschad Oct 1, 2024
afa017e
build(deps): bump the deps-minor group with 9 updates (#3229)
dependabot[bot] Oct 1, 2024
a4b16b1
build(deps): bump chalk from 4.0.0 to 4.1.2 (#3231)
dependabot[bot] Oct 1, 2024
b43cf2b
chore: disable `no-continue` eslint rule (#3225)
nedsalk Oct 1, 2024
6f0289b
Merge branch 'next' into mc/continue-infra-for-snippets
maschad Oct 1, 2024
7f38a0c
chore: re-arrange console.assert statements
maschad Oct 1, 2024
ea05b14
Merge branch 'next' into mc/continue-infra-for-snippets
maschad Oct 3, 2024
9fe51f2
chore: remove console.assert
maschad Oct 3, 2024
e19b126
docs: add README for snippets
maschad Oct 4, 2024
4716eaa
lint: update README
maschad Oct 4, 2024
a665481
Merge branch 'master' into mc/continue-infra-for-snippets
maschad Oct 9, 2024
8cbd654
Merge branch 'master' into mc/continue-infra-for-snippets
maschad Oct 15, 2024
088d768
test: bump gas limit
danielbate Oct 17, 2024
9e40820
update README
maschad Oct 24, 2024
695c332
docs: update spacing
maschad Oct 24, 2024
5e57e6b
docs: remove unnecessary context tag
maschad Oct 24, 2024
51158e9
nit
maschad Oct 24, 2024
1b55819
chore: integrated PR feedback
maschad Oct 24, 2024
c01a7d4
Merge branch 'master' into mc/continue-infra-for-snippets
maschad Oct 24, 2024
72dffa7
chore: removed merge conflict
petertonysmith94 Oct 24, 2024
f48e393
Merge branch 'master' into mc/continue-infra-for-snippets
maschad Oct 28, 2024
609f874
build: remove unused files
maschad Oct 28, 2024
5ba73a2
docs: update paths
maschad Oct 28, 2024
8c6187c
build: updated scripts
maschad Oct 28, 2024
68e95e4
ci: adjust script for ci
maschad Oct 28, 2024
9dc373a
ci: update pretest script for temp builds
maschad Oct 28, 2024
4d22c39
ci: temp kill all nodes for deploy test
maschad Oct 28, 2024
4f9b288
docs: add changeset
maschad Oct 28, 2024
a8d5a9d
linting
maschad Oct 28, 2024
be701a8
lint: ignore generated directories
maschad Oct 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/lazy-years-share.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"fuels": patch
petertonysmith94 marked this conversation as resolved.
Show resolved Hide resolved
---

docs: add further snippets with new infrastructure
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ apps/demo-react-cra
apps/demo-react-vite
apps/create-fuels-counter-guide
apps/docs-snippets2/src/typegend
apps/docs-snippets2/src/**/*.test.ts

packages/fuels/src/cli/commands/deploy/proxy
packages/fuels/test/fixtures/project
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ apps/demo-typegen/src/script-types
apps/demo-typegen/src/predicate-types
apps/docs/.vitepress/cache/
apps/create-fuels-counter-guide
apps/docs-snippets/.fuels
apps/docs-snippets2/.fuels

packages/fuels/src/cli/commands/deploy/proxy
packages/fuels/test/fixtures/project
Expand Down
1 change: 1 addition & 0 deletions apps/docs-snippets/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.fuels/
13 changes: 5 additions & 8 deletions apps/docs-snippets/scripts/pretest.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
# Kill anything running on port 4000
lsof -t -i:4000 | xargs -r kill

# Runs a node at port 4000
pnpm fuels node > /dev/null 2>&1 &
# Check if node is already running at port 4000, if not start it
# TODO: This is a temporary solution to avoid conflicts with the test node in docs-snippets2
if ! lsof -t -i:4000 > /dev/null; then
pnpm fuels node > /dev/null 2>&1 &
fi

# Builds projects
pnpm fuels build

# Deploys projects (needed for loader bytecode)
pnpm fuels deploy

# Kills the node
lsof -t -i:4000 | xargs -r kill

# Checks for type errors
pnpm tsc --noEmit

This file was deleted.

118 changes: 0 additions & 118 deletions apps/docs-snippets/src/guide/encoding/encode-and-decode.test.ts

This file was deleted.

160 changes: 0 additions & 160 deletions apps/docs-snippets/src/guide/encoding/working-with-bytes.test.ts

This file was deleted.

Loading