UNPKG

2.43 kBJSONView Raw
1{
2 "name": "preact-render-to-string",
3 "amdName": "preactRenderToString",
4 "version": "3.8.2",
5 "description": "Render JSX to an HTML string, with support for Preact components.",
6 "main": "dist/index.js",
7 "umd:main": "dist/index.js",
8 "module": "dist/index.mjs",
9 "jsnext:main": "dist/index.mjs",
10 "scripts": {
11 "build": "npm run -s transpile && npm run -s transpile:jsx && npm run -s copy-typescript-definition",
12 "transpile": "microbundle src/index.js -f es,umd --target web --external none",
13 "transpile:jsx": "microbundle src/jsx.js -o dist/jsx.js --target web --external none && microbundle dist/jsx.js -o dist/jsx.js -f cjs",
14 "copy-typescript-definition": "copyfiles -f src/index.d.ts dist",
15 "test": "eslint src test && mocha --compilers js:babel-register test/**/*.js",
16 "prepublish": "npm run build",
17 "release": "npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"
18 },
19 "keywords": [
20 "preact",
21 "render",
22 "universal",
23 "isomorphic"
24 ],
25 "files": [
26 "src",
27 "dist",
28 "jsx.js",
29 "typings.json"
30 ],
31 "eslintConfig": {
32 "extends": "developit",
33 "rules": {
34 "react/prefer-stateless-function": 0,
35 "react/jsx-no-bind": 0,
36 "react/no-danger": 0,
37 "jest/valid-expect": 0,
38 "new-cap": 0
39 }
40 },
41 "babel": {
42 "presets": [
43 "env"
44 ],
45 "plugins": [
46 [
47 "transform-react-jsx",
48 {
49 "pragma": "h"
50 }
51 ],
52 "transform-object-rest-spread"
53 ]
54 },
55 "author": "Jason Miller <jason@developit.ca>",
56 "license": "MIT",
57 "typings": "src/index.d.ts",
58 "repository": "developit/preact-render-to-string",
59 "bugs": "https://github.com/developit/preact-render-to-string/issues",
60 "homepage": "https://github.com/developit/preact-render-to-string",
61 "peerDependencies": {
62 "preact": "*"
63 },
64 "devDependencies": {
65 "babel-plugin-transform-object-rest-spread": "^6.26.0",
66 "babel-plugin-transform-react-jsx": "^6.24.1",
67 "babel-preset-env": "^1.7.0",
68 "babel-register": "^6.26.0",
69 "chai": "^3.5.0",
70 "copyfiles": "^1.2.0",
71 "eslint": "^4.19.1",
72 "eslint-config-developit": "^1.1.1",
73 "microbundle": "^0.6.0",
74 "mocha": "^5.2.0",
75 "preact": "^8.1.0",
76 "sinon": "^1.17.5",
77 "sinon-chai": "^2.8.0"
78 },
79 "dependencies": {
80 "pretty-format": "^3.5.1"
81 }
82}