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

[internal] Start of JS backend for target types and tailor goal #15442

Merged
merged 5 commits into from
May 13, 2022

Conversation

sureshjoshi
Copy link
Member

@sureshjoshi sureshjoshi commented May 13, 2022

This PR provides step forward for a Javascript backend. It implements the target types js_source and js_sources, as well as tailor support. Creating Javascript test targets is deferred to a later PR.

Typescript support is intentionally excluded at this time.

(See #14190)

[ci skip-rust]
[ci skip-build-wheels]

# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
@sureshjoshi
Copy link
Member Author

This base support was honestly a copy/paste/find/replace of @tdyas cc code.

I left dependency_inference out of this, until I can better understand how that works - I'm PR'ing this code, so that I can add the NodeJS tool and PrettierJS functionality from my personal plugins repo.

@sureshjoshi sureshjoshi added the category:internal CI, fixes for not-yet-released features, etc. label May 13, 2022
Copy link
Contributor

@Eric-Arellano Eric-Arellano left a comment

Choose a reason for hiding this comment

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

Yay!

src/python/pants/backend/js/target_types.py Outdated Show resolved Hide resolved
src/python/pants/backend/js/target_types.py Outdated Show resolved Hide resolved
src/python/pants/backend/experimental/js/BUILD Outdated Show resolved Hide resolved
src/python/pants/backend/js/target_types.py Outdated Show resolved Hide resolved
# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
@Eric-Arellano
Copy link
Contributor

Ready for me to merge once CI goes green?

@sureshjoshi
Copy link
Member Author

Yep!

@sureshjoshi
Copy link
Member Author

Associated GH ticket stays open though, still have 2-3 more PRs

@Eric-Arellano Eric-Arellano enabled auto-merge (squash) May 13, 2022 17:52
@Eric-Arellano Eric-Arellano merged commit 08e3879 into pantsbuild:main May 13, 2022
@sureshjoshi sureshjoshi deleted the 14190-js-ts-support branch May 13, 2022 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:internal CI, fixes for not-yet-released features, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants