Closed brodycj closed 5 years ago
What are the actual changes here vs. "just" refactoring/extraction?
I broke the changes down to 4 commits to show actual changes vs refactoring & extraction and listed the changes more clearly in the description. I also changed var
-> const
throughout main.js, using let
a couple times when const
did not work.
I hope the updates are clear now. Please don't hesitate to ask if you have any further questions.
Nope, that is pretty much perfect to follow now. Left 2 comments.
Left 2 comments.
I hope they are resolved ok. I also pushed a main-js-improvements-rebased branch that puts the changes in a nicer order. (git diff main-js-improvements..main-js-improvements-rebased
shows no differences)
I would personally favor keeping the code extraction in its own commit to make it easier for others to understand exactly what changed in the future. I would also prefer to keep the non-extraction code changes in 2 commits like I proposed in main-js-improvements-rebased.
@janpio do you have any more comments? I would like to merge this one soon.
Don't have the time to try that out right now, someone else will have to review and approve. Sorry.
src/main.js
src/check-npm-install-util.js
utility modulelazyRequire
insrc/lazy-require-util.js
var
->const
/let
inmain.js
, with vertical space added before some of theconst
&let
declarationsBefore these changes, running
cordova-coho/coho
without runningnpm install
would result in the following error output: