@form8ion/codecov

5.3.0 • Public • Published

codecov

code coverage service plugin for form8ion

Node CI Workflow Status Codecov SLSA Level 2

Table of Contents

Features

Lift

Usage

MIT license npm Try @form8ion/codecov on RunKit node

Installation

$ npm install @form8ion/codecov --save

Example

Import

import {packageManagers} from '@form8ion/javascript-core';
import {scaffold, lift} from '@form8ion/codecov';

Execute

(async () => {
  await scaffold();

  await lift({
    projectRoot: process.cwd(),
    packageManager: packageManagers.NPM,
    vcs: {
      host: 'github',
      owner: 'foo',
      name: 'bar'
    }
  });
})();

API

scaffold

The scaffolder of this plugin is currently a no-op since the work is all done as part of the lifting process

lift

Migrates Codecov details from legacy conventions to modern conventions.

Takes a single options object as an argument, containing:

projectRoot string (required)

path to the root of the project

packageManager string (required)

chosen package manager to be used for the project

vcs object (required)
  • host string (required) VCS hosting service
  • owner string (required) account name on the host service for the repository
  • name string (required) repository name

Contributing

PRs Welcome Commitizen friendly Conventional Commits semantic-release Renovate

Dependencies

$ nvm install
$ npm install

Verification

$ npm test

Readme

Keywords

none

Package Sidebar

Install

npm i @form8ion/codecov

Weekly Downloads

872

Version

5.3.0

License

MIT

Unpacked Size

41.1 kB

Total Files

8

Last publish

Collaborators

  • travi
  • form8ion-bot