From 79942b589fb1ec0d9042c8b54cbb378087c7abd9 Mon Sep 17 00:00:00 2001 From: Noah Manneschmidt Date: Thu, 28 Mar 2024 15:46:21 +0000 Subject: [PATCH] Add codesandbox configs --- .codesandbox/tasks.json | 48 +++++++++++++++++++++++++++++++++ .devcontainer/devcontainer.json | 22 +++++++++++++++ .github/dependabot.yml | 4 +++ 3 files changed, 74 insertions(+) create mode 100644 .codesandbox/tasks.json create mode 100644 .devcontainer/devcontainer.json diff --git a/.codesandbox/tasks.json b/.codesandbox/tasks.json new file mode 100644 index 0000000..ecc3d9b --- /dev/null +++ b/.codesandbox/tasks.json @@ -0,0 +1,48 @@ +{ + // 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": { + "start": { + "name": "start", + "command": "yarn start", + "runAtStart": true + }, + "build": { + "name": "build", + "command": "yarn build", + "runAtStart": false + }, + "lint": { + "name": "lint", + "command": "yarn lint", + "runAtStart": false + }, + "lint:ci": { + "name": "lint:ci", + "command": "yarn lint:ci", + "runAtStart": false + }, + "preview": { + "name": "preview", + "command": "yarn preview", + "runAtStart": false + }, + "typecheck": { + "name": "typecheck", + "command": "yarn typecheck", + "runAtStart": false + }, + "format": { + "name": "format", + "command": "yarn lint --apply", + "runAtStart": true + } + } +} diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..19f7f68 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,22 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node +{ + "name": "Node.js & TypeScript", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye" + + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": {}, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "yarn install", + + // Configure tool-specific properties. + // "customizations": {}, + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5e78a81..a110433 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -19,3 +19,7 @@ updates: directory: "/" schedule: interval: weekly + - package-ecosystem: "devcontainers" + directory: "/" + schedule: + interval: weekly