Contributing
December 19, 2023 ยท View on GitHub
To get set up
git clone git@github.com:withastro/prettier-plugin-astro.gitpnpm installpnpm build- Run tests with
pnpm testorpnpm test:watchfor watch mode - Lint code with
pnpm lint - Format code with
pnpm format - Run
pnpm changesetto add your changes to the changelog on version bump. Most changes to the plugin should bepatchchanges while we're before1.0.0.
Notes
- A single test file can be run with
pnpm test *file-name* - To skip one or more tests in a file, add comments to them individually
- Watch mode won't rerun tests when changing an input/output file