Skip to content

use ES6 export, export all directives as default export, add default export test #22

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

use ES6 export, export all directives as default export, add default export test #22

wants to merge 4 commits into from

Conversation

Saeris
Copy link

@Saeris Saeris commented Aug 24, 2018

Updated all files (except for src/directiveLocation) to use ES6 export syntax.

Changed the default export for the library to be an array of all directives to streamline usage in situations where a user wants to use all of the directives provided by the library.

Added a new test to ensure the default export is an array containing only instances of GraphQLDirective.

Updated README examples with new usage.

…export tests

Updated all files (except for src/directiveLocation) to use ES6 export syntax.

Changed the default export for the library to be an array of all directives to streamline usage in situations where a user wants to use all of the directives provided by the library.

Added a new test to ensure the default export is an array containing only instances of GraphQLDirective.

Updated README examples with new usage.
@coveralls
Copy link

coveralls commented Aug 24, 2018

Coverage Status

Coverage remained the same at 100.0% when pulling 8d6ba5a on Saeris:export-all-directives into 8ad5e70 on lirown:master.

@Saeris Saeris changed the title use ES6 export, export all directives as default export, add default export tests use ES6 export, export all directives as default export, add default export test Aug 24, 2018
@lirown
Copy link
Owner

lirown commented Oct 24, 2018

conflicts?

@Saeris
Copy link
Author

Saeris commented Oct 24, 2018

Conflicts should be resolved

@@ -33,6 +33,7 @@
},
"homepage": "https://github.com/lirown/graphql-custom-directives#readme",
"dependencies": {
"lodash": "^4.17.5",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why Lodash dependency twice?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants