Is there any documentation anywhere about what the...
# development
a
Is there any documentation anywhere about what the JS backend can do/what features are planned or need help? (ping @worried-painter-31382, I think)
b
For planned/need help, https://github.com/pantsbuild/pants/issues/19240 and other issues with
backend: JavaScript
label might be a starting point. https://github.com/pantsbuild/pants/pull/19168#discussion_r1215699869 was the docs I was referring to for my first experiments with it
a
Aha. So as far as "running tests" goes, is that on a per source file basis, or is it by way of runners implemented as
node_test_script
s?
b
You’ve exhausted my knowledge 😄 I haven’t had time to get to tests yet
a
Fair enough. I'm hoping Tobias eventually drops in, since I'd really like to see where I can help
👍 1
w
Hi, sorry for being slow Im on vacation. @broad-processor-92400 listed all relevant sources, thanks! The list of features are probably easiest to grok checking PR names with the js label. Documentation is a task I intend to start after my ongoing task. That task is fundamental to ensure the backend works with newer versions of package managers, so I am prioritizing it to ensure my org can keep using it. As for the node_test_script question: it is currently limited to the former mode (on a file basis). I realized that mode ran risk of being slow for existing optimized testrunners configurations users have, so the JS backend support batch compatability. The node_test_script essentially has to point to a script that accepts
FILE [FILES]...
What I was working on before vacation was changing how workspaces are installed and stored as digests. The current way has turned out to not be compatible with the (to me) newly added integrity files package managers insert in node_modules.
Progress has been slow because I tried and failed to implement https://github.com/pantsbuild/pants/issues/19054, a workaround to the massive file io sandboxing node_modules causes in large projects
a
Cool! Well, when you return from vacation, let me know. I'm keen to figure out how I can start adding TypeScript support, because that'll be useful for me getting Pants into my work codebase
if there's things that are blocking that, then that's fine too