UNPKG

vite-plugin-server-actions

Version:

Server actions for Vite - call backend functions directly from your frontend with automatic API generation, TypeScript support, and zero configuration

111 lines (110 loc) 3.3 kB
{ "name": "vite-plugin-server-actions", "version": "1.2.0", "description": "Server actions for Vite - call backend functions directly from your frontend with automatic API generation, TypeScript support, and zero configuration", "keywords": [ "vite", "vite-plugin", "server-actions", "server", "backend", "api", "rpc", "typescript", "openapi", "swagger", "validation", "zod", "full-stack", "serverless", "functions", "middleware", "express" ], "homepage": "https://serveractions.dev", "bugs": { "url": "https://github.com/HelgeSverre/vite-plugin-server-actions/issues" }, "repository": { "type": "git", "url": "git+https://github.com/HelgeSverre/vite-plugin-server-actions.git" }, "license": "MIT", "author": { "name": "Helge Sverre", "email": "helge.sverre@gmail.com", "url": "https://helgesver.re" }, "type": "module", "exports": { ".": { "import": "./src/index.js", "types": "./index.d.ts" } }, "main": "src/index.js", "types": "index.d.ts", "files": [ "src", "index.d.ts", "README.md", "LICENSE" ], "scripts": { "check": "npm run test:run && npm run typecheck", "deploy:docs": "cd docs && vc --prod", "example:react-ts:build": "npm run build --prefix examples/react-todo-app-typescript", "example:react-ts:dev": "npm run dev --prefix examples/react-todo-app-typescript", "example:react:build": "npm run build --prefix examples/react-todo-app", "example:react:dev": "npm run dev --prefix examples/react-todo-app", "example:svelte:build": "npm run build --prefix examples/svelte-todo-app", "example:svelte:dev": "npm run dev --prefix examples/svelte-todo-app", "example:vue:build": "npm run build --prefix examples/vue-todo-app", "example:vue:dev": "npm run dev --prefix examples/vue-todo-app", "format": "npx prettier --write .", "prepublishOnly": "npm run check", "reset:todos": "node scripts/reset-todos.js", "sort": "npx sort-package-json", "test": "vitest", "test:e2e": "playwright test", "test:e2e:clean": "npm run reset:todos && npm run test:e2e", "test:e2e:headed": "playwright test --headed", "test:e2e:ui": "playwright test --ui", "test:run": "vitest run", "typecheck": "tsc --noEmit" }, "dependencies": { "@asteasolutions/zod-to-openapi": "^7.3.4", "@babel/parser": "^7.27.7", "@babel/traverse": "^7.27.7", "esbuild": "^0.19.0", "express": "^4.21.0", "minimatch": "^10.0.3", "rollup": "^4.0.0", "swagger-ui-express": "^5.0.0", "zod": "^3.22.4" }, "devDependencies": { "@apidevtools/swagger-parser": "^12.0.0", "@playwright/test": "^1.53.1", "@stoplight/spectral-core": "^1.20.0", "@stoplight/spectral-rulesets": "^1.22.0", "@types/express": "^5.0.3", "@types/node": "^24.0.3", "@types/swagger-ui-express": "^4.1.6", "@vitest/runner": "^3.2.4", "openapi-types": "^12.1.3", "playwright": "^1.53.1", "prettier": "^3.6.0", "typescript": "^5.8.3", "vite": "^6.3.5", "vitest": "^3.2.4" }, "peerDependencies": { "vite": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" }, "engines": { "node": ">=18.0.0" }, "readme": "README.md" }