{"_id":"@apparts/redux","_rev":"3-aab05c3277c5a4eb7b48962137a81760","name":"@apparts/redux","dist-tags":{"latest":"2.0.2"},"versions":{"2.0.0":{"name":"@apparts/redux","version":"2.0.0","description":"Apparts Redux Boilerplate","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+ssh://git@github.com/phuhl/apparts-redux.git"},"keywords":["apparts","redux"],"author":{"name":"Philipp Uhl"},"license":"UNLICENSED","dependencies":{"redux":"^4.0.5","redux-persist":"^6.0.0","redux-thunk":"^2.3.0"},"gitHead":"df33ac50f830f5c6bdb0744d45f2593a22f4e7dd","bugs":{"url":"https://github.com/phuhl/apparts-redux/issues"},"homepage":"https://github.com/phuhl/apparts-redux#readme","_id":"@apparts/redux@2.0.0","_nodeVersion":"15.1.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-HTY3SrYOLyEi85+D+zgYfQL1OgfRnuRm/YQIErw+AqPLXP4Es5TgLFgJxYdke5Q9RufWAVv/sdEc28P8xi9mbg==","shasum":"a4a10e49b1efd285af17775dc20095da88409520","tarball":"https://registry.npmjs.org/@apparts/redux/-/redux-2.0.0.tgz","fileCount":3,"unpackedSize":2673,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrlYNCRA9TVsSAnZWagAA2bcQAJ0Vvrv57g5tEKRd/8gt\nyCkvU62BAWFxk/uLbTlF165FgEfBECHqXCGAcwBe6hnsHHo15ZwUnJu/4ZUI\nvQXKpLY87s8JdSnXofVNNPvr6+QPGilyq825BLbj4nquFCRA7WtWIgZMD00o\n7dJyMo8COSF/+wX+/iya/5FUWbg8yE4gbnMa0djeA7OyagZUHw+SSAU29CSa\nZ0iZOmmN/Y688sLvjRG8sCQQVoNRATJK/GtlI4wYSv3vvRlZDPRD4/QPkaP3\nxzAnD8/7H3j7XWZjZzm5iLUtE6tHbUzo9unF7+lh5HRTDvlsBKETcm/dSZHS\n5SscbUoTO4u4TkQPQiuuv08utWc73LfnUUgjWSmH/NCwgEbAYBF1LsNIoqTc\nA9xuSZ7suLVwZOVfz0NPiIeAK05jL3/24tRy0OrSJNfVIdYD5IuQMkA41Kf1\nh3IhZ9+chGzVx+kydMWwn2dCGAjoVw6mACYFVGg0yYu5kDwwp2HMuXIt9ev+\n+fvQogQ0fxCDY/v45sMp96UuTIydB+8+4KoMFvgM3QEiHNb6/SDqy2Ng/vlW\ncLaEfkL3wZ8Ljs+QpvUT14udaB+x3YM21+iPgsitRLJsnLgxtUhsHClNpMFP\nqEiqq6QZV0PBUQQKOCCfuivkXNbIcbLXWcqbZEjfb/8sW7Nw69a+HeaNd06W\nI3SD\r\n=3n2Q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCT3hb9dvbCsxYXGPzG+Ya9M7JC5EOSVHLDbj35WM/31AIhAJP6lHoSc9LntATA5SjSxAgeh/k0YYCiRMm0X51Rxc/8"}]},"_npmUser":{"name":"apparts","email":"apparts@ph-uhl.com"},"directories":{},"maintainers":[{"name":"apparts","email":"apparts@ph-uhl.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux_2.0.0_1605260812997_0.6602662697627923"},"_hasShrinkwrap":false},"2.0.1":{"name":"@apparts/redux","version":"2.0.1","description":"Apparts Redux Boilerplate","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+ssh://git@github.com/phuhl/apparts-redux.git"},"keywords":["apparts","redux"],"author":{"name":"Philipp Uhl"},"license":"UNLICENSED","dependencies":{"redux":"^4.0.5","redux-persist":"^6.0.0","redux-thunk":"^2.3.0"},"gitHead":"b8e39bbd528e22319f71cfee595d76efc1a2b64f","bugs":{"url":"https://github.com/phuhl/apparts-redux/issues"},"homepage":"https://github.com/phuhl/apparts-redux#readme","_id":"@apparts/redux@2.0.1","_nodeVersion":"15.1.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-IlPqjY0uI76VL+WzXgoUwM5Z8Al+2+9VxlahsiOKNPQyYA4NzLUuDXPn1gOcV0vN3QYSXm6Fn/sQLNlLB5qj3g==","shasum":"fe985ae3cfafd99fff606957d611a16ce897b4b8","tarball":"https://registry.npmjs.org/@apparts/redux/-/redux-2.0.1.tgz","fileCount":3,"unpackedSize":4274,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrmQ9CRA9TVsSAnZWagAAQ60QAKUo9f3QUS4KOFbBviqC\nVfyWcgDtYMwqKC3mUhipfNf+VvxQdYsvgEiric2ObtHtItgRwMI8/gkyzX0s\nX0rVpp5euWUPkg8NVdbjxJhYvJZJriARoGOPOj1GvDoF2dBgtk8K97+Zud1F\nqzb3Nw1DTngeyiHLY2sUnxr9L54u7X0aNQN7azsXgNE14LM6k/lJt16xgJ29\nsxDODTCOQzSmdTTkv4oYsTKltTc7aksvShPoV2ZZ+La/Z+N9BwQhZKNe7aom\nGMk88UZ1vxgo0AwRtk+ANUpf9Jbi8lUJw853Bt61QJpc49rIgdJPHj5un+gp\n9VCIaHxR+7dZfLvoQkzl8BZt49THTaY0yESXsCaOO7S9ToVNH5Nw0Nr6TkwC\n16OBjJkTrnXjCoTaO0HpTHLt/AyM1dVGknNSCJidzigXKQz0cTbZMZpcRpAN\njZRPIUs1Hxa3H2Z3fE7Cuj0Bq7cLfd8N9lKLGFsxmI5o99sGHx4EzYZXGzJe\nVF356VBcqKrFdYHbNATiaPgJgNXLgeddhDZNAPIZvsf2hqiJuHgbiKz96yW/\n86qU4f6TAQD3sV45FtudfFc0lbqiIVCM8FCcIg6Jxs8Ca9w/TlxGGEyVpdZ5\nDBRAxEedawu/K7mFoF2xRYJvfX8cpyhwzXbPojgyV0cWWFamYGFgQNz7zGJU\n6ylF\r\n=zkk9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGc8Xp1Wi/9Qj8nt/IKkUefYutTRGNhZsccuy7o9dmJAIgNxgQaqbXlUHsNoAJXkjiz43dUU57UQo07JTVw/U9bvo="}]},"_npmUser":{"name":"apparts","email":"apparts@ph-uhl.com"},"directories":{},"maintainers":[{"name":"apparts","email":"apparts@ph-uhl.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux_2.0.1_1605264445151_0.62112300868435"},"_hasShrinkwrap":false},"2.0.2":{"name":"@apparts/redux","version":"2.0.2","description":"Apparts Redux Boilerplate","main":"dist/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","clean":"rm -rf lib dist","build":"rollup -c","buildWatch":"rollup -c -w"},"repository":{"type":"git","url":"git+ssh://git@github.com/phuhl/apparts-redux.git"},"keywords":["apparts","redux"],"author":{"name":"Philipp Uhl"},"license":"UNLICENSED","dependencies":{"redux":"^4.0.5","redux-persist":"^6.0.0","redux-thunk":"^2.3.0"},"devDependencies":{"@babel/cli":"^7.13.10","@babel/core":"^7.12.3","@babel/preset-env":"^7.13.10","babel-core":"^6.26.3","babel-eslint":"^10.1.0","babel-runtime":"^6.26.0","eslint":"^7.21.0","eslint-plugin-react":"^7.22.0","rollup":"^1.32.1","rollup-plugin-babel":"^4.4.0"},"gitHead":"f0aa9465a1dab2b4f3df6a2c0ca9a0436eff0abb","bugs":{"url":"https://github.com/phuhl/apparts-redux/issues"},"homepage":"https://github.com/phuhl/apparts-redux#readme","_id":"@apparts/redux@2.0.2","_nodeVersion":"15.11.0","_npmVersion":"7.6.1","dist":{"integrity":"sha512-J0yAp0snAQr9BAE1bRdVP2jRUzW0X7tVzMqzh6k5ILjdmDdpM4rIGLo438cfDl5ZQ5PXSb44t757GegstMON2A==","shasum":"ce55c30cd78618525610f57e08e21d0892530f96","tarball":"https://registry.npmjs.org/@apparts/redux/-/redux-2.0.2.tgz","fileCount":8,"unpackedSize":14355,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUgxvCRA9TVsSAnZWagAAAn0P/1FpEG1Scepg2UkBb8Fs\nzaknuoQYPWr4b/I0aRL86sCsygdiXtnrqx4szUO/uw12wgUcNyxkRI9Oxg7q\niooODZQZQMakxb5ErDn6r86N019wOwXWCnVJZ2Rrq39epugOGQIBkQe+KViy\nd7T4Pp125nq4S3i05rWYmBPZz7+TPEMCOEiZg4erdy1wukfblRFdF36zGH3T\ngHgg10cIXborBwjbSpAZTobEP5VuKcV9WXoIoi46O/cgpZRMOz5rUYVJ9fDB\n708Bn1P18PCtQd89a2ncxzQUGWV7+/ZmqjsxQseBmdt669dHEOYROt1f9Gfy\nt2bj62zxJk4yXT23SwSCMCLaySPDiZVwhYXMlAJoHvy8XeA4sIpkU7kWexNH\n38hHr808vc3qQ86RkuKaKFaIF+nGEGn8C2S9tcdzpO8lSQZlrtigYlmn3zHW\nGeb2RRJfMb/BBr5F2JhmQgPI5MTzFXu3ebZwkiVTqDWwoyKiN+WcEJjdFwqT\nBWgS/+6ZczA++mVJ9MJluDds5V7xCIj7hjehu6RMw3aEgMhfeTP7owzyy0PE\nVX04qLdsavAO25/HrOE2QELrypI/kYpA5JBhA2/5pkFaRhfQko1Pa/s6jqqH\nE9SDYk+A/Q/YqhjTq+xNNDSTdxTkunO7XBjs2k3Nt/5NyyldLYrvudBGu7yZ\ne05P\r\n=+abO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKFhI0NPfPsZ6dYNK2T8Lt45Ccvozv26EQtkElwho5jwIhAKg7uaWhMvhLlBA3cS3nojNtvaZp6C/CAm9Nm9/SrgYv"}]},"_npmUser":{"name":"apparts","email":"apparts@ph-uhl.com"},"directories":{},"maintainers":[{"name":"apparts","email":"apparts@ph-uhl.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux_2.0.2_1615989870750_0.45196312792868243"},"_hasShrinkwrap":false}},"time":{"created":"2020-11-13T09:46:52.949Z","2.0.0":"2020-11-13T09:46:53.140Z","modified":"2022-04-04T14:44:20.246Z","2.0.1":"2020-11-13T10:47:25.271Z","2.0.2":"2021-03-17T14:04:30.877Z"},"maintainers":[{"name":"apparts","email":"apparts@ph-uhl.com"}],"description":"Apparts Redux Boilerplate","homepage":"https://github.com/phuhl/apparts-redux#readme","keywords":["apparts","redux"],"repository":{"type":"git","url":"git+ssh://git@github.com/phuhl/apparts-redux.git"},"author":{"name":"Philipp Uhl"},"bugs":{"url":"https://github.com/phuhl/apparts-redux/issues"},"license":"UNLICENSED","readme":"#+TITLE: Redux-Boilerplate\n#+DATE: [2019-02-07 Thu]\n#+AUTHOR: Philipp Uhl\n\n* Usage\n\n\nInstall =@apparts/redux=, create a file =store.js=:\n\n#+BEGIN_SRC js\nimport configureStore from \"@apparts/redux\";\n\nimport firststore from \"./firststore\";\nimport secondstore from \"./secondstore\";\n// ...\n\nconst { store, persistor, types } = configureStore({ firststore, secondstore });\n\nexport { persistor };\nexport default store;\n#+END_SRC\n\n** Stores\n\nA store *must* export an object with:\n- =reducer <function>= :: A function that takes the action-types as an\n  argument and returns the reducer.\n- =actionNames <array>= :: An array with all names of action-types\n  of that store.\n- =blacklisted <?boolean>= :: /Optionally/, you can specify a\n  =blacklisted= value. If true, the store will be put in the blacklist\n  for persisting. That means, the store will then not be persisted.\n\n\n*** Filestructure\n\nA store should be in a subdirectory of the =store.js= file. A sensible\nfilestructure could be:\n\n- src\n  - redux\n    - store.js\n    - firststore\n      - index.js\n    - secondstore\n      - index.js\n      - actions.js\n      - reducer.js\n  - ...rest of your project\n\nSmall stores can be put in a single =index.js= file, larger stores\nshould be split into separate files for actions and reducers.\n\n*** Single file store\nBelow is an example for the =index.js= of a store:\n\n#+BEGIN_SRC js\nexport const setOffline = () => ({\n  type: \"SET_NETWORK\",\n  state: false,\n});\n\nexport const setOnline = () => ({\n  type: \"SET_NETWORK\",\n  state: true,\n});\n\nconst actionNames = [setOffline().type];\n\nconst defaultState = true;\nconst reducer = (types) => (state = defaultState, action = {}) => {\n  switch (action.type) {\n    case types.SET_NETWORK.name:\n      return action.state;\n    default:\n      return state;\n  }\n};\n\nexport default {\n  reducer,\n  actionNames,\n  blacklisted: true,\n};\n#+END_SRC\n\n*** Multi file store\n\nAn example for the =index.js= of a store, that is split into multiple\nfiles:\n#+BEGIN_SRC js\nimport reducer from \"./reducer\";\nimport actionNames from \"./actions\";\nexport * from \"./actions\";\nexport default {\n  reducer,\n  actionNames,\n};\n#+END_SRC\n","readmeFilename":"README.org"}