Browse Source

add codesandbox

liuyuqi-dellpc 2 years ago
parent
commit
442aaedd3d
2 changed files with 33 additions and 0 deletions
  1. 1 0
      .codesandbox/Dockerfile
  2. 32 0
      .codesandbox/tasks.json

+ 1 - 0
.codesandbox/Dockerfile

@@ -0,0 +1 @@
+FROM node:18-bullseye

+ 32 - 0
.codesandbox/tasks.json

@@ -0,0 +1,32 @@
+{
+    // 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": {
+        "dev": {
+            "name": "dev",
+            "command": "yarn dev",
+            "runAtStart": true
+        },
+        "build": {
+            "name": "build",
+            "command": "yarn build",
+            "runAtStart": false
+        },
+        "start": {
+            "name": "start",
+            "command": "yarn start",
+            "runAtStart": false
+        },
+        "lint": {
+            "name": "lint",
+            "command": "yarn lint",
+            "runAtStart": false
+        }
+    }
+}