npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@nx-squeezer/renovate

v3.1.5

Published

Tools to setup Renovate in Nx or Angular monorepos

Downloads

36

Readme

@nx-squeezer/renovate

CI npm latest version CHANGELOG codecov compodoc renovate semantic-release

Tools to setup Renovate in Nx or Angular monorepos, check the documentation to see all available features.

Setup

npm install --save-dev @nx-squeezer/renovate

Generators

Setup Renovate

nx g @nx-squeezer/renovate:setup

Shareable config preset for Renovate. Angular and Nx dependencies require post upgrade tasks, then Renovate must be configured as self-hosted, an easy way to do it would be with Github Action Renovate.

You can find an example configuration here and GitHub workflow here.

For Nx projects it is recommended to use the default preset for Nx monorepos.

This generator will:

  • Configure Renovate to run self-hosted by creating a GitHub Workflow Action.
  • Upgrade the CI workflow to run on Renovate branches.
  • Add badge to README.md.

Options:

  • Force overwriting of configuration with --force (default false).
  • Use Nx Cloud --useNxCloud (default true).
  • Use local presets --local (default false). This option is not recommended, instead it is better to rely on pointing to the configuration in the nx-squeezer/squeezer GitHub repo to always count with the latest version. Use local presets only if you want to customize them.
  • Provide the assignee for Renovate PRs with --assignee=github-user.

Presets:

This preset includes all presets included in this repo except for Nx, Angular workspaces, and tooling preset they have to be added manually:

"extends": ["github>@nx-squeezer/squeezer"]

This preset groups all dependencies related to Nx and Angular, including upgrade schematics:

"extends": ["github>@nx-squeezer/squeezer:nxMonorepo"]

It is incompatible with preset "github>@nx-squeezer/squeezer:angularWorkspace", choose one or another.

This preset groups all dependencies related to Angular, including upgrade schematics:

"extends": ["github>@nx-squeezer/squeezer:angularWorkspace"]

It is incompatible with preset "github>@nx-squeezer/squeezer:nxMonorepo", choose one or another.

This preset groups all non-major npm dependencies, including bump dependencies:

"extends": ["github>@nx-squeezer/squeezer:groupAllNonMajor"]

This preset groups all dependencies related to linting and formatting:

"extends": ["github>@nx-squeezer/squeezer:tooling"]

Examples:

  • chore(deps): :arrow_up: update dependency
  • fix(deps): :lock: refresh package-lock.json
  • fix(deps): :arrow_down: roll back dependency

This preset groups all dependencies related to Github actions:

"extends": ["github>@nx-squeezer/squeezer:githubActions"]

This preset adds a :sparkles: gitmoji :sparkles: to the commit message:

"extends": ["github>@nx-squeezer/squeezer:gitmoji"]

This preset updates node and npm only to LTS versions.

"extends": ["github>@nx-squeezer/squeezer:npm"]

This preset configures maintenance of package-lock.json file as a separate PR.

"extends": ["github>@nx-squeezer/squeezer:maintenance"]

This preset causes Renovate to not update libraries' package.json, only the root package.json will be updated for minor and patch versions. This has the purpose of keeping libraries with a wider compatibility range, within the last major version. This is the recommended configuration for library authors.

"extends": ["github>@nx-squeezer/squeezer:widenRangeLibraryDeps"]

Contributors

contributors