F1bonacc1 / process-compose

Process Compose is a simple and flexible scheduler and orchestrator to manage non-containerized applications.
https://f1bonacc1.github.io/process-compose/
Apache License 2.0
1.29k stars 49 forks source link

npm installation support #218

Open andymac4182 opened 2 months ago

andymac4182 commented 2 months ago

Feature Request

Use Case:

We are looking at using process-compose to orchestrate a few of our commands. It needs to be something that is abstracted from most of the team members.

Proposed Change:

Ship this as a binary in npm for supported platforms similar to napi-rs does.

Who Benefits From The Change(s)?

This reduces the effort to adopt and lets projects have different versions instead of one global version.

Alternative Approaches

adrian-gierakowski commented 2 months ago

Consider using nix for managing non js deps https://nixos.org/

idangoldman commented 1 month ago

You can wrap the download-install of process-compose with an npm scripts command and use it as part of the project's napi-rc workflow.

{
  "scripts": {
    "download:process-compose": "sh -c \"$(curl --location https://raw.githubusercontent.com/F1bonacc1/process-compose/main/scripts/get-pc.sh)\" -- -d"
  }
}