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

Redux Bees Monorepo #30

Closed
wants to merge 2 commits into from
Closed
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: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
lib
lerna-debug.log
npm-debug.log
7 changes: 7 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"lerna": "2.4.0",
"version": "0.0.0",
"packages": [
"packages/*"
]
}
47 changes: 3 additions & 44 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,5 @@
{
"name": "redux-bees",
"version": "0.1.7",
"description": "A nice, declarative way of managing JSON API calls with Redux",
"main": "lib/index.js",
"scripts": {
"prepublish": "rimraf lib && mkdir lib && npm run lib",
"start": "webpack-dev-server --open",
"start-server": "babel-node example/server-side.js",
"lib": "babel src --out-dir lib",
"test": "babel-node test/index.js | tap-dot"
},
"files": [
"lib"
],
"author": "Stefano Verna <[email protected]>",
"license": "ISC",
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-loader": "^7.0.0",
"babel-plugin-module-alias": "^1.6.0",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"node-fetch": "^1.7.2",
"prop-types": "^15.5.10",
"react-dom": "^15.5.4",
"react-router": "^4.1.2",
"react-router-config": "^1.0.0-beta.3",
"redux": "^3.6.0",
"rimraf": "^2.6.1",
"tap-dot": "^1.0.5",
"tape": "^4.7.0",
"webpack": "^2.6.1",
"webpack-dev-server": "^2.4.5"
},
"dependencies": {
"hoist-non-react-statics": "^2.2.2",
"object-path-immutable": "^0.5.1",
"object.omit": "^2.0.1",
"query-string": "^4.3.4",
"react": "*",
"react-redux": "*"
}
"devDependencies": {
"lerna": "^2.4.0"
}
}
11 changes: 11 additions & 0 deletions packages/redux-bees-core/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"presets": ["es2015", "react"],
"plugins": [
"transform-object-rest-spread",
"transform-decorators-legacy",
["module-alias", [
{ "src": "./src", "expose": "redux-bees-core" },
]]
],
}

3 changes: 3 additions & 0 deletions packages/redux-bees-core/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

node_modules
lib
25 changes: 25 additions & 0 deletions packages/redux-bees-core/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "redux-bees-core",
"version": "0.1.0",
"description": "Redux Bees Core Package",
"main": "lib/index.js",
"scripts": {
"prepublish": "rimraf lib && mkdir lib && npm run lib",
"lib": "babel src --out-dir lib"
},
"author": "Stefano Verna <[email protected]>",
"license": "MIT",
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-loader": "^7.0.0",
"babel-plugin-module-alias": "^1.6.0",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
"babel-preset-es2015": "^6.24.1",
"node-fetch": "^1.7.2",
"rimraf": "^2.6.1"
},
"dependencies": {
"query-string": "^4.3.4"
}
}
File renamed without changes.
File renamed without changes.
43 changes: 43 additions & 0 deletions packages/redux-bees-core/src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import {
get,
post,
patch,
put,
destroy,
} from './httpMethods';

import {
getEntity,
getRelationship,
getRequestResult,
isRequestLoading,
hasRequestStarted,
getRequestError,
getRequestHeaders,
getRequestMeta,
getRequestInfo,
} from './selectors';


export { default as buildApi } from './buildApi';


export {
get,
post,
patch,
put,
destroy,

getEntity,
getRelationship,
getRequestResult,
isRequestLoading,
hasRequestStarted,
getRequestError,
getRequestHeaders,
getRequestMeta,
getRequestInfo,
};


File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions packages/redux-bees/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

node_modules
lib
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
46 changes: 46 additions & 0 deletions packages/redux-bees/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "redux-bees",
"version": "0.1.7",
"description": "A nice, declarative way of managing JSON API calls with Redux",
"main": "lib/index.js",
"scripts": {
"prepublish": "rimraf lib && mkdir lib && npm run lib",
"start": "webpack-dev-server --open",
"start-server": "babel-node example/server-side.js",
"lib": "babel src --out-dir lib",
"test": "babel-node test/index.js | tap-dot"
},
"files": [
"lib"
],
"author": "Stefano Verna <[email protected]>",
"license": "ISC",
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-loader": "^7.0.0",
"babel-plugin-module-alias": "^1.6.0",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"node-fetch": "^1.7.2",
"prop-types": "^15.5.10",
"react-dom": "^15.5.4",
"react-router": "^4.1.2",
"react-router-config": "^1.0.0-beta.3",
"redux": "^3.6.0",
"rimraf": "^2.6.1",
"tap-dot": "^1.0.5",
"tape": "^4.7.0",
"webpack": "^2.6.1",
"webpack-dev-server": "^2.4.5"
},
"dependencies": {
"hoist-non-react-statics": "^2.2.2",
"object-path-immutable": "^0.5.1",
"object.omit": "^2.0.1",
"query-string": "^4.3.4",
"react": "*",
"react-redux": "*"
}
}
File renamed without changes.
26 changes: 0 additions & 26 deletions src/index.js → packages/redux-bees/src/index.js
Original file line number Diff line number Diff line change
@@ -1,39 +1,13 @@
import {
get,
post,
patch,
put,
destroy,
} from './httpMethods';

import {
getEntity,
getRelationship,
getRequestResult,
isRequestLoading,
hasRequestStarted,
getRequestError,
getRequestHeaders,
getRequestMeta,
getRequestInfo,
} from './selectors';

import {
invalidateRequests,
} from './actions';

export { default as buildApi } from './buildApi';
export { default as reducer } from './reducer';
export { default as middleware } from './middleware';
export { default as query } from './query';

export {
get,
post,
patch,
put,
destroy,

getEntity,
getRelationship,
getRequestResult,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.