Skip to content

Commit 52a2801

Browse files
committed
Initial import from gaearon/redux
0 parents  commit 52a2801

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1272
-0
lines changed

.babelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"stage": 0,
3+
"loose": "all"
4+
}

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lib
2+
node_modules

.eslintrc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"extends": "eslint-config-airbnb",
3+
"env": {
4+
"browser": true,
5+
"mocha": true,
6+
"node": true
7+
},
8+
"rules": {
9+
"react/jsx-uses-react": 2,
10+
"react/jsx-uses-vars": 2,
11+
"react/react-in-jsx-scope": 2,
12+
13+
//Temporarirly disabled due to a possible bug in babel-eslint (todomvc example)
14+
"block-scoped-var": 0,
15+
// Temporarily disabled for test/* until babel/babel-eslint#33 is resolved
16+
"padded-blocks": 0
17+
},
18+
"plugins": [
19+
"react"
20+
]
21+
}

.gitignore

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

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Change log
2+
3+
All notable changes to this project will be documented in this file.
4+
This project adheres to [Semantic Versioning](http://semver.org/).
5+
6+
TODO

CODE_OF_CONDUCT.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Contributor Code of Conduct
2+
3+
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4+
5+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
6+
7+
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8+
9+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10+
11+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12+
13+
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
14+

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
redux-react
2+
=========================
3+
4+
Work in progress
5+
6+
TODO:
7+
8+
- dedupe modules
9+
- figure out UMD
10+
- probably some other stuff.

native.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('./lib/native');

package.json

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"name": "redux-react",
3+
"version": "0.1.0",
4+
"description": "Redux bindings for React",
5+
"main": "./lib/index.js",
6+
"scripts": {
7+
"browser": "scripts/browser",
8+
"build": "scripts/build",
9+
"clean": "scripts/clean",
10+
"lint": "scripts/lint",
11+
"prepublish": "scripts/prepublish",
12+
"test": "scripts/test",
13+
"test:watch": "scripts/test-watch",
14+
"test:cov": "scripts/test-cov"
15+
},
16+
"repository": {
17+
"type": "git",
18+
"url": "https://github.com/gaearon/redux-react.git"
19+
},
20+
"keywords": [
21+
"react",
22+
"reactjs",
23+
"hot",
24+
"reload",
25+
"hmr",
26+
"live",
27+
"edit",
28+
"flux",
29+
"redux"
30+
],
31+
"author": "Dan Abramov <[email protected]> (http://github.com/gaearon)",
32+
"license": "MIT",
33+
"bugs": {
34+
"url": "https://github.com/gaearon/redux-react/issues"
35+
},
36+
"homepage": "https://github.com/gaearon/redux-react",
37+
"devDependencies": {
38+
"babel": "^5.5.8",
39+
"babel-core": "5.6.15",
40+
"babel-eslint": "^3.1.15",
41+
"babel-loader": "^5.1.4",
42+
"eslint": "^0.23",
43+
"eslint-config-airbnb": "0.0.6",
44+
"eslint-plugin-react": "^2.3.0",
45+
"expect": "^1.6.0",
46+
"istanbul": "^0.3.15",
47+
"jsdom": "~5.4.3",
48+
"mocha": "^2.2.5",
49+
"mocha-jsdom": "~0.4.0",
50+
"react": "^0.13.0",
51+
"redux": ">=1.0.0-alpha",
52+
"rimraf": "^2.3.4",
53+
"webpack": "^1.9.6",
54+
"webpack-dev-server": "^1.8.2"
55+
},
56+
"dependencies": {
57+
"invariant": "^2.0.0"
58+
},
59+
"peerDependencies": {
60+
"redux": ">=1.0.0-alpha",
61+
"react": "^0.13.0"
62+
}
63+
}

react-native.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
'use strict';
2+
3+
exports.__esModule = true;
4+
5+
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } }
6+
7+
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
8+
9+
var _libReactNative = require('./lib/react-native');
10+
11+
_defaults(exports, _interopRequireWildcard(_libReactNative));

0 commit comments

Comments
 (0)