mirror of
https://github.com/promplate/pyth-on-line.git
synced 2025-09-04 17:53:00 +00:00
fix(ci): codesandbox configurations
This commit is contained in:
@@ -1,14 +1,36 @@
|
||||
{
|
||||
"$schema": "https://codesandbox.io/schemas/tasks.json",
|
||||
"setupTasks": ["pnpm install"],
|
||||
"setupTasks": [
|
||||
{
|
||||
"name": "Install Dependencies",
|
||||
"command": "pnpm install"
|
||||
}
|
||||
],
|
||||
"tasks": {
|
||||
"dev": {
|
||||
"name": "Start Dev Server",
|
||||
"name": "Development Server",
|
||||
"command": "pnpm dev",
|
||||
"runAtStart": true,
|
||||
"preview": {
|
||||
"port": 5173,
|
||||
"prLink": "direct"
|
||||
},
|
||||
"restartOn": {
|
||||
"files": ["package.json", "vite.config.ts", "svelte.config.js"],
|
||||
"branch": true,
|
||||
"clone": false,
|
||||
"resume": false
|
||||
}
|
||||
},
|
||||
"build": {
|
||||
"name": "Build Project",
|
||||
"command": "pnpm build"
|
||||
},
|
||||
"preview": {
|
||||
"name": "Preview Build",
|
||||
"command": "pnpm preview",
|
||||
"preview": {
|
||||
"port": 4173,
|
||||
"prLink": "direct"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
20
.devcontainer/devcontainer.json
Normal file
20
.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "Ubuntu",
|
||||
"image": "mcr.microsoft.com/devcontainers/base:noble",
|
||||
"features": {
|
||||
"ghcr.io/devcontainers/features/node": {
|
||||
"version": "lts",
|
||||
"nodeGypDependencies": "true",
|
||||
"pnpmVersion": "latest",
|
||||
"nvmVersion": "latest"
|
||||
}
|
||||
},
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
"ms-python.python",
|
||||
"ms-vscode.vscode-typescript-next"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
@@ -6,4 +6,5 @@ import { defineConfig } from "vite";
|
||||
export default defineConfig({
|
||||
plugins: [Unocss(), sveltekit(), dir2json({ include: ["**/*.py", "**/*.j2"] })],
|
||||
assetsInclude: ["src/python/**/*"],
|
||||
server: { allowedHosts: true },
|
||||
});
|
||||
|
Reference in New Issue
Block a user