Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor/React #38

Open
wants to merge 5 commits into
base: release/3.0.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["es2015", "react", "stage-0"]
}
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org
root = true

[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2

[*.{js,jsx}]
indent_style = space
indent_size = 2

[Makefile]
indent_style = tab
21 changes: 21 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"extends": "airbnb",
"env": {
"mocha": true
},
"rules": {
"react/jsx-closing-bracket-location": [1, "after-props"],
"new-cap": ["error", {"capIsNew": false}],
"no-unused-expressions": 0,
},
"settings": {
"import/resolver": {
"webpack": { config: 'webpack.config.js' },
},
},
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
}
},
}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
*.iml
*.ipr
*.pem
.idea
.idea
node_modules
67 changes: 67 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"name": "isolated-react-redux",
"version": "0.0.3",
"description": "Provide a isolated redux style way to handle state",
"main": "dist/index.js",
"scripts": {
"test": "mocha",
"build": "NODE_ENV=production node node_modules/webpack/bin/webpack --progress --watch",
"dev": "node node_modules/webpack-dev-server/bin/webpack-dev-server --host=0.0.0.0 --content-base=package --hot --inline --watch --history-api-fallback"
},
"repository": {
"type": "git",
"url": "git+https://github.com/neekey/isolated-react-redux.git"
},
"keywords": [
"react",
"react-redux",
"redux",
"isolate"
],
"author": "neekey",
"license": "MIT",
"bugs": {
"url": "https://github.com/neekey/isolated-react-redux/issues"
},
"homepage": "https://github.com/neekey/isolated-react-redux#readme",
"devDependencies": {
"autoprefixer": "^6.5.1",
"babel-core": "^6.17.0",
"babel-loader": "^6.2.4",
"babel-preset-es2015": "^6.16.0",
"babel-preset-react": "^6.16.0",
"babel-preset-stage-0": "^6.16.0",
"chai": "^3.5.0",
"css-loader": "^0.23.1",
"enzyme": "^2.4.1",
"eslint": "^2.10.2",
"eslint-config-airbnb": "^9.0.1",
"eslint-import-resolver-webpack": "^0.2.4",
"eslint-loader": "^1.3.0",
"eslint-plugin-import": "^1.8.0",
"eslint-plugin-jsx-a11y": "^1.2.0",
"eslint-plugin-react": "^5.1.1",
"json-loader": "^0.5.4",
"mocha": "^3.1.0",
"node-sass": "^3.10.1",
"postcss-loader": "^1.0.0",
"react": "^3.6.0",
"sass-loader": "^4.0.2",
"sinon": "^1.17.6",
"source-map-support": "^0.4.5",
"style-loader": "^0.13.1",
"webpack": "^1.13.2",
"webpack-dev-server": "^1.16.2"
},
"dependencies": {
"classnames": "^2.2.5",
"howler": "^2.0.1",
"immutability-helper": "^2.0.0",
"jquery": "^3.1.1",
"react": "^15.3.2",
"react-dom": "^15.3.2",
"react-redux": "^4.4.5",
"react-toolbox": "^1.2.3",
"whatwg-fetch": "^1.0.0"
}
}
10 changes: 10 additions & 0 deletions package/background.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!doctype html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
<script type="text/javascript" src="./background.js"></script>
</head>
<body>
</body>
</html>
Loading