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

rush-update

v1.2.4

Published

Utility to auto update dependencies in all rush projects

Downloads

5

Readme

rush-update

Utillity to auto update dependencies in all rush projects (including the shrinkwrap file) and create a PR on github. Meant to be used in CI/CD for repo using @microsoft/rush

Usage

rush-update [options]

Options:
  --ignore-packages, -x    Packages to ignore                [default: []]
  --branch, -b             Branch for commiting changes      [default: "update-npm-dependencies"]
  --commit-message         Commit message for npm updates    [default: "Update npm dependencies"]
  --change-commit-message  Commit message for 'rush change'  [default: "Generate change files"]
  --repo-owner             Username or Organization name on github
  --repo-name              Name of the repository on github
  --pr-base                Base branch for pull-request      [default: "master"]
  --pr-title               Pull request title                [default: "Update npm dependencies"]
  --pr-body                Pull request body                 [default: "This PR was auto-generated with rush-update."]
  --gh-username            Github username (for authentication)
  --gh-apikey              Github apikey
  --no-commit              Doesn't commit changes
  --no-change-file         Doesn't create a change file (rush change)
  --no-push                Commit changes but don't push to remote
  --no-pr                  Commit and push to remote but don't create a pull request

# example with rush script
node common/scripts/install-run.js rush-update@latest -x @types/node --repo-owner reshufflehq --repo-name reshuffle --gh-apikey 1234qweasd --gh-username shift-circleci

Usage in CI

for example, here is a CircleCI config to run this script every night:

version: 2.1
jobs:
  update_npm_dependencies:
    docker:
      - image: circleci/node:10
    steps:
      - checkout
      - run:
          name: Configure git
          command: |
            git config user.email "[email protected]"
            git config user.name "autoupdate"
      - run:
          name: Update npm dependencies
          command: node common/scripts/install-run.js rush-update@latest rush-update -x @types/node --repo-owner reshufflehq --repo-name reshuffle
workflows:
  version: 2
  nightly:
    triggers:
       - schedule:
           cron: "0 0 * * *"
           filters:
             branches:
               only:
                 - master
    jobs:
      - update_npm_dependencies