# videojs-generator-verify

> A tool to verify that a generator-videojs-plugin project is ready for publish.

Latest version **4.1.3** (published 2023-09-26) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install videojs-generator-verify
pnpm add videojs-generator-verify
yarn add videojs-generator-verify
bun add videojs-generator-verify
```

Provides the commands `vjsverify`, `videojs-generator-verify`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.1.3 |
| Published | 2023-09-26 |
| First published | 2018-09-12 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 21.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Brandon Casey |
| Maintainers | phale, ddashkevich, roman-bc, walterseymourbc, videojs-user, usmanonazim, mmcclure, misteroneill, misterben, lday, imbcmdth, hswaminathan, heff, gkatsev, gesinger, essk, dmlap, brandonocasey, awaldron, abarstow |

## Links

- npm: https://www.npmjs.com/package/videojs-generator-verify
- Repository: https://github.com/videojs/videojs-generator-verify
- Issues: https://github.com/videojs/videojs-generator-verify/issues
- npm.io page: https://npm.io/package/videojs-generator-verify

## Dependencies (5)

- [shelljs](https://npm.io/package/shelljs.md) ^0.8.4
- [es-check](https://npm.io/package/es-check.md) ^7.1.1
- [colorette](https://npm.io/package/colorette.md) ^2.0.16
- [exit-hook](https://npm.io/package/exit-hook.md) ^2.2.1
- [@brandonocasey/spawn-promise](https://npm.io/package/@brandonocasey/spawn-promise.md) ~0.2.0

## Recent versions

- 4.1.3 (latest) — 2023-09-26
- 4.1.1 (next) — 2023-07-21
- 3.0.1 (experimental) — 2020-10-20
- 4.1.2 — 2023-08-23
- 4.1.0 — 2022-04-13
- 4.0.1 — 2021-08-18
- 4.0.0 — 2021-05-28
- 3.0.3 — 2021-03-26
- 3.0.2 — 2021-02-24
- 3.0.0 — 2020-10-19
- 2.0.0 — 2019-08-21
- 1.2.0 — 2018-11-26
- 1.1.0 — 2018-10-05
- 1.0.5 — 2018-10-01
- 1.0.4 — 2018-09-13
- … 4 more at https://npm.io/package/videojs-generator-verify/versions

## README

# videojs-generator-verify

[![Build Status](https://travis-ci.org/videojs/videojs-generator-verify.svg?branch=master)](https://travis-ci.org/videojs/videojs-generator-verify)
[![Greenkeeper badge](https://badges.greenkeeper.io/videojs/videojs-generator-verify.svg)](https://greenkeeper.io/)
[![Slack Status](http://slack.videojs.com/badge.svg)](http://slack.videojs.com)

[![NPM](https://nodei.co/npm/videojs-generator-verify.png?downloads=true&downloadRank=true)](https://nodei.co/npm/videojs-generator-verify/)

A tool to verify that a generator-videojs-plugin project is ready for publish.

Maintenance Status: Stable

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->


- [Installation](#installation)
- [Usage](#usage)
  - [Command line](#command-line)
  - [API](#api)
    - [Options](#options)
      - [`verbose`](#verbose)
      - [`quiet`](#quiet)
      - [`dir`](#dir)
      - [`skip`](#skip)
- [What is tested](#what-is-tested)
- [License](#license)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

## Installation

Install `videojs-generator-verify` and `in-publish` via npm

```sh
$ npm install --save-dev videojs-generator-verify in-publish
```

Then add a script to your `package.json` as follows:

```json
{
  "scripts": {
    "prepublish": "not-in-install && npm run build && vjsverify || in-install"
  }
}
```

## Usage

### Command line
This package provides two binaries `videojs-generator-verify` and `vjsverify`. `vjsverify` is just an alias to `videojs-generator-verify`.

The cli has the following options:

```sh

  Usage: vjsverify [--verbose|--quiet|--skip-es-check]

  A tool to verify that a generator-videojs-plugin project is ready for publish.

  -v, --version       Print the version of videojs-generator-verify.
  -V, --verbose       Print all results, even successful ones.
  -q, --quiet         Don't print anything.
  -d, --dir [dir]     Run in this project directory, defaults to cwd.
  --skip-es-check     skip the syntax check, still here for backwards compatablity
  --skip-[name]       skip a test that you do not want to run. install, syntax, fields, require

```

### API
It is also possible to require this package, and run the `verify` function manually. It takes several options in as an object and returns
a promise that is resolved to 0 on success and 1 on failure.

#### Options
Options are passed in an object by key/value.

Example

```js
const vjsverify = require('videojs-generator-verify');
const opitons = {verbose: true};

vjsverify(options).then(function(exitCode) {
  process.exit(exitCode);
}).catch(function(e) {
  console.error('Uh oh, internally vjsverify error', e);

  process.exit(1);
});
```

##### `verbose`

> Type: `boolean`
> Default: `false`

Print all results, even for success. By default only errors are printed.

##### `quiet`

> Type: `boolean`
> Default: `false`

Do not print anything.

##### `dir`

> Type: `string`
> Default: `process.cwd()`

Run vjsverify in a specific directory. Note that this directory must exist and contain a package.json.

##### `skip`

> Type: `array`
> Default: `[]`

Skip a tests that are not relevant for your project. valid checks: `require`, `syntax`, `fields`, `install`

## What is tested
This package tests three things:

1. Do all the files referenced in `package.json` point to a file that exists
2. Will the package be installable from npm after publish
3. Are the dist files all using es5 syntax, unless `--skip-es-check` is passed.

## License

Apache-2.0. Copyright (c) Brightcove, Inc.

---
_Source: https://npm.io/package/videojs-generator-verify · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
