From 59a1d192d268f403c3d946c52f28960a0045c357 Mon Sep 17 00:00:00 2001 From: Ives van Hoorne Date: Mon, 29 Aug 2022 15:22:04 +0200 Subject: [PATCH] chore: update CodeSandbox links and add a config (#5624) * chore: update CodeSandbox links and add a config * Update tasks.json --- .codesandbox/tasks.json | 43 +++++++++++++++++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 .codesandbox/tasks.json diff --git a/.codesandbox/tasks.json b/.codesandbox/tasks.json new file mode 100644 index 00000000..360636c4 --- /dev/null +++ b/.codesandbox/tasks.json @@ -0,0 +1,43 @@ +{ + // These tasks will run in order when initializing your CodeSandbox project. + "setupTasks": [ + { + "name": "Install Dependencies", + "command": "yarn install" + } + ], + + // These tasks can be run from CodeSandbox. Running one will open a log in the app. + "tasks": { + "build": { + "name": "Build", + "command": "yarn build", + "runAtStart": false + }, + "fix": { + "name": "Fix", + "command": "yarn fix", + "runAtStart": false + }, + "prettier": { + "name": "Prettify", + "command": "yarn prettier", + "runAtStart": false + }, + "start": { + "name": "Start Excalidraw", + "command": "yarn start", + "runAtStart": true + }, + "test": { + "name": "Run Tests", + "command": "yarn test", + "runAtStart": false + }, + "install-deps": { + "name": "Install Dependencies", + "command": "yarn install", + "restartOn": { "files": ["yarn.lock"] } + } + } +} diff --git a/README.md b/README.md index 51f70638..45fec41b 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ Try out [`@excalidraw/excalidraw`](https://www.npmjs.com/package/@excalidraw/exc ### Code Sandbox -- Go to https://codesandbox.io/s/github/excalidraw/excalidraw +- Go to https://codesandbox.io/p/github/excalidraw/excalidraw - You may need to sign in with GitHub and reload the page - You can start coding instantly, and even send PRs from there!