0.2.0 • Published 7 years ago

start-input-connector v0.2.0

Weekly downloads
7
License
MIT
Repository
github
Last release
7 years ago

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.