Skip to content

Commit

Permalink
docs: add further snippets with new infrastructure (#3297)
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Smith <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: chad <[email protected]>
Co-authored-by: Daniel Bate <[email protected]>
Co-authored-by: Peter Smith <[email protected]>
Co-authored-by: Anderson Arboleya <[email protected]>
Co-authored-by: Sérgio Torres <[email protected]>
Co-authored-by: Nedim Salkić <[email protected]>
  • Loading branch information
9 people authored Oct 29, 2024
1 parent 5ca1d8e commit 64598d6
Show file tree
Hide file tree
Showing 56 changed files with 1,110 additions and 1,065 deletions.
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
---

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

0 comments on commit 64598d6

Please sign in to comment.