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

@oclif/test-plugin-generator

v0.4.15

Published

generate test plugins for oclif

Downloads

7

Readme

Test Plugin Generator

Generates plugins for @oclif/plugin-plugins integration tests

oclif CircleCI GitHub license

Usage

$ npm install -g @oclif/test-plugin-generator
$ test-plugin-generator COMMAND
running command...
$ test-plugin-generator (--version)
@oclif/test-plugin-generator/0.4.15 linux-x64 node-v20.11.1
$ test-plugin-generator --help [COMMAND]
USAGE
  $ test-plugin-generator COMMAND
...

Commands

test-plugin-generator generate

Generate an oclif test plugin that uses a specific package manager.

USAGE
  $ test-plugin-generator generate -m npm|pnpm|yarn [--bundle-dependencies-all | --bundle-dependency <value>]
    [-d <value>] [-f] [-n <value>] [--oclif-lock] [--shrinkwrap] [--yarn-version
    latest|stable|classic|canary|1.x|2.x|3.x|4.x]

FLAGS
  -d, --directory=<value>             [default: Current working directory.] Directory to create the plugin in.
  -f, --force                         Overwrite existing plugin.
  -m, --package-manager=<option>      (required) Package manager to use for plugin.
                                      <options: npm|pnpm|yarn>
  -n, --name=<value>                  Override the computed name of the plugin.
      --bundle-dependencies-all       Set bundleDependencies:true in package.json.
      --bundle-dependency=<value>...  Add package to bundleDependencies in package.json.
      --oclif-lock                    Generate oclif.lock for yarn plugins.
      --shrinkwrap                    Generate shrinkwrap for npm plugin.
      --yarn-version=<option>         Version of yarn to use for yarn plugins.
                                      <options: latest|stable|classic|canary|1.x|2.x|3.x|4.x>

DESCRIPTION
  Generate an oclif test plugin that uses a specific package manager.

EXAMPLES
  $ test-plugin-generator generate --package-manager npm

  $ test-plugin-generator generate --package-manager npm --shrinkwrap

  $ test-plugin-generator generate --package-manager npm --bundle-dependencies-all

  $ test-plugin-generator generate --package-manager npm --bundle-dependency @oclif/core

  $ test-plugin-generator generate --package-manager pnpm

  $ test-plugin-generator generate --package-manager pnpm --bundle-dependencies-all

  $ test-plugin-generator generate --package-manager pnpm --bundle-dependency @oclif/core

  $ test-plugin-generator generate --package-manager yarn --yarn-version 1.x

  $ test-plugin-generator generate --package-manager yarn --yarn-version 2.x

  $ test-plugin-generator generate --package-manager yarn --yarn-version 3.x

  $ test-plugin-generator generate --package-manager yarn --yarn-version 4.x

  $ test-plugin-generator generate --package-manager yarn --yarn-version latest

  $ test-plugin-generator generate --package-manager yarn --yarn-version stable

See code: src/commands/generate/index.ts

test-plugin-generator generate matrix

Generate plugins based on a matrix of options.

USAGE
  $ test-plugin-generator generate matrix -m <value> [-c <value>] [-d <value>]

FLAGS
  -c, --chunk-size=<value>        Number of plugins to generate at a time.
  -d, --output-directory=<value>  [default: Current working directory.] Directory to create the plugin in.
  -m, --matrix=<value>            (required) [default: matrix.json] JSON file containing a matrix of options.

EXAMPLES
  $ test-plugin-generator generate matrix

See code: src/commands/generate/matrix.ts

test-plugin-generator help [COMMAND]

Display help for test-plugin-generator.

USAGE
  $ test-plugin-generator help [COMMAND...] [-n]

ARGUMENTS
  COMMAND...  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for test-plugin-generator.

See code: @oclif/plugin-help

test-plugin-generator publish

Publish generated plugin to npm registry.

USAGE
  $ test-plugin-generator publish [--clear-registry] [-d <value>] [--dry-run] [-p <value>] [-r <value>]

FLAGS
  -d, --directory=<value>         Directory of plugins to publish.
  -p, --plugin-directory=<value>  Plugin directory to publish from.
  -r, --registry=<value>          [default: http://localhost:4873/] Verdaccio registry to publish to.
      --[no-]clear-registry       Clear registry before publishing.
      --dry-run                   Do not publish to registry.

DESCRIPTION
  Publish generated plugin to npm registry.

EXAMPLES
  $ test-plugin-generator publish

See code: src/commands/publish.ts