# start-split

> Input task splitter for Start

Latest version **1.1.0** (published 2017-06-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install start-split
pnpm add start-split
yarn add start-split
bun add start-split
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2017-06-08 |
| First published | 2017-01-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ben Teichman |
| Maintainers | effervescentia |
| Keywords | start, start-task |

## Links

- npm: https://www.npmjs.com/package/start-split
- Repository: https://github.com/effervescentia/start-split
- Issues: https://github.com/effervescentia/start-split/issues
- npm.io page: https://npm.io/package/start-split

## Dependencies (4)

- [start](https://npm.io/package/start.md) ^5.1.0
- [start-concurrent](https://npm.io/package/start-concurrent.md) ^0.1.0
- [convert-source-map](https://npm.io/package/convert-source-map.md) ^1.5.0
- [start-input-connector](https://npm.io/package/start-input-connector.md) ^0.2.0

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 1.1.0 (latest) — 2017-06-08
- 1.0.7 — 2017-03-27
- 1.0.6 — 2017-03-27
- 1.0.5 — 2017-03-27
- 1.0.4 — 2017-03-21
- 1.0.3 — 2017-02-12
- 1.0.2 — 2017-02-12
- 1.0.1 — 2017-02-11
- 1.0.0 — 2017-01-28

## README

# start-split


[![npm](https://img.shields.io/npm/v/start-split.svg?style=flat-square)](https://www.npmjs.com/package/start-split)
[![linux build](https://img.shields.io/circleci/project/github/effervescentia/start-split/master.svg?label=linux&style=flat-square)](https://circleci.com/gh/effervescentia/start-split)
[![windows build](https://img.shields.io/appveyor/ci/effervescentia/start-split/master.svg?label=windows&style=flat-square)](https://ci.appveyor.com/project/effervescentia/start-split)
[![coverage](https://img.shields.io/codecov/c/github/effervescentia/start-split/master.svg?style=flat-square)](https://codecov.io/github/effervescentia/start-split)
[![deps](https://david-dm.org/effervescentia/start-split.svg?style=flat-square)](https://david-dm.org/effervescentia/start-split)

[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square)](http://commitizen.github.io/cz-cli/)
[![greenkeeper](https://badges.greenkeeper.io/effervescentia/start-split.svg)](https://greenkeeper.io/)

split task pipelines for [Start](https://github.com/start-runner/start)

Apply a different set of tasks to each directory. Partially to overcome
[`start-write`](https://github.com/start-runner/write) stripping the root
directory for cases when relative directory structure must be retained (simple typescript + mocha).

## Install

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

## Usage

```js
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](https://github.com/start-runner/start#readme) 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`][start-concurrent].
    Defaults to `true`.

[start-concurrent]: https://github.com/start-runner/concurrent

---
_Source: https://npm.io/package/start-split · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
