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

tasks: automation around comparing to other tools #136

Open
Boshen opened this issue Sep 28, 2024 · 0 comments
Open

tasks: automation around comparing to other tools #136

Boshen opened this issue Sep 28, 2024 · 0 comments
Assignees

Comments

@Boshen
Copy link
Member

Boshen commented Sep 28, 2024

To reduce time on debugging our tools, we need a new tool for comparing against other tools.

How I imagine this should work:

pbpaste | cargo run -p compare -- bunch of args
cargo run -p compare -- bunch of args https://raw.github.com/...
cargo run -p compare -- bunch of args ./test.js

These commands will

  1. retrieve the file from clipboard / url / disk
  2. run all our components
  3. save each component's output to disk if we want to inspect the full output
  4. compare these outputs to babel / swc / esbuild etc
  5. run our output and other tool's output through prettier
  6. produce a diff if there are mismatches

I have been doing these tasks over and over, I think it's time to automate these steps.

@Boshen Boshen changed the title tasks: debuggability enhancement tasks: automation around comparing to other tools Sep 28, 2024
@Boshen Boshen self-assigned this Sep 28, 2024
This issue is being transferred. Timeline may not be complete until it finishes.
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

No branches or pull requests

1 participant