Skip to content

cegid/npm-version-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM Version Manager

Tools

  • bun: Bun is a fast JavaScript runtime, package manager, bundler, and test runner.

    To install with Homebrew

  • biome: Biome format, lint, and more in a fraction of a second.

  • vitest: Vitest is a Vite-native testing framework (Next Generation Testing Framework)

Housekeeping

Initialisation (mandatory)

Install repository dependencies.

# Bun
bun install
# NPM
npm ci

Note: Husky is included in prepare NPM script and is now part of NPM lifecycle.

Code quality

To format files.

Note: JS and TS files are handled by Biome.

# Bun
bun run prettier
bun run lint
# NPM
npm run prettier
npm run lint

Tool used to verify code consistency: format, lint, check links, find vulnerabilities, check typography.

# Bun
bun run mega-linter
# NPM
npm run mega-linter

Conventional commits

In this repository, all commits must be conventional commits.

To help you write commits in a conventional way, you can use goji.

goji help you write conventional commits with gitmoji support.

Versioning

To update version, you shall use this tool.

Maintenance

To check for vulnerabilities and deprecated NPM packages.

# NPM
npm audit

To update interactively to latest versions.

Note: This command must be run in services.

# Bun
bun run update-dependencies
# NPM
npm run update-dependencies

Commands

Bump

# Show help
npx -y @cegid/npm-version-manager@latest bump <bump-type> --help

# Bump version on all packages (repository included)
npx -y @cegid/npm-version-manager@latest bump <bump-type> --all
# Equivalent to
npx -y @cegid/npm-version-manager@latest bump <bump-type> --packages --repository

# Note: It uses remote version as reference by default
# Bump version on all packages (repository included) using current version as reference
npx -y @cegid/npm-version-manager@latest bump <bump-type> --all --from-current

# Bump version on all packages (repository excluded)
npx -y @cegid/npm-version-manager@latest bump <bump-type> --packages

# Bump version on repository
npx -y @cegid/npm-version-manager@latest bump <bump-type> --repository

# Bump version on all packages (repository included) if updated
npx -y @cegid/npm-version-manager@latest bump <bump-type> --all --updated
# Equivalent to
npx -y @cegid/npm-version-manager@latest bump <bump-type> --packages --repository --updated

# Bump version on all packages (repository excluded) if updated
npx -y @cegid/npm-version-manager@latest bump <bump-type> --packages --updated

# Bump version on repository if updated
npx -y @cegid/npm-version-manager@latest bump <bump-type> --repository --updated

Generate

# Show help
npx -y @cegid/npm-version-manager@latest generate --help

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published