New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

runpro

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

runpro

A CLI tool for running project commands

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
0
Created
Source

Runpro

RunPro is a command-line tool that helps you run multiple terminal commands in separate tabs, based on configurations defined in a config.json file. It is designed to simplify the management of multiple services (e.g., frontend and backend) running concurrently in different directories.

Installation

  • Clone the repository:
    git clone https://github.com/Saanvi26/runpro.git
    cd runpro
    
  • Install the required dependencies:
    npm install
    

Configuration

In the root folder of the project, create a config.json file. This file should define the commands to run in each terminal tab.

Usage

Start the Commands

Run the following command to start the commands defined in the config.json file. This will open a new terminal tab for each command and run the respective command from the specified directory. runpro start <path-to-config.json>

Help Command

runpro help

How It Works

Config File: The config.json defines which commands to run and their associated directories.
Execution: The runpro tool reads the configuration file, navigates to each specified directory, and opens a new terminal tab for each command.
Platform: The tool uses osascript for macOS to control Terminal and create new tabs. (Currently, it works on macOS only.)

Requirements

  • macOS (due to the use of osascript for controlling the Terminal).
  • Node.js installed.

Contributing

Contributions are welcome! Here's how you can contribute:

  • Fork the repository.
  • Create a new branch (git checkout -b feature-branch).
  • Commit your changes (git commit -am 'Add new feature').
  • Push to your branch (git push origin feature-branch).
  • Open a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

  • The chalk package is used for styling the terminal output.
  • The osascript is used for controlling Terminal and managing tabs in macOS.

Keywords

cli

FAQs

Package last updated on 15 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts