diff options
| author | netop://ウィビ <paul@webb.page> | 2026-04-24 16:50:12 -0700 |
|---|---|---|
| committer | netop://ウィビ <paul@webb.page> | 2026-04-24 16:50:12 -0700 |
| commit | 216441d3564e00aabfac7e8acf346e34a5db9598 (patch) | |
| tree | 67cfc8ccac0df117f098d8fa0569000ed8274a20 /package.json | |
| parent | 85c05927989c712015ee82cea9b2917485a3f0e8 (diff) | |
| download | graphiql-216441d3564e00aabfac7e8acf346e34a5db9598.tar.gz graphiql-216441d3564e00aabfac7e8acf346e34a5db9598.zip | |
Add Vite playground for local development
npm run dev boots a Vite + Svelte 5 server at localhost:5173, importing
GraphiQL.svelte directly from source/library. HMR reflects changes
without a package rebuild. Points at the public Countries API by default
— swap playground/src/App.svelte for your own endpoint.
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/package.json b/package.json index 8621132..fe4a49e 100644 --- a/package.json +++ b/package.json @@ -51,9 +51,12 @@ "access": "public" }, "scripts": { + "build": "vite build", "check": "svelte-check --tsconfig tsconfig.json", + "dev": "vite", "package": "svelte-package -i source/library -o dist", "prepublishOnly": "bun run package", + "preview": "vite preview", "publish": "bun run package && bun publish", "test": "vitest run" }, |