mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-06 10:25:17 +08:00
b635a31714
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
50 lines
2.0 KiB
JSON
50 lines
2.0 KiB
JSON
{
|
|
"name": "@self/spa",
|
|
"version": "0.0.3",
|
|
"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": {
|
|
"@self/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"
|
|
},
|
|
"peerDependencies": {
|
|
"svelte": "^4.0.0"
|
|
},
|
|
"main_changeset": true,
|
|
"main": "./src/Index.svelte",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/gradio-app/gradio.git",
|
|
"directory": "js/spa"
|
|
}
|
|
}
|