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

o3-cli

v2.19.2

Published

CI, scaffolding, and automated testing utilities

Downloads

7

Readme

o3-cli

CI, scaffolding, and automated testing utilities

oclif Version Downloads/week License

Usage

$ npm install -g o3-cli
$ o3-cli COMMAND
running command...
$ o3-cli (-v|--version|version)
o3-cli/2.19.2 linux-x64 node-v12.22.0
$ o3-cli --help [COMMAND]
USAGE
  $ o3-cli COMMAND
...

Commands

o3-cli autocomplete [SHELL]

display autocomplete installation instructions

USAGE
  $ o3-cli autocomplete [SHELL]

ARGUMENTS
  SHELL  shell type

OPTIONS
  -r, --refresh-cache  Refresh cache (ignores displaying instructions)

EXAMPLES
  $ o3-cli autocomplete
  $ o3-cli autocomplete bash
  $ o3-cli autocomplete zsh
  $ o3-cli autocomplete --refresh-cache

See code: @oclif/plugin-autocomplete

o3-cli axe

Describe the command here

USAGE
  $ o3-cli axe

OPTIONS
  -n, --name=name  name to print

DESCRIPTION
  ...
  Extra documentation goes here

See code: src/commands/axe.js

o3-cli backstop COMMAND

Run a backstop test.

USAGE
  $ o3-cli backstop COMMAND

ARGUMENTS
  COMMAND  (reference|test|generatetestfile) "reference" to create a snapshot to compare against. "test" to test.
           "generatetestfile" to write a dynamic test to a file

OPTIONS
  -c, --configFile=configFile            [default: tests/backstop/config.js] path to config file
  -d, --dynamic                          run a dynamic test using a remote api for list of urls
  -l, --limit=limit                      (For dynamic tests): limit number of urls returned for a content or post type.

  -m, --menus=menus                      (For dynamic tests): return urls from specific menus. e.g.
                                         --menus=primary,secondary

  -m, --viewports=viewports              Pass comma seperated list: mobile,desktop,tablet

  -p, --content_types=content_types      (For dynamic tests): return urls from specific content types. e.g.
                                         --content_types=page,blog

  -p, --paragraph_types=paragraph_types  (For dynamic tests): return urls of content that contains a paragraph type.

  -r, --referenceUrl=referenceUrl        [default: http://dev-drupal-8-composer-ci.pantheonsite.io] reference url

  -t, --testUrl=testUrl                  [default: https://google.com] test url

  -u, --urlListSource=urlListSource      url list source coming from support module

DESCRIPTION
  ...
  Edit your default settings in .o3-clirc.yaml. Then run:
  $ o3-cli generate config (if you haven't run already)
  $ o3-cli generate tests-backstop (if you have no test config yet)
  $ o3-cli backstop reference
  $ o3-cli backstop test

See code: src/commands/backstop.js

o3-cli backstop-wizard

Describe the command here

USAGE
  $ o3-cli backstop-wizard

OPTIONS
  -u, --o3cli_service_endpoint=o3cli_service_endpoint  url list source coming from support module

DESCRIPTION
  Create a

See code: src/commands/backstop-wizard.js

o3-cli behat

Run behat tests

USAGE
  $ o3-cli behat

OPTIONS
  -n, --name=name  name to print

DESCRIPTION
  ...
  Extra documentation goes here

See code: src/commands/behat.js

o3-cli cypress COMMAND

cypress wrapper with mocha reporter integration

USAGE
  $ o3-cli cypress COMMAND

ARGUMENTS
  COMMAND  (run|open) "run" to run tests with mocha reporter. "open" to open cypress ui.

OPTIONS
  -b, --browser=browser  [default: chrome] browser
  -e, --env=env          env flags
  -h, --headless         Run headless
  -s, --spec=spec        tests to run relative to o3-clirc.yaml declared cypress_config_path variable
  -t, --testUrl=testUrl  [default: http://dev-drupal-8-composer-ci.pantheonsite.io] test url

DESCRIPTION
  cypress wrapper with mocha reporter integration

See code: src/commands/cypress.js

o3-cli eslint [DIRECTORIES]

Run Eslint code sniffer

USAGE
  $ o3-cli eslint [DIRECTORIES]

ARGUMENTS
  DIRECTORIES  directories

OPTIONS
  -f, --format=format            format
  -i, --ignore-path=ignore-path  ignore

DESCRIPTION
  ...
  "./vendor/bin/Eslint --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md 
  --ignore=node_modules,bower_components,vendor ./web/themes",

See code: src/commands/eslint.js

o3-cli generate BOILERPLATE

Generate circleci or automated tests boilerplates. Run this command from the root of your repo.

USAGE
  $ o3-cli generate BOILERPLATE

ARGUMENTS
  BOILERPLATE  (config|tests-eslint|tests-backstop|tests-cypress|ci-drupal8-composer|ci-drupal8|ci-wordpress|ci-wordpres
               s|ci-npm-publish|ci-heroku) Name of boilerplate directory

See code: src/commands/generate.js

o3-cli help [COMMAND]

display help for o3-cli

USAGE
  $ o3-cli help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

o3-cli phpcs [ROOTDIR]

Run phpcs code sniffer

USAGE
  $ o3-cli phpcs [ROOTDIR]

ARGUMENTS
  ROOTDIR  [default: web/modules/custom,web/themes] Generate CI and automated test boierplates

OPTIONS
  -i, --ignore=ignore          [default: node_modules,bower_components,vendor] ignore
  -s, --standard=standard      [default: Drupal,DrupalPractice] standard
  -x, --extensions=extensions  [default: php,module,inc,install,test,profile,theme,css,info,txt,md] extensions

DESCRIPTION
  ...
  "./vendor/bin/phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md 
  --ignore=node_modules,bower_components,vendor ./web/themes",

See code: src/commands/phpcs.js

o3-cli phplint [ROOTDIR]

Run php lint

USAGE
  $ o3-cli phplint [ROOTDIR]

ARGUMENTS
  ROOTDIR  [default: web/modules/custom,web/themes] Generate CI and automated test boierplates

OPTIONS
  -x, --exclude=exclude        extensions
  -x, --extensions=extensions  [default: php,module,inc,install,test,profile,theme] extensions

DESCRIPTION
  ...
  "./vendor/bin/phplint",

See code: src/commands/phplint.js

o3-cli phpunit [ROOTDIR]

Run phpunit.

USAGE
  $ o3-cli phpunit [ROOTDIR]

ARGUMENTS
  ROOTDIR  [default: web/core, web/modules/custom] Directories that contain unit tests that need to be run

OPTIONS
  -c, --configuration=configuration  [default: web/core/phpunit.xml.dist] configuration
  -t, --testsuite=testsuite          [default: unit] testsuite

DESCRIPTION
  ...
  Edit your default settings in .o3-clirc.yaml. Then run:
  $ o3-cli phpunit

See code: src/commands/phpunit.js

o3-cli setup

Describe the command here

USAGE
  $ o3-cli setup

OPTIONS
  -u, --o3cli_service_endpoint=o3cli_service_endpoint  url list source coming from support module

DESCRIPTION
  ...
  Extra documentation goes here

See code: src/commands/setup.js