Yard Toolkit centralizes configuration files for building, formatting and linting, among other things. It is used by the WordPress team for sites and packages.
- @yardinternet/prettier-config
- @yardinternet/eslint-config
- @yardinternet/stylelint-config
- @yardinternet/postcss-config
- @yardinternet/toolkit
- @yardinternet/vite-config
Register package: npm init -w ./packages/[packagename]
Install dependencies in package: npm install [depname] -w ./packages/[packagename]
ℹ️ Note on pnpm
The./packages/toolkitpackage requires all dependencies from all used configs/packages to be explicitly declared. Unlike npm, pnpm does not automatically hoist undeclared dependencies. More details in the README of the toolkit package.
lerna publish --no-privatenpm run dep:check # List mismatched versions across workspaces
npm run dep:fix # Fix mismatched versions
npm run dep:outdated # Check for outdated dependencies across workspaces
npm run dep:update # Update all dependencies and reinstallThe linting in this monorepo uses the settings defined in the child packages. Husky (CaptainHook alternative) ensures that all files are automatically formatted and linted with each commit.