-
Notifications
You must be signed in to change notification settings - Fork 10
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
make file structure closer to Node.js' #6
Conversation
Having the file structure as close as nodejs/node one will help keeping the code up-to-date. We can also use package imports for the require calls to be as close as the upstream ones as possible.
bin/test_runner.js
Outdated
@@ -1,5 +1,5 @@ | |||
#!/usr/bin/env node | |||
// https://github.com/cjihrig/node/blob/484d35402de36d8d5756b244c8e5fbb8aa4c6afd/lib/internal/main/test_runner.js | |||
// https://github.com/nodejs/node/blob/HEAD/lib/internal/main/test_runner.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.
+1 for changing the repo, I liked keeping the sha in there so you could tell exactly which file this was ported from. What do you think?
lib/internal/errors.js
Outdated
const expectedLength = | ||
(StringPrototypeMatch(msg, /%[dfijoOs]/g) || []).length | ||
const expectedLength = (StringPrototypeMatch(msg, /%[dfijoOs]/g) || []) | ||
.length |
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.
about the style changes, shall we move away from standard
to match node core closer (with semicolons and all)?
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.
Ugh, that's my VSCode config that's messing with me, trying to run Prettier on standard files
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 was using prettier-standard before but realized it was unmaintained
@@ -0,0 +1,221 @@ | |||
// https://github.com/nodejs/node/blob/HEAD/lib/internal/test_runner/tap_stream.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.
some of these files exist twice now
Having the file structure as close as nodejs/node one will help keeping
the code up-to-date. We can also use package imports for the require
calls to be as close as the upstream ones as possible.