mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-27 01:40:20 +08:00
42 lines
1.8 KiB
JSON
42 lines
1.8 KiB
JSON
|
{
|
||
|
"name": "@gradio/spa",
|
||
|
"version": "0.0.1",
|
||
|
"private": true,
|
||
|
"type": "module",
|
||
|
"scripts": {
|
||
|
"dev": "vite --port 9876",
|
||
|
"dev:lite": "run-p dev:lite:*",
|
||
|
"dev:lite:self": "vite --port 9876 --mode development:lite",
|
||
|
"dev:lite:worker": "pnpm --filter @gradio/wasm dev",
|
||
|
"build": "vite build --mode production --emptyOutDir",
|
||
|
"cssbuild": "python ../../scripts/generate_theme.py --outfile ./src/lite/theme.css",
|
||
|
"pybuild:gradio": "cd ../../ && hatch build -t lite",
|
||
|
"pybuild:gradio-client": "cd ../../client/python && python -m build",
|
||
|
"pybuild": "run-p pybuild:*",
|
||
|
"build:lite": "pnpm pybuild && pnpm cssbuild && pnpm --filter @gradio/client build && pnpm --filter @gradio/wasm build && vite build --mode production:lite",
|
||
|
"preview": "vite preview",
|
||
|
"test:snapshot": "pnpm exec playwright test snapshots/ --config=../../.config/playwright.config.js",
|
||
|
"test:browser": "pnpm exec playwright test test/ --grep-invert 'reload.spec.ts' --config=../../.config/playwright.config.js",
|
||
|
"test:browser:dev": "pnpm exec playwright test test/ --ui --config=../../.config/playwright.config.js",
|
||
|
"test:browser:reload": "CI=1 pnpm exec playwright test test/ --grep 'reload.spec.ts' --config=../../.config/playwright.config.js",
|
||
|
"test:browser:lite": "GRADIO_E2E_TEST_LITE=1 pnpm test:browser",
|
||
|
"test:browser:lite:dev": "GRADIO_E2E_TEST_LITE=1 pnpm test:browser:dev",
|
||
|
"build:css": "pollen -c pollen.config.cjs -o src/pollen-dev.css"
|
||
|
},
|
||
|
"devDependencies": {
|
||
|
"@gradio/build": "workspace:^",
|
||
|
"@gradio/client": "workspace:^",
|
||
|
"@gradio/core": "workspace:^",
|
||
|
"@gradio/theme": "workspace:^",
|
||
|
"@gradio/wasm": "workspace:^",
|
||
|
"@huggingface/space-header": "^1.0.3",
|
||
|
"@types/eventsource": "^1.1.15",
|
||
|
"cross-env": "^7.0.3"
|
||
|
},
|
||
|
"msw": {
|
||
|
"workerDirectory": "public"
|
||
|
},
|
||
|
"main_changeset": true,
|
||
|
"main": "./src/Index.svelte"
|
||
|
}
|