Skip to content

Latest commit

Β 

History

History
46 lines (32 loc) Β· 1.86 KB

File metadata and controls

46 lines (32 loc) Β· 1.86 KB

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

πŸ‘·β€β™€οΈ Package Development

Register package: npm init -w ./packages/[packagename] Install dependencies in package: npm install [depname] -w ./packages/[packagename]

ℹ️ Note on pnpm
The ./packages/toolkit package 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.

πŸš€ Releasing packages

lerna publish --no-private

πŸ“¦ Dependency Management

npm 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 reinstall

🎨 Formatting & Linting

The 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.

About us

banner