UNPKG

vite-ssr

Version:

Vite utility for server side rendering

120 lines (119 loc) 3.29 kB
{ "name": "vite-ssr", "version": "0.17.2", "description": "Vite utility for server side rendering", "main": "./index.js", "scripts": { "dev": "npm-run-all dev:* --parallel dev:watch:* ", "dev:clean": "rm -rf node_modules/vite-ssr && mkdir node_modules/vite-ssr", "dev:copy": "cp package.json node_modules/vite-ssr/", "dev:watch:cjs": "cd src && yarn tsc --watch --incremental --outDir ./node_modules/vite-ssr", "dev:watch:esm": "yarn dev:watch:cjs --project tsconfig-esm.json", "test": "uvu -r ts-node/register test/specs", "test:watch": "watchlist src test -- yarn test", "pretest": "run-s \"build:compile:* --incremental --outDir ./node_modules/vite-ssr\" dev:copy", "build": "npm-run-all build:* --parallel build:compile:*", "build:clean": "rm -rf dist && mkdir dist", "build:copy": "cp README.md LICENSE dist/ && sed -e '/\"private\"/d' package.json > dist/package.json", "build:compile:cjs": "cd src && yarn tsc", "build:compile:esm": "cd src && yarn tsc --project tsconfig-esm.json", "format": "prettier --write ." }, "repository": { "type": "git", "url": "git+https://github.com/frandiox/vite-ssr.git" }, "keywords": [ "vite", "ssr", "vue", "react" ], "author": "Fran Dios", "license": "MIT", "bugs": { "url": "https://github.com/frandiox/vite-ssr/issues" }, "homepage": "https://github.com/frandiox/vite-ssr#readme", "bin": "./cli.js", "types": "./index.d.ts", "workspaces": [ "examples/vue", "examples/react", "examples/react-apollo", "test/fixtures/*" ], "peerDependencies": { "@vitejs/plugin-react": "^3.0.0", "@vitejs/plugin-vue": "^4.0.0", "@vueuse/head": "0.x", "react": "^17", "react-dom": "^17", "react-helmet-async": "^1.0.0", "react-router-dom": "^6", "vite": "^4.0.0", "vue": "^3.2.26", "vue-router": "^4.0.0" }, "peerDependenciesMeta": { "@vitejs/plugin-react": { "optional": true }, "@vitejs/plugin-vue": { "optional": true }, "@vueuse/head": { "optional": true }, "vue": { "optional": true }, "vue-router": { "optional": true }, "react": { "optional": true }, "react-dom": { "optional": true }, "react-helmet-async": { "optional": true }, "react-router-dom": { "optional": true } }, "dependencies": { "@rollup/plugin-replace": "^3.0.0", "@vue/server-renderer": "^3.2.26", "chalk": "^4.1.2", "connect": "^3.7.0", "node-fetch": "^2.6.1", "react-router-dom": "^6.2.2", "react-ssr-prepass": "^1.4.0" }, "devDependencies": { "@types/connect": "^3.4.34", "@types/express": "^4.17.13", "@types/fs-extra": "^9.0.12", "@types/node": "^16.4.7", "@types/node-fetch": "^2.5.9", "@types/react": "^17.0.40", "@types/react-dom": "^17.0.13", "execa": "^5.1.1", "express": "^4.17.1", "fs-extra": "^10.0.0", "npm-run-all": "^4.1.5", "playwright-chromium": "^1.13.1", "prettier": "^2.4.1", "ts-node": "^10.1.0", "typescript": "^4.2.3", "uvu": "^0.5.1", "watchlist": "^0.2.3", "yorkie": "^2.0.0" }, "gitHooks": { "commit-msg": "node scripts/verifyCommit.js" } }