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

@push-based/nx-verdaccio

v0.0.0-alpha.26

Published

Nx plugin for blazing fast Verdaccio setup & testing

Downloads

541

Readme

@push-based/nx-verdaccio

🔌 Plugins

Verdaccio Test Environment Plugin

Add dynamic targets to generate Verdaccion environments for other tasks, e.g. testing.

See nx-verdaccio plugin docs for details

Executor

Setup Environment Executor

This executor helps to initiate an environment folder and installs it`s dependent projects.

// project.json
{
  "name": "my-project",
  "targets": {
    "env-setup": {
      "executor": "@code-pushup/nx-verdaccio:env-setup",
      "options": {
        "keepServerRunning": false
        "envRoot": "/tmp/test-npm-workspace"
        "verbose": true,
      }
    }
  }
}

Read more under setup executor docs.

Bootstrap Environment Executor

This executor helps to initiate environment into a given folder.

// project.json
{
  "name": "my-project",
  "targets": {
    "nx-verdaccio-env-bootstrap": {
      "executor": "@code-pushup/nx-verdaccio:env-bootstrap",
      "options": {
        "keepServerRunning": false
        "envRoot": "/tmp/test-npm-workspace"
        "verbose": true,
      }
    }
  }
}

Read more under bootstrap executor docs.

Kill Process Executor

This executor helps to kill processes by ProcessID or a JSON file containing a property pid as number.

// project.json
{
  "name": "my-project",
  "targets": {
    "nx-verdaccio-kill-process": {
      "executor": "@push-based/nx-verdaccio:kill-process"
      "options": {
        "pid": "42312"
        "filePath": "/tmp/test-npm-workspace/process-id.json"
        "verbose": true,
      }
    }
  }
}

Read more under kill-process executor docs.

NPM Install Executor

This executor helps to install a pubishable projects into a given environment folder.

// project.json

{
  "name": "my-project",
  "targets": {
    "nx-verdaccio-npm-install": {
      "executor": "@code-pushup/nx-verdaccio:pkg-install",
      "options": {
        "pkgVersion": "1.2.3"
        "envRoot": "/tmp/test-npm-workspace"
        "verbose": true,
      }
    }
  }
}

Read more under pkg install executor docs.

NPM Publish Executor

This executor helps to publish a pubishable projects into a given environment folder.

// project.json

{
  "name": "my-project",
  "targets": {
    "nx-verdaccio-npm-publish": {
      "executor": "@code-pushup/nx-verdaccio:pkg-publish",
      "options": {
        "pkgVersion": "1.2.3"
        "envRoot": "/tmp/test-npm-workspace"
        "verbose": true,
      }
    }
  }
}

Read more under pkg publish executor docs.

Debugging e2e environments

Debug full environment in 1 setup:

  • nx run utils-e2e:env-setup - setup environment for utils-e2e
  • nx run utils-e2e:env-setup --keepServerRunning - keeps Verdaccio running after setup
  • nx run utils-e2e:env-cleanup - stops the Verdaccio server for utils-e2e folder and cleans up files

Debug full environment in 2 steps:

  • nx run utils-e2e:bootstrap-env - setup folders and starts Verdaccio for utils-e2e
  • nx run utils-e2e:install-env - bootstraps and installs all dependencies for utils-e2e
  • nx run utils-e2e:stop-verdaccio - stops the Verdaccio server for utils-e2e

Debug packages:

  • nx run utils-e2e:bootstrap-env - setup folders and starts Verdaccio for utils-e2e
  • nx run utils:pkg-publish --envProject utils-e2e - publishes utils and models to the Verdaccio registry configured for utils-e2e
  • nx run utils:pkg-install --envProject utils-e2e - installs utils and models from the Verdaccio registry configured for utils-e2e
  • nx run utils-e2e:stop-verdaccio - stops the Verdaccio server for utils-e2e