# @codeceptjs-bootstraps/core

> Core functionality for the CodeceptJS bootstraps

Latest version **0.0.2** (published 2023-03-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @codeceptjs-bootstraps/core
pnpm add @codeceptjs-bootstraps/core
yarn add @codeceptjs-bootstraps/core
bun add @codeceptjs-bootstraps/core
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2023-03-03 |
| First published | 2023-03-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ivan Reutenko |
| Maintainers | reutenkoivan |

## Links

- npm: https://www.npmjs.com/package/@codeceptjs-bootstraps/core
- Repository: https://github.com/reutenkoivan/codeceptjs-bootstraps
- Homepage: https://reutenkoivan.github.io/codeceptjs-bootstraps/
- Issues: https://github.com/reutenkoivan/codeceptjs-bootstraps/issues
- npm.io page: https://npm.io/package/@codeceptjs-bootstraps/core

## Dependencies (1)

- [signales](https://npm.io/package/signales.md) ^2.0.5

## Recent versions

- 0.0.2 (latest) — 2023-03-03

## README

## [@codeceptjs-bootstraps/core](https://reutenkoivan.github.io/codeceptjs-bootstraps/) [![Made in Ukraine](https://img.shields.io/badge/made_in-ukraine-ffd700.svg?labelColor=0057b7)](https://stand-with-ukraine.pp.ua)

<p>
  <a href="https://www.npmjs.com/package/@codeceptjs-bootstraps/core"><img src="https://img.shields.io/npm/v/@codeceptjs-bootstraps/core.svg?style=flat" alt="npm version"></a>
  <a href="#license"><img src="https://img.shields.io/github/license/sourcerer-io/hall-of-fame.svg?colorB=ff0000"></a>
</p>

This package contains core functionality for managing the CodeceptJS bootstraps.

## Installation

```bash
npm add -D @codeceptjs-bootstraps/core
```

```bash
yarn add -D @codeceptjs-bootstraps/core
```

## createPipeline
```typescript title="codecept.config.js"
import { createPipeline } from '@codeceptjs-bootstraps/core'

const firstBootstrap = {
  bootstrap: () => {
    console.log('bootstrap 1')
  },
  teardown: async () => {
    console.log('teardown 1')
  },
}

const secondBootstrap = {
  bootstrap: async () => {
    console.log('bootstrap 2')
  },
  bootstrapAll: () => {
    console.log('bootstrapAll 2')
  },
}

const pipeline = createPipeline([
  firstBootstrap,
  secondBootstrap,
])

exports.config = {
  ...pipeline
}
/*
Expected output:
1) bootstrapAll 2
2) bootstrap 1
3) bootstrap 2
4) teardown 1
*/
```

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