0.2.1 • Published 2 months ago

@pedalboard/scripts v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

@pedalboard/scripts

A set of reusable scripts.

Installation

yarn

yarn add @pedalboard/scripts -D

npm

npm i @pedalboard/scripts -D

Scripts


collectFiles

This script allows you to collect files which match a given pattern into a target directory

Usage

In the following example you collect all the coverage-finals.json files under the packages directory and place them in .nyc_output.

"scripts": {
    "collect": "pedalboard-scripts collectFiles --pattern='packages/**/coverage-final.json' --target='.nyc_output'"
}

aggregatePackagesCoverage

This scripts allow you to aggregate all the unit test coverage report from all packages directory of your monorepo

Usage

You'd typically want to call this script form the root project of your monorepo, e.g.

"scripts": {
    "coverage:combined": "pedalboard-scripts aggregatePackagesCoverage"
}

Following this script you can then call nyc to create a combined report for all packages at once, which can look something like this -

"scripts": {
    "coverage:combined": "pedalboard-scripts aggregatePackagesCoverage && nyc report --reporter lcov"
}

0.2.1

2 months ago

0.2.0

1 year ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago