Skip to content
This repository has been archived by the owner on Mar 7, 2020. It is now read-only.

Documentation tidying #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/documentation/docs/composition.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ title: Composition of tasks
sidebar_label: Composition of tasks
---

Once a project get to be a bit more complex, a build step might consist of multiple sub tasks. This can be achieved with composition. This is the main reason `just-task` is made. It simplifies the composition of tasks.
Once a project gets a bit more complex, a build step might consist of multiple subtasks. This can be achieved with composition. This is the main reason `just-task` is made. It simplifies the composition of tasks.

## Running tasks in a series
## Running tasks in series

```js
const { task, series } = require('just-task');
Expand All @@ -24,7 +24,7 @@ task('build', series('clean', 'babel'));

When you trigger `just build`, the `clean` task will run and complete before `babel` task is run.

## Runny tasks in parallel
## Running tasks in parallel

To take advantage of multi-core CPUs on our machines, we can run several tasks in parallel. Simply use the `parallel()` function.

Expand Down