Skip to content

Commit

Permalink
Merge pull request #1 from theverything/fix-stuff
Browse files Browse the repository at this point in the history
Fix stuff
  • Loading branch information
jkusachi committed May 23, 2016
2 parents 5370c2d + d24f82c commit 89e7c81
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 399 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
coverage
*.log
lib
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
src/**
.babelrc
.eslintrc
Makefile
.gitignore
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ MOCHA_ARGS= --compilers js:babel-register \
MOCHA_TARGET=src/**/*-test.js

build:
$(BIN)/babel src --out-dir lib
$(BIN)/babel src --out-dir lib --ignore "src/__tests__/**"

clean:
rm -rf lib
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Any data passed as the first parameter will be treated as the payload to be sent
"meta": {
"api": true,
"method": "POST",
"endpoint": "/sample",
"endpoint": "/items",
"types": [
"ITEMS_POST_REQUEST",
"ITEMS_POST_SUCCESS",
Expand Down Expand Up @@ -168,7 +168,7 @@ In this case, we are updating primary item `15` with a new object
"meta": {
"api": true,
"method": "PUT",
"endpoint": "/sample/10",
"endpoint": "/items/10",
"types": [
"ITEMS_PUT_REQUEST",
"ITEMS_PUT_SUCCESS",
Expand All @@ -181,7 +181,7 @@ In this case, we are updating primary item `15` with a new object
### DELETE
```js
let deleteItem = createAPIAction('ITEMS', 'DELETE', '/items' );
updateItem(15);
deleteItem(15);

```
In the case of `DELETE`, you just need to specify the primary id of tha which you want to delete.
Expand All @@ -201,7 +201,7 @@ No need to pass in any payload data, as that would get dropped anyways because o
"meta": {
"api": true,
"method": "DELETE",
"endpoint": "/sample/5",
"endpoint": "/items/5",
"types": [
"ITEMS_DELETE_REQUEST",
"ITEMS_DELETE_SUCCESS",
Expand Down
267 changes: 0 additions & 267 deletions lib/__tests__/createAPIAction-test.js

This file was deleted.

9 changes: 0 additions & 9 deletions lib/__tests__/init.js

This file was deleted.

Loading

0 comments on commit 89e7c81

Please sign in to comment.