Skip to content
This repository has been archived by the owner on Aug 19, 2019. It is now read-only.

start-runner/coveralls

Repository files navigation

start-coveralls

npm linux build windows build coverage deps

Coveralls task for Start.

Install

npm install --save-dev start-coveralls
# or
yarn add --dev start-coveralls

Usage

import Start from 'start';
import reporter from 'start-pretty-reporter';
import files from 'start-files';
import read from 'start-read';
import clean from 'start-clean';
import mocha from 'start-mocha';
import * as istanbul from 'start-istanbul';
import coveralls from 'start-coveralls';

const start = Start(reporter());

export const cover = () => start(
  files('coverage/'),
  clean(),
  files('lib/**/*.js'),
  istanbul.instrument(),
  files('test/**/*.js'),
  mocha(),
  istanbul.report()
);

export const travis = () => start(
  cover,
  files('coverage/lcov.info'),
  read(),
  coveralls()
);

This task relies on [{ path, data, map }] input and provides the same, see documentation for details.

Arguments

coveralls(options)