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

start-runner/input-connector

Repository files navigation

start-input-connector

npm linux build windows build coverage deps

Input connector task for Start, helps to pass data through different tasks runners.

Install

npm install --save-dev start-input-connector
# or
yarn add --dev start-input-connector

Usage

import Start from 'start';
import reporter from 'start-pretty-reporter';
import files from 'start-files';
import inputConnector from 'start-input-connector';
import eslint from 'start-eslint';

const start = Start(reporter());

const lint = (input) => start(
  inputConnector(input),
  eslint()
);

export const lintLib = () => start(
  files([ 'lib/**/*.js' ]),
  lint
);

export const lintTest = () => start(
  files([ 'test/**/*.js' ]),
  lint
);

See documentation for details.