Page MenuHomeSealhub

README.md
No OneTemporary

README.md

# multiple-scripts-tmux
## Description
This project allows you to conveniently run multiple scripts in separate tmux windows using a simple command in the terminal.
## Requirements
- tmux
- npm
## Installation
Installing **multiple-scripts-tmux** using npm:
```bash
npm install multiple-scripts-tmux
```
Install Tmux on **Ubuntu** and **Debian**:
```bash
$ sudo apt-get install tmux
```
Install tmux via HomeBrew of **OSX**:
```bash
$ brew install tmux
```
## Running
```bash
npx multiple-scripts-tmux "npm run watch:front" "npm run watch:back"
```
or using `tmux-scripts` in your `package.json`.
```bash
npx multiple-scripts-tmux -p watch
```
## Example Usage in package.json
In your package.json file, you can configure your scripts and define script sets to run in different configurations. Here's an example:
```json
"scripts": {
"watch": "multiple-scripts-tmux -p watch",
"watch:back": "echo 'Watching back-end'",
"watch:front": "echo 'Watching front-end'",
},
"tmux-scripts": {
"watch": [
"npm run watch:back",
"npm run watch:front"
],
},
```
To execute the scripts defined in the `package.json` file, enter the appropriate commands in the terminal. For example:
```bash
npm run watch
```
Running this command launches the correspondingdhc tmux-scripts
## Testing
To run tests in the project, follow these steps:
### 1. Run the watch script:
```bash
npm run watch
```
This script monitors changes in the project's source code and automatically runs tests upon detecting changes. It's a useful tool for continuous testing and ensuring that your code is always checked for potential issues.
### 2. Navigate to the testing directory:
```bash
cd testing/
```
Navigate to the "testing/" directory, which likely contains testing package.json.
### 3. Execute the tests:
```bash
node ../lib/index.js -p start
```
This command runs tests using the index.js file located in the "lib" directory.

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 01:06 (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
547571
Default Alt Text
README.md (1 KB)

Event Timeline