- Notifications
You must be signed in to change notification settings - Fork488
Add loader for .graqhql files#270
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
33f23ff to6bd2327Comparebahkostya commentedMar 7, 2018
Can somebody from maintainers look at this pull request Please?@DorianGrey,@wmonk |
harrisrobin commentedApr 7, 2018
Yes, need this please. Thank you! |
DorianGrey left a comment
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 very sorry for this delayed reponse - I've been quite busy the last couple of weeks and didn't have the time to look into this as precisely as it deserves.
Most things are looking fine, apart from the two issues mentioned (where only one is critical).
Side note:@wmonk , even though this would be "pre-picking" of a CRA 2.x feature, I suppose it's not that unlikely, esp. since it cuts down a bit of merging work for that version ... ;)
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.
Is there any particular reason that this loader is only registered indev, but not inprod mode? (See thewebpack.config.prod.js)
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.
Suppose this note is not required here, since this PR results in some kind of "pre-picking".
simsim0709 commentedApr 24, 2018
Hi,@patrick91 Are you still working on this pr? If not, I would like to make a pr again, cuz I need it for my project. Thank you |
patrick91 commentedApr 24, 2018
I'll finish this in the weekend if that's ok :) |
simsim0709 commentedApr 25, 2018
Yop. No problem. Thank you for this pr!! 😀 |
eddiemoore commentedMay 14, 2018
Any progress on this? |
4f61b6b to0914932Comparepatrick91 commentedMay 14, 2018
Sorry folks! I was travelling, I just pushed the changes, thanks for the nudges@eddiemoore@simsim0709 :) @DorianGrey this should be fine to merge now, as soon as I fix the failure on travis ci :) |
0914932 tod3716d5Comparepatrick91 commentedMay 14, 2018
Ok, I'm not sure why it fails,@DorianGrey can you tell me how to run the single failing test locally? I had troubles with docker unfortunately |
DorianGrey commentedMay 15, 2018
You may just run The particular test that seems to fail in your case is this one:https://github.com/wmonk/create-react-app-typescript/blob/master/tasks/e2e-kitchensink.sh#L144 |
patrick91 commentedMay 16, 2018
@DorianGrey yeah, I saw that, I was able to run the kitchensink locally but with no luck, it seems like it using an old version of the scripts, I even tried to delete the config and it didn't break, mmh, let me try again |
ad4613d tod3716d5Comparepatrick91 commentedMay 16, 2018
@DorianGrey it seems that we need to pass so it will load the correct scripts, but the test fails still, with a different failure |
DorianGrey commentedMay 17, 2018
Hm... I'm not sure about adding this, since |
patrick91 commentedMay 17, 2018
Yup, but without it we are testing the wrong scripts right? I'm happy to do another PR with the updated tests if that's ok :) |
DorianGrey commentedMay 17, 2018 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
The It might take a little more to set this up properly, i.e. not only modifying the generation command, but the whole particular template. PR is welcome, though 👍 |
heresandyboy commentedSep 21, 2018
Hi, I have been trying to figure out how to use .graphql files in create-react-app-typescript. My investigations have led me to this PR - was support for loading .graphql ever implemented? Are there any workarounds available? My main reason for switching from .ts files using gql`` is so that I can easily use fragments. |
Closes#269
See:facebook/create-react-app#3909