-
Notifications
You must be signed in to change notification settings - Fork 139
/
package.json
116 lines (116 loc) · 2.95 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{
"name": "unistore",
"version": "3.5.2",
"description": "Dead simple centralized state container (store) with preact and react bindings.",
"source": "src/index.js",
"module": "dist/unistore.es.js",
"main": "dist/unistore.js",
"umd:main": "dist/unistore.umd.js",
"typings": "index.d.ts",
"scripts": {
"build": "npm-run-all --silent -p build:main build:integrations build:combined -s size docs",
"build:main": "microbundle",
"build:integrations": "microbundle src/integrations/*.js -o x.js -f cjs --external react,preact",
"build:combined": "microbundle src/combined/*.js -o full/x.js --external react,preact",
"size": "strip-json-comments --no-whitespace dist/unistore.js | gzip-size && bundlesize",
"docs": "documentation readme src/index.js src/integrations/preact.js -q --section API && npm run -s fixreadme",
"fixreadme": "node -e 'var fs=require(\"fs\");fs.writeFileSync(\"README.md\", fs.readFileSync(\"README.md\", \"utf8\").replace(/^- /gm, \"- \"))'",
"test": "eslint src && npm run build && jest",
"prepare": "npm t",
"release": "npm t && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"
},
"eslintConfig": {
"extends": "eslint-config-developit",
"rules": {
"prefer-rest-params": 0
}
},
"bundlesize": [
{
"path": "full/preact.js",
"maxSize": "760b"
},
{
"path": "dist/unistore.js",
"maxSize": "400b"
},
{
"path": "preact.js",
"maxSize": "600b"
}
],
"babel": {
"presets": [
[
"env",
{
"targets": {
"node": "current"
}
}
]
],
"plugins": [
[
"transform-react-jsx",
{
"pragma": "h"
}
]
]
},
"jest": {
"testURL": "http://localhost"
},
"files": [
"src",
"dist",
"full",
"preact.js",
"preact.js.map",
"react.js",
"react.js.map",
"index.d.ts",
"preact.d.ts",
"react.d.ts",
"devtools.js",
"devtools.d.ts"
],
"keywords": [
"preact",
"component",
"state machine",
"redux"
],
"repository": "developit/unistore",
"author": "Jason Miller <jason@developit.ca>",
"license": "MIT",
"devDependencies": {
"babel-jest": "^24.3.1",
"babel-plugin-transform-react-jsx": "^6.24.1",
"babel-preset-env": "^1.6.1",
"bundlesize": "^0.17.1",
"documentation": "^4.0.0",
"enzyme": "^3.9.0",
"enzyme-adapter-react-16": "^1.10.0",
"eslint": "^4.16.0",
"eslint-config-developit": "^1.1.1",
"gzip-size-cli": "^2.1.0",
"jest": "^24.3.1",
"microbundle": "^0.11.0",
"npm-run-all": "^4.1.2",
"preact": "^10.0.0",
"raf": "^3.4.0",
"react": "^16.8.4",
"react-dom": "^16.8.4",
"strip-json-comments-cli": "^1.0.1"
},
"peerDependenciesMeta": {
"preact": {
"optional": true
},
"react": {
"optional": true
}
}
}