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

Add build script #274

Merged
merged 1 commit into from Jul 5, 2020
Merged

Add build script #274

merged 1 commit into from Jul 5, 2020

Conversation

danielrearden
Copy link
Collaborator

This aligns the build process with the one currently used by express-graphql

@@ -13,8 +13,7 @@
],
"env": {
"cjs": {
"presets": [["@babel/preset-env", { "modules": "commonjs" }]],
"plugins": ["./resources/inline-invariant"]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This plugin doesn't exist. Since the babel config wasn't used by the build script, it wasn't erroring out.

@@ -11,15 +11,7 @@
"type": "git",
"url": "http://github.com/graphql/graphql-relay-js.git"
},
"main": "lib/index.js",
"directories": {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

directories and files are no longer needed since we'll be publishing directly from the dist directory

@codecov
Copy link

codecov bot commented Jul 5, 2020

Codecov Report

Merging #274 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #274   +/-   ##
=======================================
  Coverage   99.49%   99.49%           
=======================================
  Files          19       19           
  Lines         595      595           
  Branches       38       38           
=======================================
  Hits          592      592           
  Misses          3        3           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c489f44...fea1e6a. Read the comment docs.

@@ -478,4 +478,21 @@ overrides:
no-console: off
- files: '**/__*__/**'
rules:
node/no-unpublished-import: off
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Needed to add this since there were linting issues with the existing test files

Copy link
Member

Choose a reason for hiding this comment

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

just add FIXME if it something we can fix in future

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is something we had added in the other repos as an override for test files. And it makes sense to turn it off in that context but not for other files.

return packageJSON;
}

function showStats() {
Copy link
Member

Choose a reason for hiding this comment

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

can you sync up both this and express-graphql repo in a separate PR so this function will move into utils.js.

@IvanGoncharov IvanGoncharov merged commit 3d46ab8 into graphql:master Jul 5, 2020
@danielrearden danielrearden deleted the build branch July 5, 2020 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants