@fmal/test-lib v3.0.3
monorepo
š¦ A monorepo for my NPM libraries. Managed with repo-cooker library. Using Jest, eslint, prettier and TypeScript through babel 7. Semantically versioned and automatically released, following conventional-commits!
š Tasks
npm run commitguide you through creating commits with correct commit messagesnpm run checkdepscheck if all dependencies are correctly installed and in syncnpm run fixdepsadd missing dependencies to the monorepo when you add or upgrade dependencies for your packagesnpm testrun the tests for all packagesnpm run test:coveragerun tests across packages and output coveragenpm run lintcheck for linting errorsnpm run typecheckcheck if the types of your packages are correctnpm run buildcompile source for all packagesnpm run releasebuild & publish usingrepo-cooker --releasenpm run linkan alias forrepo-cooker --linkwhich symlinks dependencies. This is automatically run through thepostinstallhook when you donpm install
To compile source or run tests for an individual package, npm run build or npm run test from the package root.
Release process
When you push commits to the next branch repo-cooker will create a beta release which you can install with npm install yourpackage@next.
When pushing to the master branch repo-cooker creates a stable release with release notes retrieved from the commit messages.
Commits with the fix type trigger a patch version release, commits with feat type a minor version release and commits with breaking changes a major version release. Commits containing other types will not trigger any release.
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago