Skip to content

Commit a2d2f81

Browse files
committed
initial commit with combineReducers and mergeChildReducers
0 parents  commit a2d2f81

17 files changed

+4241
-0
lines changed

.babelrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"presets": [["env", {"modules": false}]],
3+
"plugins": [
4+
"transform-object-rest-spread",
5+
"transform-es3-member-expression-literals",
6+
"transform-es3-property-literals"
7+
],
8+
"env": {
9+
"commonjs": {
10+
"presets": [["env", {"modules": "commonjs"}]]
11+
}
12+
}
13+
}

.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "react-app",
3+
}

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.DS_Store
2+
*.log
3+
node_modules
4+
dist
5+
lib
6+
es

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
language: node_js
2+
node_js:
3+
- "node"
4+
5+
cache: yarn
6+
7+
script:
8+
- yarn prepublishOnly

CODE_OF_CONDUCT.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Contributor Code of Conduct
2+
3+
As contributors and maintainers of this project, and in the interest of
4+
fostering an open and welcoming community, we pledge to respect all people who
5+
contribute through reporting issues, posting feature requests, updating
6+
documentation, submitting pull requests or patches, and other activities.
7+
8+
We are committed to making participation in this project a harassment-free
9+
experience for everyone, regardless of level of experience, gender, gender
10+
identity and expression, sexual orientation, disability, personal appearance,
11+
body size, race, ethnicity, age, religion, or nationality.
12+
13+
Examples of unacceptable behavior by participants include:
14+
15+
* The use of sexualized language or imagery
16+
* Personal attacks
17+
* Trolling or insulting/derogatory comments
18+
* Public or private harassment
19+
* Publishing other's private information, such as physical or electronic
20+
addresses, without explicit permission
21+
* Other unethical or unprofessional conduct
22+
23+
Project maintainers have the right and responsibility to remove, edit, or
24+
reject comments, commits, code, wiki edits, issues, and other contributions
25+
that are not aligned to this Code of Conduct, or to ban temporarily or
26+
permanently any contributor for other behaviors that they deem inappropriate,
27+
threatening, offensive, or harmful.
28+
29+
By adopting this Code of Conduct, project maintainers commit themselves to
30+
fairly and consistently applying these principles to every aspect of managing
31+
this project. Project maintainers who do not follow or enforce the Code of
32+
Conduct may be permanently removed from the project team.
33+
34+
This Code of Conduct applies both within project spaces and in public spaces
35+
when an individual is representing the project or its community.
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
38+
reported by contacting a project maintainer at bryandwain@gmail.com. All
39+
complaints will be reviewed and investigated and will result in a response that
40+
is deemed necessary and appropriate to the circumstances. Maintainers are
41+
obligated to maintain confidentiality with regard to the reporter of an
42+
incident.
43+
44+
45+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
46+
version 1.3.0, available at
47+
[http://contributor-covenant.org/version/1/3/0/][version]
48+
49+
[homepage]: http://contributor-covenant.org
50+
[version]: http://contributor-covenant.org/version/1/3/0/

CONTRIBUTING.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Contributing to redux-loop
2+
3+
## Code of Conduct
4+
5+
Please note that this project is released with a [Contributor Code of
6+
Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to
7+
abide by its terms. Multiple language translations are available at
8+
[contributor-covenant.org](http://contributor-covenant.org/version/1/3/0/i18n/)
9+
10+
11+
## Issues
12+
13+
Issues in which the maintainers have requested more information from the issue-
14+
creator and the issue-creator has not responded within 7 days will be closed
15+
with a note. Closed issues can be reopened once the issue-creator has responded
16+
with the information requested.

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2017 Bryan Wain
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Whitespace-only changes.

package.json

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
{
2+
"name": "redux-loop-immutable",
3+
"version": "0.0.0",
4+
"description": "ImmutableJS Extensions for Redux Loop",
5+
"main": "lib/index.js",
6+
"module": "es/index.js",
7+
"jsnext:main": "es/index.js",
8+
"homepage": "https://github.com/redux-loop/redux-loop-immutable",
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/redux-loop/redux-loop-immutable.git"
12+
},
13+
"bugs": {
14+
"url": "https://github.com/redux-loop/redux-loop-immutable/issues"
15+
},
16+
"files": [
17+
"dist",
18+
"es",
19+
"lib",
20+
"src"
21+
],
22+
"scripts": {
23+
"clear": "rimraf lib dist es",
24+
"lint": "eslint --max-warnings=0 src test",
25+
"test": "cross-env BABEL_ENV=commonjs jest",
26+
"build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib",
27+
"build:es": "cross-env BABEL_ENV=es babel src --out-dir es",
28+
"build:umd": "cross-env BABEL_ENV=es NODE_ENV=development rollup -c -i src/index.js -o dist/redux-loop-immutable.js",
29+
"build:umd:min": "cross-env BABEL_ENV=es NODE_ENV=production rollup -c -i src/index.js -o dist/redux-loop-immutable.min.js",
30+
"build": "yarn build:commonjs && yarn build:es && yarn build:umd && yarn build:umd:min",
31+
"prebuild": "yarn run clear",
32+
"prepublishOnly": "yarn lint && yarn test && yarn build"
33+
},
34+
"keywords": [
35+
"redux",
36+
"middleware",
37+
"effects",
38+
"side effects",
39+
"elm",
40+
"loop",
41+
"immutable"
42+
],
43+
"tags": [
44+
"redux",
45+
"middleware",
46+
"effects",
47+
"side effects",
48+
"elm",
49+
"loop",
50+
"immutable"
51+
],
52+
"author": "Bryan Wain <bryandwain@gmail.com>",
53+
"license": "MIT",
54+
"peerDependencies": {
55+
"immutable": "^3.7.6",
56+
"redux-loop": "^4.0.0"
57+
},
58+
"devDependencies": {
59+
"babel-cli": "6.26.0",
60+
"babel-core": "^6.3.15",
61+
"babel-eslint": "^7.2.3",
62+
"babel-plugin-external-helpers": "^6.22.0",
63+
"babel-plugin-transform-es3-member-expression-literals": "6.22.0",
64+
"babel-plugin-transform-es3-property-literals": "6.22.0",
65+
"babel-plugin-transform-object-rest-spread": "6.26.0",
66+
"babel-polyfill": "^6.26.0",
67+
"babel-preset-env": "^1.6.0",
68+
"cross-env": "^5.0.5",
69+
"eslint": "^4.8.0",
70+
"eslint-config-react-app": "^2.0.1",
71+
"eslint-plugin-flowtype": "^2.37.0",
72+
"eslint-plugin-import": "^2.7.0",
73+
"eslint-plugin-jsx-a11y": "^5.1.1",
74+
"eslint-plugin-react": "^7.4.0",
75+
"immutable": "^3.7.6",
76+
"jest": "^21.2.1",
77+
"redux-loop": "^4.0.0",
78+
"rimraf": "^2.6.2",
79+
"rollup": "^0.50.0",
80+
"rollup-plugin-babel": "^3.0.2",
81+
"rollup-plugin-commonjs": "^8.2.1",
82+
"rollup-plugin-node-resolve": "^3.0.0",
83+
"rollup-plugin-replace": "^2.0.0",
84+
"rollup-plugin-uglify": "^2.0.1"
85+
},
86+
"dependencies": {
87+
},
88+
"jest": {
89+
"testRegex": "(/test/.*\\.spec.js)$"
90+
}
91+
}

rollup.config.js

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import nodeResolve from 'rollup-plugin-node-resolve';
2+
import babel from 'rollup-plugin-babel';
3+
import replace from 'rollup-plugin-replace';
4+
import uglify from 'rollup-plugin-uglify';
5+
import commonjs from 'rollup-plugin-commonjs';
6+
7+
var env = process.env.NODE_ENV
8+
var config = {
9+
output: {
10+
format: 'umd'
11+
},
12+
name: 'ReduxLoopImmutable',
13+
plugins: [
14+
nodeResolve({
15+
jsnext: true
16+
}),
17+
babel({
18+
exclude: 'node_modules/**',
19+
plugins: ['external-helpers']
20+
}),
21+
replace({
22+
'process.env.NODE_ENV': JSON.stringify(env)
23+
}),
24+
commonjs({
25+
include: 'node_modules/**',
26+
namedExports: {
27+
'node_modules/immutable/dist/immutable.js': [ 'Map', 'is', 'fromJS']
28+
}
29+
}),
30+
]
31+
}
32+
33+
if (env === 'production') {
34+
config.plugins.push(
35+
uglify({
36+
compress: {
37+
pure_getters: true,
38+
unsafe: true,
39+
unsafe_comps: true,
40+
warnings: false
41+
}
42+
})
43+
)
44+
}
45+
46+
export default config

0 commit comments

Comments
 (0)