# coffeekraken-scripts-stack

> Nice terminal interface to handle npm/yarn scripts execution as well as watch and run automatically the wanted ones.

Latest version **1.0.4** (published 2019-03-22) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install coffeekraken-scripts-stack
pnpm add coffeekraken-scripts-stack
yarn add coffeekraken-scripts-stack
bun add coffeekraken-scripts-stack
```

Provides the command `coffeekraken-scripts-stack`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2019-03-22 |
| First published | 2018-01-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 16 |
| Unpacked size | 29.9 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Coffeekraken |
| Maintainers | coffeekraken |
| Keywords | scripts, stack, terminal, interface, tool, npm, node, coffeekraken, coffee, kraken |

## Links

- npm: https://www.npmjs.com/package/coffeekraken-scripts-stack
- Repository: https://github.com/coffeekraken/scripts-stack
- Homepage: http://coffeekraken.io
- Issues: https://github.com/coffeekraken/scripts-stack/issues
- npm.io page: https://npm.io/package/coffeekraken-scripts-stack

## Dependencies (16)

- [pad](https://npm.io/package/pad.md) ^2.0.3
- [flat](https://npm.io/package/flat.md) ^4.1.0
- [chalk](https://npm.io/package/chalk.md) ^2.3.0
- [clear](https://npm.io/package/clear.md) ^0.0.1
- [blessed](https://npm.io/package/blessed.md) ^0.1.81
- [commander](https://npm.io/package/commander.md) ^2.9.0
- [terminate](https://npm.io/package/terminate.md) ^2.1.2
- [@babel/cli](https://npm.io/package/@babel/cli.md) ^7.0.0-beta.36
- [clipboardy](https://npm.io/package/clipboardy.md) ^1.2.3
- [strip-ansi](https://npm.io/package/strip-ansi.md) ^4.0.0
- [@babel/core](https://npm.io/package/@babel/core.md) ^7.0.0-beta.36
- [ansi-styles](https://npm.io/package/ansi-styles.md) ^3.2.0
- [log-symbols](https://npm.io/package/log-symbols.md) ^2.1.0
- [node-notifier](https://npm.io/package/node-notifier.md) ^5.1.2
- [remove-blank-lines](https://npm.io/package/remove-blank-lines.md) ^1.0.8
- [@babel/plugin-proposal-class-properties](https://npm.io/package/@babel/plugin-proposal-class-properties.md) ^7.0.0-beta.36

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2019-03-22
- 1.0.3 — 2018-12-03
- 1.0.2 — 2018-06-07
- 1.0.1 — 2018-01-03
- 1.0.0 — 2018-01-03

## README

![Coffeekraken Script Stack](/.resources/doc-header.jpg)

# Coffeekraken Scripts Stack <img src="/.resources/coffeekraken-logo.jpg" height="25px" />

<p class="lead">Nice terminal interface to handle npm/yarn scripts execution as well as watch and run automatically the wanted ones</p>

![Scripts stack screenshot](/.resources/scripts-stack-screenshot.png)

* Homepage: [Coffeekraken](http://coffeekraken.io)
* Source: [Github](http://github.com/coffeekraken/scripts-stack)
* Twitter: [Coffeekraken](https://twitter.com/coffeekrakenio)

## Table of content

1. [Features](#readme-features)
2. [Install](#readme-install)
3. [Launch](#readme-launch)
4. [Options](#readme-options)
5. [Watch mecanism](#readme-watch)
6. [Notifications](#readme-notifications)
7. [Contribute](#readme-contribute)
8. [Who are coffeekraken](#readme-who-are-coffeekraken)
9. [License](#readme-license)

<a name="readme-features"></a>
## Features

1. Display nicely your npm scripts
	- List all your scripts automaticaly
	- Switch between scripts output easily
	- Automatically switch between scripts when they starts
	- Display script status like error, success, running, etc...
2. Built-in watch mecanism
	- Simply define which files to monitor and which scripts to execute
	- Display the watch status of each scripts
3. Run your scripts visually
	- Execute the wanted script with 1 key press

<a name="readme-install"></a>
## Install

```sh
# using npm
npm install coffeekraken-scripts-stack --save-dev
# using yarn
yarn add coffeekraken-scripts-stack --dev
```

<a name="readme-launch"></a>
## Launch

In order to launch Script Stack in your project, you just need to add this line in your ```package.json``` scripts:

```json
{
  "scripts": {
    "my-cool-script": "something cool...",
    "start": "coffeekraken-scripts-stack my-cool-script [options]"
  }
}
```

Then launch your scripts stack with

```sh
# using npm
npm start
# or using yarn
yarn start
```

<a name="readme-options"></a>
## Options

Here's the available options that the `coffeekraken-scripts-stack` CLI provide

#### `--no-switch`

Disable the auto-switch feature. This will prevent the interface to change the selected script when one of them is started.

```sh
coffeekraken-scripts-stack --no-switch
```

#### `--no-watch`

Do not start the watch feature on each scripts. This will prevent the interface to automatically start the watches routines on each watchable ones.

```sh
coffeekraken-scripts-stack --no-watch
```

#### `--no-notifications`

Do not display any system wide notifications when scripts are completed

```sh
coffeekraken-scripts-stack --no-notifications
```

#### `-c --color`

Specify the main color of the interface. Useful to identify a particular project when multiple ones are launched at once.

```sh
coffeekraken-scripts-stack -c cyan
```

> The available values of this options are : `black blue green yellow cyan white magenta red`

#### `-i --ignore`

Specify a script to ignore in the interface. Usually it's a good idea to ignore the `start` one if you use it to lauch the interface like so:

```sh
coffeekraken-script-stack -i start -i my-other-script
```

<a name="readme-watch"></a>
## Watch

This interface has a built-in mecanism to watch files and launch a script when these are updated/deleted/added.
Simply specify in your `package.json` a `watch` property like so:

```json
{
  "watch": {
    "my-cool-script": {
      "paths": "src/js/**/*.js",
      "options": {}
    },
    "my-another-cool-script": {
      // etc...
    }
  },
  "scripts": {
    "my-cool-script": "webpack",
    "my-another-cool-script": "something cool...",
    "start" : "coffeekraken-scripts-stack -i start"
  }
}
```

Each `watch` objects are a [chokidar](https://github.com/paulmillr/chokidar#api) `paths` and `options` arguments. Refer to it for more infos.

<a id="readme-notifications"></a>
## Notifications

By default, scripts stack will display a system wide notification when a script is completed. This behavior can be removed by setting the `--no-notifications` option.

The notifications have no special icons by default but some special icons are available if your script name matches those rules:

1. `$scriptName` === `css|fonts|icons|img|js`
2. dist:`fonts` === `css|fonts|icons|img|js`
	- The last script name part (separated by :)

Here's some exemples of script names that will benefit of the special icons:

- `img`
- `dist:img`
- `dist:js`
- `something:cool:fonts`
- `js`
- etc...

<a id="readme-contribute"></a>
## Contribute

This is an open source project and will ever be! You are more that welcomed to contribute to his development and make it more awesome every day.
To do so, you have several possibilities:

1. [Share the love ❤️](https://github.com/Coffeekraken/coffeekraken/blob/master/contribute.md#contribute-share-the-love)
2. [Declare issues](https://github.com/Coffeekraken/coffeekraken/blob/master/contribute.md#contribute-declare-issues)
3. [Fix issues](https://github.com/Coffeekraken/coffeekraken/blob/master/contribute.md#contribute-fix-issues)
4. [Add features](https://github.com/Coffeekraken/coffeekraken/blob/master/contribute.md#contribute-add-features)
5. [Build web component](https://github.com/Coffeekraken/coffeekraken/blob/master/contribute.md#contribute-build-web-component)

<a id="readme-who-are-coffeekraken"></a>
## Who are Coffeekraken

We try to be **some cool guys** that build **some cool tools** to make our (and yours hopefully) **every day life better**.  

#### [More on who we are](https://github.com/Coffeekraken/coffeekraken/blob/master/who-are-we.md)

<a id="readme-license"></a>
## License

The code is available under the [MIT license](LICENSE.txt). This mean that you can use, modify, or do whatever you want with it. This mean also that it is shipped to you for free, so don't be a hater and if you find some issues, etc... feel free to [contribute](https://github.com/Coffeekraken/coffeekraken/blob/master/contribute.md) instead of sharing your frustrations on social networks like an asshole...

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