- Install dependencies
npm install
- Run linter and tests
npm run checks
Other test commands
-
Run a test file
npm test ./dist/git-mob.spec.js
See Ava for more options. This is for git-mob
package.
Jest is used for git-mob-core
package.
Asserting prompts on the cli using coffee.
This section is for maintainers with push access to git-mob on npm.
Git Mob uses workspaces now and the flags below are needed to version each of the packages.
Read more about workspaces for version command. Using workspaces flag runs the version command in all packages
- Version a package
npm version minor --workspace=git-mob
- Or all packages
npm version patch --workspaces
- Commit and push
- Bump the root package version and this will make a git tag (major, minor, patch); e.g.
npm version patch
- Git Push
- Run the publish CI GitHub actions
- Release notes added here https://github.com/rkotze/git-mob/releases