-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Step 3: convert browserify build to webpack, fixes #976 #1001
Conversation
17e85c6
to
03bfcad
Compare
03bfcad
to
48452c0
Compare
Codecov Report
@@ Coverage Diff @@
## master #1001 +/- ##
==========================================
+ Coverage 43.52% 43.73% +0.21%
==========================================
Files 66 65 -1
Lines 2996 3018 +22
Branches 649 656 +7
==========================================
+ Hits 1304 1320 +16
- Misses 1421 1425 +4
- Partials 271 273 +2
Continue to review full report at Codecov.
|
0961e68
to
e0a01ea
Compare
f97c273
to
3bed71b
Compare
15df49b
to
275a5f2
Compare
1538a0c
to
915a595
Compare
3c99618
to
7021e10
Compare
328a0b0
to
fa5e372
Compare
@@ -64,27 +67,32 @@ | |||
"react-dom": "^15.6.0 || ^16.0.0" | |||
}, | |||
"devDependencies": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replacing the entire bundling toolchain. thus the huge yarn lock diff
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM; if you're happy it builds correctly then I'm happy.
cy.window().then(w => { | ||
cy.expect(JSON.parse(w.g.resultComponent.viewer.getValue())).to.deep.equal( | ||
mockSuccess, | ||
); | ||
}); | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lint issue?
envConfig.modules = 'umd' | ||
envConfig.targets = null | ||
envConfig.ignoreBrowserslistConfig = false | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather this used an if/elseif/else
chain and instead of overwriting the initial properties of envConfig
it set variables that were then used to create the envConfig
object afterwards, but 🤷♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm so averse to else it's problematic, haha! will take note for further iterations
Co-Authored-By: Benjie Gillam <benjie@jemjie.com>
@@ -0,0 +1,4 @@ | |||
babel.config.js | |||
.gitignore | |||
resources |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By not publishing resources
here, the reference at
require('codemirror-graphql/results/mode'); |
is no longer valid. Either this line or that line should be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’m confused? that import is from codemirror-graphql, which still exports that module. are you having issues? this PR was merged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if what you are saying is true, then the results viewer would fail to highlight jaon here in the current build of master:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I got resources
and results
confused so this isn't the direct issue. Regardless, there's still an issue with the latest codemirror-graphql
package because the results
folder, referenced in the line above, does not exist.
~ npm install codemirror-graphql@0.11.5
~ ls node_modules/codemirror-graphql/results
ls: node_modules/codemirror-graphql/results: No such file or directory
This broken link is causing my build to fail, so I've resorted back to graphiql@0.17.2
and manually pinning codemirror-graphql@0.11.4
(which does publish this folder) for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@caseywebdev try now with 0.11.6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://unpkg.com/browse/codemirror-graphql@0.11.6/ my bad! we should be doing pre-releases for all these build changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working again 👍🏻 Thanks for the quick turnaround!
oh yikes! thanks for reporting this. ill have to see what happened and fix
it immediately
…On Mon, Dec 9, 2019 at 1:46 PM Casey Foster ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In packages/codemirror-graphql/.npmignore
<#1001 (comment)>:
> @@ -0,0 +1,4 @@
+babel.config.js
+.gitignore
+resources
Sorry, I got resources and results confused so this isn't the direct
issue. Regardless, there's still an issue with the latest
codemirror-graphql package because the results folder, referenced in the
line above, does not exist.
~ npm install ***@***.***~ ls node_modules/codemirror-graphql/results
ls: node_modules/codemirror-graphql/results: No such file or directory
This broken link is causing my build to fail, so I've resorted back to
***@***.*** and manually pinning ***@***.*** (which
does publish this folder) for now.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#1001?email_source=notifications&email_token=AAKOFF2YWIUCAVC6KMZOBPTQX2G65A5CNFSM4JOS5R2KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCOPD3BQ#discussion_r355618948>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKOFF3NESQO2WQCCOGX4ZLQX2G65ANCNFSM4JOS5R2A>
.
|
the vast amount the added lines to this PR are via the yarn.lock file, FYI! this PR is mostly a 120 line webpack config file and some tooling and configuration changes.
build
20s andbuild-bundle
. This came with replacing browserify, as we no longer needed a bash script. Also added crossenv, rimraf, etcgraphiql.min.css
too! (note: temporary til styled components)yarn dev
server to mount webpack dev server with test GraphQL server, instead of the exact same pattern using browserifyexpect()
in cypress specs that was failing lint(parsed size, from webpack output)
here is proof (on the far right) that the file utility from the first PR in this series is working:
