1.1.0 • Published 7 years ago

start-split v1.1.0

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

start-split

npm linux build windows build coverage deps

semantic-release Commitizen friendly greenkeeper

split task pipelines for Start

Apply a different set of tasks to each directory. Partially to overcome start-write stripping the root directory for cases when relative directory structure must be retained (simple typescript + mocha).

Install

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

Usage

import Start from 'start';
import reporter from 'start-pretty-reporter';
import files from 'start-files';
import read from 'start-read';
import write from 'start-write';
import split from 'start-split';

const start = Start(reporter());

export const task = () => start(
  files([ 'lib/**/*.js', 'test/**/*.js' ]),
  read(),
  split({
    lib: () => [ write('build/') ],
    test: () => [ write('testBuild/') ]
  })
);

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

Arguments

split(map, concurrent)

  • map – A map of directory name to a function that returns an array of start tasks.
  • concurrent – Run task pipelines simultaneously using start-concurrent. Defaults to true.
1.1.0

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago