Skip to content

Commit

Permalink
feat(package): reimplement in ES6, support GET and POST methods, Grap…
Browse files Browse the repository at this point in the history
…hiQL integration
  • Loading branch information
tothandras committed Nov 2, 2015
1 parent f199db1 commit ee77980
Show file tree
Hide file tree
Showing 38 changed files with 998 additions and 819 deletions.
104 changes: 6 additions & 98 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"extends": "airbnb/base",
"ecmaFeatures": {
"blockBindings": true,
"forOf": true,
Expand All @@ -17,102 +18,9 @@
},
"parser": "babel-eslint",
"rules": {
"accessor-pairs": 2,
"arrow-spacing": [2, { "before": true, "after": true }],
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"comma-dangle": [2, "never"],
"comma-spacing": [2, { "before": false, "after": true }],
"comma-style": [2, "last"],
"constructor-super": 2,
"curly": [2, "multi-line"],
"dot-location": [2, "property"],
"eol-last": 2,
"eqeqeq": [2, "allow-null"],
"generator-star-spacing": [2, { "before": true, "after": true }],
"handle-callback-err": [2, "^(err|error)$" ],
"indent": [2, 2, { "indentSwitchCase": true }],
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
"new-cap": [2, { "newIsCap": true, "capIsNew": false }],
"new-parens": 2,
"no-array-constructor": 2,
"no-caller": 2,
"no-class-assign": 2,
"no-cond-assign": 2,
"no-const-assign": 2,
"no-control-regex": 2,
"no-debugger": 2,
"no-delete-var": 2,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-duplicate-case": 2,
"no-empty-character-class": 2,
"no-empty-label": 2,
"no-eval": 2,
"no-ex-assign": 2,
"no-extend-native": 2,
"no-extra-bind": 2,
"no-extra-boolean-cast": 2,
"no-extra-parens": [2, "functions"],
"no-fallthrough": 2,
"no-floating-decimal": 2,
"no-func-assign": 2,
"no-implied-eval": 2,
"no-inner-declarations": [2, "functions"],
"no-invalid-regexp": 2,
"no-irregular-whitespace": 2,
"no-iterator": 2,
"no-label-var": 2,
"no-labels": 2,
"no-lone-blocks": 2,
"no-mixed-spaces-and-tabs": 2,
"no-multi-spaces": 2,
"no-multi-str": 2,
"no-multiple-empty-lines": [2, { "max": 1 }],
"no-native-reassign": 2,
"no-negated-in-lhs": 2,
"no-new": 2,
"no-new-func": 2,
"no-new-object": 2,
"no-new-require": 2,
"no-new-wrappers": 2,
"no-obj-calls": 2,
"no-octal": 2,
"no-octal-escape": 2,
"no-proto": 2,
"no-redeclare": 2,
"no-regex-spaces": 2,
"no-return-assign": 2,
"no-self-compare": 2,
"no-sequences": 2,
"no-shadow-restricted-names": 2,
"no-spaced-func": 2,
"no-sparse-arrays": 2,
"no-this-before-super": 2,
"no-throw-literal": 2,
"no-trailing-spaces": 2,
"no-undef": 2,
"no-undef-init": 2,
"no-unexpected-multiline": 2,
"no-unneeded-ternary": 2,
"no-unreachable": 2,
"no-useless-call": 2,
"no-with": 2,
"one-var": [2, { "initialized": "never" }],
"operator-linebreak": [2, "after"],
"quotes": [2, "single", "avoid-escape"],
"radix": 2,
"semi": [2, "always"],
"space-after-keywords": [2, "always"],
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, "never"],
"space-in-parens": [2, "never"],
"space-infix-ops": 2,
"space-return-throw-case": 2,
"space-unary-ops": [2, { "words": true, "nonwords": false }],
"spaced-comment": [2, "always", { "markers": ["global", "globals", "eslint", "eslint-disable", "*package", "!", ","] }],
"use-isnan": 2,
"valid-typeof": 2,
"wrap-iife": [2, "any"],
"yoda": [2, "never"]
"no-shadow": 0,
"no-param-reassign": 0,
"id-length": [2, {"exceptions": ["_", "i"]}],
"comma-dangle": [1, "never"]
}
}
}
8 changes: 2 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Logs
logs
*.log
lib
dist

