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