Permalink
Fetching contributors…
Cannot retrieve contributors at this time
112 lines (111 sloc) 2.82 KB
{
"name": "unistore",
"version": "3.1.1",
"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",
"build:combined": "microbundle src/combined/*.js -o full/x.js",
"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": "750b"
},
{
"path": "dist/unistore.js",
"maxSize": "400b"
},
{
"path": "preact.js",
"maxSize": "600b"
}
],
"babel": {
"presets": [
[
"env",
{
"targets": {
"node": true
}
}
]
],
"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"
],
"keywords": [
"preact",
"component",
"state machine",
"redux"
],
"repository": "developit/unistore",
"author": "Jason Miller <jason@developit.ca>",
"license": "MIT",
"devDependencies": {
"babel-jest": "^21.2.0",
"babel-plugin-transform-react-jsx": "^6.24.1",
"babel-preset-env": "^1.6.1",
"bundlesize": "^0.15.3",
"documentation": "^4.0.0",
"enzyme": "^3.2.0",
"enzyme-adapter-react-16": "^1.1.1",
"eslint": "^4.16.0",
"eslint-config-developit": "^1.1.1",
"gzip-size-cli": "^2.1.0",
"jest": "^22.1.4",
"microbundle": "^0.4.3",
"npm-run-all": "^4.1.2",
"preact": "^8.3.1",
"raf": "^3.4.0",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"strip-json-comments-cli": "^1.0.1"
},
"peerDependencies": {
"preact": "*",
"react": "*"
}
}