Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign updoc: add doc for --loader option #22104
Conversation
nodejs-github-bot
added
cli
doc
labels
Aug 3, 2018
jasnell
reviewed
Aug 3, 2018
| added: v9.0.0 | ||
| --> | ||
|
|
||
| Specify a customer loader, to load [ECMAScript Modules][]. |
This comment has been minimized.
This comment has been minimized.
jasnell
Aug 3, 2018
Member
s/customer/custom
Also, it should be noted that this is still an experimental feature.
This comment has been minimized.
This comment has been minimized.
jdalton
Aug 4, 2018
Member
I believe it's been brought up before but given that --loader is still experimental I think it would it be better if it were --experimental-loader in much the same way other experimental stuff is prefixed with --experimental-
This comment has been minimized.
This comment has been minimized.
benjamingr
Aug 4, 2018
Member
@jdalton given you have to run node with --experimental-modules anyway to use this - why?
This comment has been minimized.
This comment has been minimized.
SirR4T
Aug 6, 2018
Author
Contributor
thanks @jasnell ! fixed the typo.
Should i mention here, that it needs to be used with --experimental-modules?
This comment has been minimized.
This comment has been minimized.
jdalton
Aug 6, 2018
Member
given you have to run node with --experimental-modules anyway to use this - why?
I like the consistency of the --experimental- prefix for experimental things. The prefix makes it explicit that the feature/sub-feature is experimental.
vsemozhetbyt
reviewed
Aug 3, 2018
| @@ -687,3 +694,4 @@ greater than `4` (its current default value). For more information, see the | |||
| [debugger]: debugger.html | |||
| [emit_warning]: process.html#process_process_emitwarning_warning_type_code_ctor | |||
| [libuv threadpool documentation]: http://docs.libuv.org/en/latest/threadpool.html | |||
| [ECMAScript Modules]: esm.html#loader_hooks | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
It seems |
vsemozhetbyt
added
the
ES Modules
label
Aug 3, 2018
SirR4T
force-pushed the
SirR4T:addCliDocForLoader
branch
from
2406e35
to
9d6356d
Aug 6, 2018
This comment has been minimized.
This comment has been minimized.
|
@vsemozhetbyt Added docs for |
This comment has been minimized.
This comment has been minimized.
|
cc @nodejs/documentation for |
This comment has been minimized.
This comment has been minimized.
|
Linter issue:
|
This comment has been minimized.
This comment has been minimized.
|
@vsemozhetbyt thanks, installed markdown linter now. Will ensure i run this, before pushing any more doc updates. |
This comment has been minimized.
This comment has been minimized.
|
cc @nodejs/build-infra re CI error:
|
This comment was marked as outdated.
This comment was marked as outdated.
benjamingr
approved these changes
Aug 7, 2018
SirR4T
force-pushed the
SirR4T:addCliDocForLoader
branch
from
0dea374
to
341d4b0
Aug 8, 2018
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
|
@nodejs/documentation Can anybody confident enough look into |
jasnell
approved these changes
Aug 8, 2018
vsemozhetbyt
referenced this pull request
Aug 8, 2018
Closed
test: remove common.fileExists() #22151
This comment was marked as resolved.
This comment was marked as resolved.
|
Re CI fails: #22151 (comment) |
This comment was marked as outdated.
This comment was marked as outdated.
SirR4T
force-pushed the
SirR4T:addCliDocForLoader
branch
from
341d4b0
to
a88503c
Aug 9, 2018
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
|
Another CI: https://ci.nodejs.org/job/node-test-pull-request/16313/ If CI is green, I will land this PR tomorrow if nobody objects. |
SirR4T
force-pushed the
SirR4T:addCliDocForLoader
branch
from
a88503c
to
b4d15f5
Aug 10, 2018
This comment has been minimized.
This comment has been minimized.
|
In last CIs, it seems we have some repetitive fails in One more CI to be sure: https://ci.nodejs.org/job/node-test-pull-request/16332/ |
This comment has been minimized.
This comment has been minimized.
|
@vsemozhetbyt sorry, this maybe completely off topic, but why are |
This comment has been minimized.
This comment has been minimized.
|
Sorry, this also puzzled me and I thought that it was because I just did not know C++ :) |
vsemozhetbyt
reviewed
Aug 11, 2018
| @@ -2617,6 +2617,9 @@ static void PrintHelp() { | |||
| " --inspect[=[host:]port] activate inspector on host:port\n" | |||
| " (default: 127.0.0.1:9229)\n" | |||
| #endif // HAVE_INSPECTOR | |||
| " --loader=file (with --experimental-modules) use the \n" | |||
This comment has been minimized.
This comment has been minimized.
vsemozhetbyt
Aug 11, 2018
•
Member
If I understand @devsnek's comment correctly, this line causes the parallel/test-cli-node-print-help.js to fail when node is compiled without Intl. Maybe we can replace (with --experimental-modules) with something else, like(with experimental-modules flag)?
This comment has been minimized.
This comment has been minimized.
vsemozhetbyt
Aug 11, 2018
Member
However, if this flag can be used only with --experimental-modules, it seems we should place it inside the same if-clause and update the parallel/test-cli-node-print-help.js.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
I will add "blocked" label till #22271 is landed. Please, correct me if I am wrong. |
vsemozhetbyt
added
the
blocked
label
Aug 11, 2018
jdalton
requested changes
Aug 11, 2018
|
Please reword the main description of |
SirR4T
added some commits
Aug 3, 2018
SirR4T
force-pushed the
SirR4T:addCliDocForLoader
branch
from
b4d15f5
to
b4897b6
Aug 16, 2018
This comment has been minimized.
This comment has been minimized.
|
@jdalton : updated the doc for |
This comment has been minimized.
This comment has been minimized.
|
@SirR4T It's better. But
|
SirR4T
force-pushed the
SirR4T:addCliDocForLoader
branch
from
b4897b6
to
188fb32
Aug 16, 2018
This comment has been minimized.
This comment has been minimized.
|
thanks, @jdalton , fixed. |
vsemozhetbyt
reviewed
Aug 16, 2018
| @@ -687,3 +694,4 @@ greater than `4` (its current default value). For more information, see the | |||
| [debugger]: debugger.html | |||
| [emit_warning]: process.html#process_process_emitwarning_warning_type_code_ctor | |||
| [libuv threadpool documentation]: http://docs.libuv.org/en/latest/threadpool.html | |||
| [experimental ECMAScript Module]: esm.html#esm_loader_hooks | |||
This comment has been minimized.
This comment has been minimized.
vsemozhetbyt
Aug 16, 2018
•
Member
Nit: reference list is sorted in ASCII order, so this item needs to be placed before the [libuv threadpool documentation].
This comment has been minimized.
This comment has been minimized.
SirR4T
Aug 16, 2018
•
Author
Contributor
Sure, will fix that. Any way we could add this as a rule to make lint?
This comment has been minimized.
This comment has been minimized.
vsemozhetbyt
Aug 16, 2018
Member
It would be helpful to have it as a rule as we are already a bit messy in some docs in these sections,
This comment has been minimized.
This comment has been minimized.
SirR4T
Aug 17, 2018
Author
Contributor
Would updating remark-preset-lint-node to also include remark-lint-alphabetize-lists work? I expect this would cause build failures, if remark-preset-lint-node was updated before fixes for that landed in master. How would the transition be handled?
This comment has been minimized.
This comment has been minimized.
vsemozhetbyt
Aug 17, 2018
Member
I am not sure that remark-lint-alphabetize-lists can fix this case as reference lists are not common markdown lists. Maybe @rubys can tell if there is a ready easy solution for this?
This comment has been minimized.
This comment has been minimized.
rubys
Aug 17, 2018
Member
Remark calls those lines definitions. Looking at the source to remark-lint-alphabetize-lists
, if list where changed to definition on line 18, the code would do what you want.
jdalton
approved these changes
Aug 16, 2018
vsemozhetbyt
removed
the
blocked
label
Aug 16, 2018
This comment has been minimized.
This comment has been minimized.
|
#22271 is merged, so let's unblock and run CI: |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Landed in 9d6619e |
SirR4T commentedAug 3, 2018
Fixes #21230
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes