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

update-apparatus

v0.4.0

Published

Personal update buddy for WordPress-driven projects 🤖

Downloads

16

Readme

UPDATE APPARATUS

Running and testing WordPress updates is no fun. UPDATE APPARATUS 🤖 will try and help you with this chore.

npm

Update sequence

This is it's update sequence:

  1. Validate dependencies
  2. Crawl website
  3. Update dependencies
  4. Re-crawl website
  5. Diff the output

Update sequence.

Installation

npm install update-apparatus -g

Usage

Run update-apparatus in the root of your project.

Dependency management

UPDATE APPARATUS 🤖 is able to either use Composer and wp-cli for updating dependencies. UPDATE APPARATUS 🤖 tries to be helpful and determines if it's a Composer-managed project based on a constant variable called WP_HOME that should exist in the .env file. This is used for determining the URL. It will tell you it's findings when running the update sequence.

Configuration

You can configure your preferences per project through an .apparatusrc file that contains JSON.

{
  "composerSkip": ["wpackagist-plugin/akismet"],
  "max": 1,
  "wpSkip": ["akismet"]
}

| Option | Description | | :--- | :--- | | composerSkip | Packages to skip when using --batch (see Batch) | max | Maximum amount of URLs to crawl | wpSkip | Dependencies to skip when using wp-cli (used for wp plugin update --exclude)

Batch

You can also run UPDATE APPARATUS 🤖 to batch-update multiple projects. It will make some assumptions though. Use update-apparatus --batch in your projects root to use this. Workflow:

  1. Assume projects are in subdirectories from the place you ran the command
  2. You can select all projects you would like to update
  3. Update version constraints to latest version for Composer packages and ask you about custom repositories
  4. Run UPDATE APPARATUS 🤖 for each project, without crawling the website
  5. Commit changes in a branch
  6. Create a pull request per project
  7. Show links to PR's for you to review