UNPKG

@srejs/react

Version:

@srejs/react是一个轻量级服务端渲染骨架工具,为koa社区的nodejs开发框架提供具有服务端渲染能力的工具包,使得类似umajs类的web开发框架可以更方便实现前后端同构的服务端渲染能力。特点:轻量级,模板式调用页面进行服务端渲染,不限制后端路由。

68 lines (67 loc) 1.9 kB
{ "name": "@srejs/react", "version": "1.4.0", "description": "@srejs/react是一个轻量级服务端渲染骨架工具,为koa社区的nodejs开发框架提供具有服务端渲染能力的工具包,使得类似umajs类的web开发框架可以更方便实现前后端同构的服务端渲染能力。特点:轻量级,模板式调用页面进行服务端渲染,不限制后端路由。", "main": "lib/index.js", "directories": { "lib": "lib" }, "files": [ "bin", "lib", "index.d.ts" ], "keywords": [ "ssr", "react", "react-ssr", "@umajs/plugin-react-ssr", "umajs-react-ssr", "@srejs", "nextjs" ], "bin": { "ssr": "./bin/index.js", "sre": "./bin/index.js", "srejs": "./bin/index.js" }, "scripts": { "build": "babel src --out-dir lib --copy-files", "start": "babel src --watch --out-dir lib --source-maps inline --copy-files", "watch": "babel src --watch --out-dir lib --source-maps inline --copy-files", "prepublish": "npm run build" }, "repository": { "type": "git", "url": "git@github.com:dazjean/srejs.git" }, "publishConfig": { "registry": "https://registry.npmjs.org", "access": "public" }, "bugs": { "url": "https://github.com/dazjean/srejs/issues" }, "homepage": "https://github.com/dazjean/srejs#readme", "license": "MIT", "dependencies": { "@srejs/common": "^1.4.0", "@srejs/react-webpack": "^1.4.0", "etag": "^1.8.1", "fresh": "^0.5.2", "koa-send": "^5.0.0", "react": "^17.0.2", "react-dom": "^17.0.2", "react-router-dom": "^5.2.0", "serialize-javascript": "^6.0.0" }, "devDependencies": { "@babel/cli": "^7.22.10", "@babel/core": "^7.22.10", "@babel/plugin-transform-modules-commonjs": "^7.14.5", "@babel/plugin-transform-runtime": "^7.22.10", "@babel/preset-env": "^7.22.10", "@babel/preset-react": "^7.7.4" }, "gitHead": "da596c6a49044e00ebdbb45cb25841e2fbeb3b83" }