Codesandbox config files (#271)

This commit is contained in:
gamebrary 2023-11-02 11:31:30 -07:00 committed by GitHub
parent 014f1756a1
commit eea8de236b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 67 additions and 1 deletions

41
.codesandbox/tasks.json Normal file
View file

@ -0,0 +1,41 @@
{
// 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": {
"dev": {
"name": "dev",
"command": "yarn dev",
"runAtStart": true,
"preview": {
"port": 4000
}
},
"build": {
"name": "build",
"command": "yarn build"
},
"test:unit": {
"name": "test:unit",
"command": "yarn test:unit"
},
"test:e2e": {
"name": "test:e2e",
"command": "yarn test:e2e"
},
"lint": {
"name": "lint",
"command": "yarn lint"
},
"deploy": {
"name": "deploy",
"command": "yarn deploy"
}
}
}

View file

@ -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"
}

View file

@ -1,5 +1,8 @@
const { defineConfig } = require('@vue/cli-service'); const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({ module.exports = defineConfig({
transpileDependencies: true, transpileDependencies: true,
devServer: {
allowedHosts: "all",
},
}); });