https://github.com/yardinternet/toolkit
Yard Toolkit monorepo
https://github.com/yardinternet/toolkit
Last synced: about 15 hours ago
JSON representation
Yard Toolkit monorepo
- Host: GitHub
- URL: https://github.com/yardinternet/toolkit
- Owner: yardinternet
- License: eupl-1.2
- Created: 2025-01-09T12:45:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-06-17T15:52:59.000Z (12 days ago)
- Last Synced: 2026-06-17T16:35:11.656Z (11 days ago)
- Language: JavaScript
- Homepage:
- Size: 4.06 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Yard Toolkit
Yard Toolkit centralizes configuration files for building, formatting and linting, among other things.
It is used by the WordPress team for sites and packages.
## Packages
- [@yardinternet/prettier-config](packages/prettier-config/README.md)
- [@yardinternet/eslint-config](packages/eslint-config/README.md)
- [@yardinternet/stylelint-config](packages/stylelint-config/README.md)
- [@yardinternet/postcss-config](packages/postcss-config/README.md)
- [@yardinternet/toolkit](packages/toolkit/README.md)
- [@yardinternet/ts-config](packages/ts-config/README.md)
- [@yardinternet/vite-config](packages/vite-config/README.md)
## đˇââī¸ Package Development
Register package: `pnpm init` (inside `./packages/[packagename]`)
Install dependencies in package: `pnpm --filter [packagename] add [depname]`
> âšī¸ **Note on dependencies**
> pnpm does not hoist undeclared dependencies. Every package must explicitly declare all its dependencies. More details in the [README of the toolkit package](./packages/toolkit/README.md#note-on-dependencies).
## đ Releasing packages
```bash
lerna publish --no-private
```
## đĻ Dependency Management
```bash
pnpm dep:check # List mismatched versions across workspaces
pnpm dep:fix # Fix mismatched versions
pnpm dep:outdated # Check for outdated dependencies across workspaces
pnpm dep:update # Update all dependencies
```
## đ Testing
```bash
pnpm test
```
Added to catch two types of problems:
- **Dependency updates** silently changing rules
- **Our own config edits** disabling or weakening rules
Each package has two test files:
- `config.snapshot.test.js` â snapshots the full config and fails on a change
- `rules.test.js` / `format.test.js` â behavioral tests that lint/format real code snippets
Tests run on pre-push and in GitHub Actions on every pull request.
## đ¨ Formatting & Linting
The linting in this monorepo uses the settings defined in the child packages. Husky ensures that all files are automatically formatted and linted with each commit.
## About us
[](https://www.yard.nl/werken-bij/)