[!INFO]
If you are developing on Windows, you need to use WSL.
- Clone the monorepo
- run
pnpm iin the root of the repo - run
pnpm --filter @lix-js/html-diff... buildto build the dependencies of the package you want to work on - run
pnpm --filter @lix-js/html-diff devto run the development server
[!INFO]
You need to run the build for the dependencies of the package via the three dots...at least once. Here is the pnpm documentation for filtering.
This package includes a Vite-based visual test website to help develop and debug the renderHtmlDiff function.
Running the Test Website:
-
Ensure monorepo dependencies are installed (
pnpm installfrom root). -
Start the dev server:
# From monorepo root pnpm --filter @lix-js/html-diff dev # Or from this package directory pnpm dev
The visual test website allows you to:
- Test different HTML diff scenarios
- Debug the
renderHtmlDifffunction - Verify styling and output
- Add new test cases
- run
pnpm run cito run all tests and checks - run
npx changesetto write a changelog and trigger a version bump. watch this loom video to see how to use changesets: https://www.loom.com/share/1c5467ae3a5243d79040fc3eb5aa12d6 - Test using the visual test website
- Submit a pull request with a clear description of your changes