# Runtime data
pids
Expand All @@ -13,15 +15,9 @@ lib-cov
# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules
4 changes: 4 additions & 0 deletions .jscsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"preset": "airbnb",
"requireTrailingComma": false
}
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
coverage
.travis.yml
example
.idea
src
*.spec.js
4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

129 changes: 44 additions & 85 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,16 @@

### chore

* chore(package): bump version to 1.0.2
([7c6aef2](https://github.com/RisingStack/graffiti/commit/7c6aef2))
* chore(changelog): update changelog ([bb10f78](https://github.com/RisingStack/graffiti/commit/bb10f78))
* chore(package): bump version to 1.0.2 ([7c6aef2](https://github.com/RisingStack/graffiti/commit/7c6aef2))

### docs

* docs(readme): add roadmap
([1a33dc0](https://github.com/RisingStack/graffiti/commit/1a33dc0))
* docs(readme): add roadmap ([1a33dc0](https://github.com/RisingStack/graffiti/commit/1a33dc0))

### fix

* fix(middleware): use graphql of the adapter
([d1af1ee](https://github.com/RisingStack/graffiti/commit/d1af1ee))
* fix(middleware): use graphql of the adapter ([d1af1ee](https://github.com/RisingStack/graffiti/commit/d1af1ee))



Expand All @@ -25,12 +23,10 @@

### chore

* chore(npmignore): add .npmignore file
([b1917b4](https://github.com/RisingStack/graffiti/commit/b1917b4))
* chore(package): add keywords to package.json, fix license
([5478001](https://github.com/RisingStack/graffiti/commit/5478001))
* chore(package): bump version to 1.0.1
([e5c0476](https://github.com/RisingStack/graffiti/commit/e5c0476))
* chore(changelog): update CHANGELOG.md ([a928d35](https://github.com/RisingStack/graffiti/commit/a928d35))
* chore(npmignore): add .npmignore file ([b1917b4](https://github.com/RisingStack/graffiti/commit/b1917b4))
* chore(package): add keywords to package.json, fix license ([5478001](https://github.com/RisingStack/graffiti/commit/5478001))
* chore(package): bump version to 1.0.1 ([e5c0476](https://github.com/RisingStack/graffiti/commit/e5c0476))



Expand All @@ -40,88 +36,51 @@

### chore

* chore(changelog): add CHANGELOG file to project
([1fa3fb7](https://github.com/RisingStack/graffiti/commit/1fa3fb7))
* chore(ci): configure travis via file
([8d930bd](https://github.com/RisingStack/graffiti/commit/8d930bd))
* chore(contributing): add CONTRIBUTING file
([8b41f3e](https://github.com/RisingStack/graffiti/commit/8b41f3e))
* chore(package): add --harmony flag to mocha to support Node.js v0.12
([39338d6](https://github.com/RisingStack/graffiti/commit/39338d6))
* chore(package): add package.json file
([eec7c31](https://github.com/RisingStack/graffiti/commit/eec7c31))
* chore(project): add ESLint
([05b2abc](https://github.com/RisingStack/graffiti/commit/05b2abc))
* chore(project): add LICENSE
([ff0cc46](https://github.com/RisingStack/graffiti/commit/ff0cc46))
* chore(project): add README and .gitignore files
([172dc93](https://github.com/RisingStack/graffiti/commit/172dc93))
* chore(changelog): add CHANGELOG file to project ([1fa3fb7](https://github.com/RisingStack/graffiti/commit/1fa3fb7))
* chore(changelog): update CHANGELOG.md ([7a74fde](https://github.com/RisingStack/graffiti/commit/7a74fde))
* chore(ci): configure travis via file ([8d930bd](https://github.com/RisingStack/graffiti/commit/8d930bd))
* chore(contributing): add CONTRIBUTING file ([8b41f3e](https://github.com/RisingStack/graffiti/commit/8b41f3e))
* chore(package): add --harmony flag to mocha to support Node.js v0.12 ([39338d6](https://github.com/RisingStack/graffiti/commit/39338d6))
* chore(package): add package.json file ([eec7c31](https://github.com/RisingStack/graffiti/commit/eec7c31))
* chore(project): add ESLint ([05b2abc](https://github.com/RisingStack/graffiti/commit/05b2abc))
* chore(project): add LICENSE ([ff0cc46](https://github.com/RisingStack/graffiti/commit/ff0cc46))
* chore(project): add README and .gitignore files ([172dc93](https://github.com/RisingStack/graffiti/commit/172dc93))

### docs

* docs(readkme): add "What is GraphQL?" section to README
([553f1f6](https://github.com/RisingStack/graffiti/commit/553f1f6))
* docs(readme): add Express and Hapi middleware examples to README
([c09de39](https://github.com/RisingStack/graffiti/commit/c09de39))
* docs(readme): add TravisCI badge to README
([59b9288](https://github.com/RisingStack/graffiti/commit/59b9288))
* docs(readme): add graffiti overview to README
([ff74268](https://github.com/RisingStack/graffiti/commit/ff74268))
* docs(readme): add logo to the README
([e8cefcd](https://github.com/RisingStack/graffiti/commit/e8cefcd)), closes [#1](https://github.com/RisingStack/graffiti/issues/1)
* docs(readme): add plugins section to README
([b804dfa](https://github.com/RisingStack/graffiti/commit/b804dfa))
* docs(readme): fix GraphQL tutorial anchor text
([3c7e01a](https://github.com/RisingStack/graffiti/commit/3c7e01a))
* docs(readme): fix Hapi related typo in README
([6bdb276](https://github.com/RisingStack/graffiti/commit/6bdb276))
* docs(readme): fix typo in README
([d036436](https://github.com/RisingStack/graffiti/commit/d036436))
* docs(readme): fix typo in REAME
([5e47ec5](https://github.com/RisingStack/graffiti/commit/5e47ec5))
* docs(readme): fix typo in REAME
([e6b31a6](https://github.com/RisingStack/graffiti/commit/e6b31a6))
* docs(readme): link plugins to usage
([ea7eb66](https://github.com/RisingStack/graffiti/commit/ea7eb66))
* docs(readme): rename plugins to adapters in README
([28a1fc2](https://github.com/RisingStack/graffiti/commit/28a1fc2))
* docs(readkme): add "What is GraphQL?" section to README ([553f1f6](https://github.com/RisingStack/graffiti/commit/553f1f6))
* docs(readme): add Express and Hapi middleware examples to README ([c09de39](https://github.com/RisingStack/graffiti/commit/c09de39))
* docs(readme): add graffiti overview to README ([ff74268](https://github.com/RisingStack/graffiti/commit/ff74268))
* docs(readme): add logo to the README ([e8cefcd](https://github.com/RisingStack/graffiti/commit/e8cefcd)), closes [#1](https://github.com/RisingStack/graffiti/issues/1)
* docs(readme): add plugins section to README ([b804dfa](https://github.com/RisingStack/graffiti/commit/b804dfa))
* docs(readme): add TravisCI badge to README ([59b9288](https://github.com/RisingStack/graffiti/commit/59b9288))
* docs(readme): fix GraphQL tutorial anchor text ([3c7e01a](https://github.com/RisingStack/graffiti/commit/3c7e01a))
* docs(readme): fix Hapi related typo in README ([6bdb276](https://github.com/RisingStack/graffiti/commit/6bdb276))
* docs(readme): fix typo in README ([d036436](https://github.com/RisingStack/graffiti/commit/d036436))
* docs(readme): fix typo in REAME ([5e47ec5](https://github.com/RisingStack/graffiti/commit/5e47ec5))
* docs(readme): fix typo in REAME ([e6b31a6](https://github.com/RisingStack/graffiti/commit/e6b31a6))
* docs(readme): link plugins to usage ([ea7eb66](https://github.com/RisingStack/graffiti/commit/ea7eb66))
* docs(readme): rename plugins to adapters in README ([28a1fc2](https://github.com/RisingStack/graffiti/commit/28a1fc2))

### feat

* feat(express): add Express middleware
([80b5ddc](https://github.com/RisingStack/graffiti/commit/80b5ddc))
* feat(hapi): add Hapi plugin
([fac1791](https://github.com/RisingStack/graffiti/commit/fac1791))
* feat(koa): add Koa middleware
([cdecd28](https://github.com/RisingStack/graffiti/commit/cdecd28))
* feat(middleware): add project skeleton
([e50c0ce](https://github.com/RisingStack/graffiti/commit/e50c0ce))
* feat(util): add object property assert with throw
([2cfb447](https://github.com/RisingStack/graffiti/commit/2cfb447))
* feat(express): add Express middleware ([80b5ddc](https://github.com/RisingStack/graffiti/commit/80b5ddc))
* feat(hapi): add Hapi plugin ([fac1791](https://github.com/RisingStack/graffiti/commit/fac1791))
* feat(koa): add Koa middleware ([cdecd28](https://github.com/RisingStack/graffiti/commit/cdecd28))
* feat(middleware): add project skeleton ([e50c0ce](https://github.com/RisingStack/graffiti/commit/e50c0ce))
* feat(util): add object property assert with throw ([2cfb447](https://github.com/RisingStack/graffiti/commit/2cfb447))

### refactor

* refactor(util): move isGet and isPrefixed to util
([72a104b](https://github.com/RisingStack/graffiti/commit/72a104b))
* refactor(util): move isGet and isPrefixed to util ([72a104b](https://github.com/RisingStack/graffiti/commit/72a104b))

### test

* test(express): add failing test cases for Express middleware
([4349a48](https://github.com/RisingStack/graffiti/commit/4349a48))
* test(express): cover Express middleware schema creation with tests
([348aac9](https://github.com/RisingStack/graffiti/commit/348aac9))
* test(express): cover Express middleware with tests
([8dc7282](https://github.com/RisingStack/graffiti/commit/8dc7282))
* test(express): finish up test cases for the Express middleware
([b0b3dd0](https://github.com/RisingStack/graffiti/commit/b0b3dd0))
* test(hapi): cover Hapi plugin with tests
([e826ad3](https://github.com/RisingStack/graffiti/commit/e826ad3))
* test(hapi): improve Hapi plugin test coverage
([1be58ad](https://github.com/RisingStack/graffiti/commit/1be58ad))
* test(koa): cover Koa middleware with tests
([f0dce2e](https://github.com/RisingStack/graffiti/commit/f0dce2e))
* test(util): add skipping test cases for isPrefixed and isGet
([e824db5](https://github.com/RisingStack/graffiti/commit/e824db5))



* test(express): add failing test cases for Express middleware ([4349a48](https://github.com/RisingStack/graffiti/commit/4349a48))
* test(express): cover Express middleware schema creation with tests ([348aac9](https://github.com/RisingStack/graffiti/commit/348aac9))
* test(express): cover Express middleware with tests ([8dc7282](https://github.com/RisingStack/graffiti/commit/8dc7282))
* test(express): finish up test cases for the Express middleware ([b0b3dd0](https://github.com/RisingStack/graffiti/commit/b0b3dd0))
* test(hapi): cover Hapi plugin with tests ([e826ad3](https://github.com/RisingStack/graffiti/commit/e826ad3))
* test(hapi): improve Hapi plugin test coverage ([1be58ad](https://github.com/RisingStack/graffiti/commit/1be58ad))
* test(koa): cover Koa middleware with tests ([f0dce2e](https://github.com/RisingStack/graffiti/commit/f0dce2e))
* test(util): add skipping test cases for isPrefixed and isGet ([e824db5](https://github.com/RisingStack/graffiti/commit/e824db5))
Loading

0 comments on commit ee77980

Please sign in to comment.