From b4dc83eb9b85e26f09f25e1b5320fe3f49b521d3 Mon Sep 17 00:00:00 2001 From: Damien Arrachequesne Date: Wed, 20 Sep 2023 12:57:37 +0200 Subject: [PATCH] docs(examples): add codesandbox configuration --- .../cjs/.codesandbox/Dockerfile | 1 + .../cjs/.codesandbox/tasks.json | 18 ++++++++++++++++++ .../esm/.codesandbox/Dockerfile | 1 + .../esm/.codesandbox/tasks.json | 18 ++++++++++++++++++ 4 files changed, 38 insertions(+) create mode 100644 examples/connection-state-recovery-example/cjs/.codesandbox/Dockerfile create mode 100644 examples/connection-state-recovery-example/cjs/.codesandbox/tasks.json create mode 100644 examples/connection-state-recovery-example/esm/.codesandbox/Dockerfile create mode 100644 examples/connection-state-recovery-example/esm/.codesandbox/tasks.json diff --git a/examples/connection-state-recovery-example/cjs/.codesandbox/Dockerfile b/examples/connection-state-recovery-example/cjs/.codesandbox/Dockerfile new file mode 100644 index 0000000000..d4e8dce9bd --- /dev/null +++ b/examples/connection-state-recovery-example/cjs/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:20-bullseye diff --git a/examples/connection-state-recovery-example/cjs/.codesandbox/tasks.json b/examples/connection-state-recovery-example/cjs/.codesandbox/tasks.json new file mode 100644 index 0000000000..3fad4e92ca --- /dev/null +++ b/examples/connection-state-recovery-example/cjs/.codesandbox/tasks.json @@ -0,0 +1,18 @@ +{ + // These tasks will run in order when initializing your CodeSandbox project. + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "npm install" + } + ], + + // These tasks can be run from CodeSandbox. Running one will open a log in the app. + "tasks": { + "npm start": { + "name": "npm start", + "command": "npm start", + "runAtStart": true + } + } +} diff --git a/examples/connection-state-recovery-example/esm/.codesandbox/Dockerfile b/examples/connection-state-recovery-example/esm/.codesandbox/Dockerfile new file mode 100644 index 0000000000..d4e8dce9bd --- /dev/null +++ b/examples/connection-state-recovery-example/esm/.codesandbox/Dockerfile @@ -0,0 +1 @@ +FROM node:20-bullseye diff --git a/examples/connection-state-recovery-example/esm/.codesandbox/tasks.json b/examples/connection-state-recovery-example/esm/.codesandbox/tasks.json new file mode 100644 index 0000000000..3fad4e92ca --- /dev/null +++ b/examples/connection-state-recovery-example/esm/.codesandbox/tasks.json @@ -0,0 +1,18 @@ +{ + // These tasks will run in order when initializing your CodeSandbox project. + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "npm install" + } + ], + + // These tasks can be run from CodeSandbox. Running one will open a log in the app. + "tasks": { + "npm start": { + "name": "npm start", + "command": "npm start", + "runAtStart": true + } + } +}