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

@ziacik/upgrade-verify

v3.3.1

Published

This plugin provides functionality to verify various aspects of a workspace after NX upgrade.

Downloads

544

Readme

Nx Upgrade Verify Plugin

This plugin provides functionality to verify various aspects of a workspace after NX upgrade.

Installation

To install the plugin, run the following command:

npm install -D @ziacik/upgrade-verify

Usage

Once the plugin is installed, you can use its executors in your project's configuration.

verify-build executor

This executor provides functionality to verify the build of a project after NX upgrade by comparing dist file statistics and detecting any significant differences.

On each run, the executor builds the project for each configuration from the build target. At the first run, the executor generates stats in the .stats directory of the project from the built files.

At every subsequent run, the executor compares the current saved stats with the new ones, writes out difference percentages to the output, and then updates the stats.

The stats can be committed to the repository for future use.

If the percentage differences cross a threshold of 10%, the executor will report a failure.

Example configuration

{
	"name": "my-app",
	...
	"targets": {
		"verify-build": {
			"executor": "@ziacik/upgrade-verify:verify-build",
			"options": {
				"removeHashes": true
			}
		},
		...
	},
	...
}

Then to use the executor, run

nx verify-build my-app

check-issues executor

This executor serves as a watchdog for external issues tracked on github that are listed in workspace root's ISSUES.md file. This is useful when for example when a workaround has been introduced becaues of a bug, and we would like to remove that workaround when the issue is resolved.

When this executor is run, it takes all issues listed in the ISSUES.md file, check if they are still active and lists all that have already been closed. That allows us to take action and remove that issue from the list.

Example contents of ISSUES.md

# Issues to be watched

https://github.com/ziacik/nx-tools/issues/1
[https://github.com/ziacik/nx-tools/issues/2](https://github.com/ziacik/nx-tools/issues/2)
[Some issue](https://github.com/ziacik/nx-tools/issues/3)

Example configuration

{
	"name": "my-app",
	...
	"targets": {
		"check-issues": {
			"executor": "@ziacik/upgrade-verify:check-issues"
		},
		...
	},
	...
}

Then to use the executor, run

nx check-issues my-app

License

This project is licensed under the MIT License.