Uh oh!
There was an error while loading. Please reload this page.
Test local commands - #56
Conversation
mxstbr
commented
Jul 21, 2016
Not sure what's happening on Travis, I don't have access to the logs. @gaearon could you check? |
gaearon
commented
Jul 21, 2016
This is because both argv checks assume there is only one argument. So you can't pass both --debug-template and --smoke-test. Replacing the comparisons with indexOf in both places should do the trick. |
mxstbr
commented
Jul 21, 2016
Sorry, where do I pass |
gaearon
commented
Jul 21, 2016
It is being passed from This flag is read in DEV Webpack config. But there is another flag (for smoke test) read in The smoke test flag ensures process terminates. (This is why your PR fails. Smoke test flag is tested for exact match with |
gaearon
commented
Jul 21, 2016
The problem is in the comparison. It compares |
mxstbr
commented
Jul 21, 2016
Ahh, I got what you mean now, thanks. Should be fixed in the last commit, let's see if Travis passes… ✨ |
gaearon
commented
Jul 21, 2016
Now that I think of it we probably should search argv array itself. Also need to do it in both places. |
vjeux
commented
Jul 21, 2016
Since it's starting to be complicated parsing of arguments, should probably use minimist: https://github.com/facebookincubator/create-react-app/blob/master/global-cli/index.js#L43 |
mxstbr
commented
Jul 21, 2016
Should just be a case of running |
mxstbr
commented
Jul 21, 2016
Where's the other place? |
mxstbr
commented
Jul 21, 2016
This took way longer than anticipated, but should finally be done hopefully! |
gaearon
commented
Jul 21, 2016
😄 |
God dammit, merge conflict |
mxstbr
commented
Jul 21, 2016
Merge?! |
| npm run build | ||
| # Check for expected output | ||
| test -e build/*.html || exit 1 |
There was a problem hiding this comment.
You don't need the exit 1. We use set -e which bails on any commands that returns non 0
There was a problem hiding this comment.
I added those in the first place, I didn’t realize that.
@mxstbr You can kill them throughout this script
gaearon
commented
Jul 22, 2016
Got it, thanks. I’ll rebase this new because there’s another conflict 😄 |
mxstbr
commented
Jul 22, 2016
Thanks! Sorry this took that long 🙏 |
Reference #52 (comment), hope this works…