Skip to content
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

Demonstrate more javascript backend functionality #4

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

riisi
Copy link

@riisi riisi commented Mar 9, 2024

No description provided.

package_json(
name="hello_pkg",
scripts=[
node_test_script(
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Side note - node_test_script and node_build_script don't show up in the documentation under the package_json target - is there a way we can make that happen?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question! We have a similar situation with https://www.pantsbuild.org/2.19/reference/targets/python_distribution#provides : it is a target field whose value is created by a call to python_artifact(). In that case it looks like we manually add a link in that field's docs to relevant guide docs.

So I guess we should do that here too.

@benjyw benjyw requested review from tobni and alonsodomin March 9, 2024 21:51
Copy link
Contributor

@benjyw benjyw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will let folks with more JS savvy than me weigh in, but LGTM overall.

@AlexTereshenkov AlexTereshenkov merged commit ae7c90b into pantsbuild:main Mar 13, 2024
2 checks passed
@AlexTereshenkov AlexTereshenkov self-requested a review March 13, 2024 14:56
@AlexTereshenkov
Copy link
Member

Looks great, thank you so much @riisi, this will come in handy as we add support for TypeScript.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants