Contributing

December 19, 2023 ยท View on GitHub

To get set up

  1. git clone git@github.com:withastro/prettier-plugin-astro.git
  2. pnpm install
  3. pnpm build
  4. Run tests with pnpm test or pnpm test:watch for watch mode
  5. Lint code with pnpm lint
  6. Format code with pnpm format
  7. Run pnpm changeset to add your changes to the changelog on version bump. Most changes to the plugin should be patch changes while we're before 1.0.0.

Notes

  1. A single test file can be run with pnpm test *file-name*
  2. To skip one or more tests in a file, add comments to them individually
  3. Watch mode won't rerun tests when changing an input/output file

Resources for contributing