Skip to content

Conversation

@danvk
Copy link
Owner

@danvk danvk commented Jun 5, 2024

This will simplify development and aid Reactifying codediff.

Highlights:

  • Moved codediff.js into this repo and ported the tests to TypeScript + Jest. Using jQuery with Jest works surprisingly well. All tests pass except for one involving highlight.js language detection. This seems to work very poorly in general, and I'm curious how this test ever passed.
  • Vendored jsdifflib and ported it to TypeScript. There's an npm package version of it available, but it seems to have some weird global variable issues. So does the original. difflib.js looks far more popular and maintained, so maybe I should switch to that in another PR.
  • Enabled source maps for debugging.

The new files aren't prettier-formatted. I'll leave that for another PR.

@danvk danvk marked this pull request as ready for review June 6, 2024 14:34
@danvk danvk merged commit dd1cbf6 into master Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants