From 37f816873a613268e0722d771fb53e139f511685 Mon Sep 17 00:00:00 2001 From: Kristofer Koishigawa Date: Tue, 9 Jan 2024 10:35:08 +0000 Subject: [PATCH] Create tasks.json and devcontainer.json --- .codesandbox/tasks.json | 18 ++++++++++++++++++ .devcontainer/devcontainer.json | 22 ++++++++++++++++++++++ 2 files changed, 40 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..2224be3 --- /dev/null +++ b/.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": { + "start": { + "name": "start", + "command": "npm run start", + "runAtStart": true + } + } +} diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..666be2b --- /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/javascript-node +{ + "name": "Node.js", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/javascript-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" +}