From 8ba3f58351457b031cc453b04023d89475b2e28d Mon Sep 17 00:00:00 2001 From: Grzegorz Godlewski Date: Fri, 24 May 2024 11:24:28 +0200 Subject: [PATCH] refactor: re-arranging examples and fixing beta build for examples --- examples/{basic => advanced}/hello-world.ts | 0 examples/{ => advanced}/local-image/Dockerfile | 0 examples/{ => advanced}/local-image/alpine.gvmi | Bin .../{ => advanced}/local-image/serveLocalGvmi.ts | 0 .../hello-world.ts => advanced/manual-pools.ts} | 0 examples/basic/{hello-world-v2.ts => one-of.ts} | 0 examples/package.json | 9 +++++---- tests/examples/examples.json | 7 ++++--- 8 files changed, 9 insertions(+), 7 deletions(-) rename examples/{basic => advanced}/hello-world.ts (100%) rename examples/{ => advanced}/local-image/Dockerfile (100%) rename examples/{ => advanced}/local-image/alpine.gvmi (100%) rename examples/{ => advanced}/local-image/serveLocalGvmi.ts (100%) rename examples/{pool/hello-world.ts => advanced/manual-pools.ts} (100%) rename examples/basic/{hello-world-v2.ts => one-of.ts} (100%) diff --git a/examples/basic/hello-world.ts b/examples/advanced/hello-world.ts similarity index 100% rename from examples/basic/hello-world.ts rename to examples/advanced/hello-world.ts diff --git a/examples/local-image/Dockerfile b/examples/advanced/local-image/Dockerfile similarity index 100% rename from examples/local-image/Dockerfile rename to examples/advanced/local-image/Dockerfile diff --git a/examples/local-image/alpine.gvmi b/examples/advanced/local-image/alpine.gvmi similarity index 100% rename from examples/local-image/alpine.gvmi rename to examples/advanced/local-image/alpine.gvmi diff --git a/examples/local-image/serveLocalGvmi.ts b/examples/advanced/local-image/serveLocalGvmi.ts similarity index 100% rename from examples/local-image/serveLocalGvmi.ts rename to examples/advanced/local-image/serveLocalGvmi.ts diff --git a/examples/pool/hello-world.ts b/examples/advanced/manual-pools.ts similarity index 100% rename from examples/pool/hello-world.ts rename to examples/advanced/manual-pools.ts diff --git a/examples/basic/hello-world-v2.ts b/examples/basic/one-of.ts similarity index 100% rename from examples/basic/hello-world-v2.ts rename to examples/basic/one-of.ts diff --git a/examples/package.json b/examples/package.json index 83d52bc9a..9f289809e 100644 --- a/examples/package.json +++ b/examples/package.json @@ -5,10 +5,11 @@ "type": "module", "repository": "https://github.com/golemfactory/golem-js", "scripts": { - "hello-basic": "tsx basic/hello-world-v2.ts", - "hello-advanced": "tsx basic/hello-world.ts", - "hello-advanced-pool": "tsx pool/hello-world.ts", - "local-image": "tsx local-image/serveLocalGvmi.ts", + "basic-one-of": "tsx basic/one-of.ts", + "basic-many-of": "tsx basic/many-of.ts", + "advanced-hello-world": "tsx advanced/hello-world.ts", + "advanced-manual-pools": "tsx advanced/manual-pools.ts", + "local-image": "tsx advanced/local-image/serveLocalGvmi.ts", "deployment": "tsx experimental/deployment/new-api.ts", "market-scan": "tsx market/scan.ts", "experimental-server": "tsx experimental/express/server.ts", diff --git a/tests/examples/examples.json b/tests/examples/examples.json index 8836fff58..804f919f9 100644 --- a/tests/examples/examples.json +++ b/tests/examples/examples.json @@ -1,6 +1,7 @@ [ - { "cmd": "tsx", "path": "examples/basic/hello-world.ts" }, - { "cmd": "tsx", "path": "examples/pool/hello-world.ts" }, { "cmd": "tsx", "path": "examples/basic/many-of.ts" }, - { "cmd": "tsx", "path": "examples/deployment/new-api.ts" } + { "cmd": "tsx", "path": "examples/basic/one-of.ts" }, + { "cmd": "tsx", "path": "examples/advanced/hello-world.ts" }, + { "cmd": "tsx", "path": "examples/advanced/manual-pools.ts" }, + { "cmd": "tsx", "path": "examples/experimental/deployment/new-api.ts" } ]