mirror of
https://github.com/promplate/pyth-on-line.git
synced 2025-09-06 20:53:20 +00:00
fix(ci): codesandbox configurations
This commit is contained in:
@@ -1,14 +1,36 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://codesandbox.io/schemas/tasks.json",
|
"setupTasks": [
|
||||||
"setupTasks": ["pnpm install"],
|
{
|
||||||
|
"name": "Install Dependencies",
|
||||||
|
"command": "pnpm install"
|
||||||
|
}
|
||||||
|
],
|
||||||
"tasks": {
|
"tasks": {
|
||||||
"dev": {
|
"dev": {
|
||||||
"name": "Start Dev Server",
|
"name": "Development Server",
|
||||||
"command": "pnpm dev",
|
"command": "pnpm dev",
|
||||||
"runAtStart": true,
|
"runAtStart": true,
|
||||||
"preview": {
|
"preview": {
|
||||||
"port": 5173,
|
"port": 5173,
|
||||||
"prLink": "direct"
|
"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({
|
export default defineConfig({
|
||||||
plugins: [Unocss(), sveltekit(), dir2json({ include: ["**/*.py", "**/*.j2"] })],
|
plugins: [Unocss(), sveltekit(), dir2json({ include: ["**/*.py", "**/*.j2"] })],
|
||||||
assetsInclude: ["src/python/**/*"],
|
assetsInclude: ["src/python/**/*"],
|
||||||
|
server: { allowedHosts: true },
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user