### Configure dev-runner service with variable placeholders Source: https://github.com/heyputer/dev-runner/blob/main/README.md This `run.json5` example demonstrates how to embed variable placeholders (e.g., `{cert}`, `{key}`) within a service command. These variables are dynamically loaded from a separate JSON5 file, allowing for flexible and environment-specific configurations. ```javascript { services: [ { name: 'static-https', pwd: './dist', command: 'npx http-server =p 8443 -S -C "{cert}" -L "{key}"' } ] } ``` -------------------------------- ### Install dev-runner globally via npm Source: https://github.com/heyputer/dev-runner/blob/main/README.md This command installs the dev-runner utility globally on your system using npm, making the `dev-runner` command available from any directory in your terminal. ```shell npm install -g @heyputer/dev-runner ``` -------------------------------- ### Execute dev-runner with main config and variable files Source: https://github.com/heyputer/dev-runner/blob/main/README.md This command initiates dev-runner, explicitly providing both the main configuration file (`run.json5`) and a secondary file (`local.json5`) containing variable definitions. The variables from `local.json5` will be substituted into the commands defined in `run.json5` before execution. ```shell dev-runner run.json5 local.json5 ``` -------------------------------- ### Define services in dev-runner configuration file (run.json5) Source: https://github.com/heyputer/dev-runner/blob/main/README.md This JSON5 snippet illustrates how to configure multiple services within a `run.json5` file. Each service specifies a unique name, a working directory (`pwd`), and the shell command to execute, enabling concurrent process management. ```javascript { services: [ { name: 'static-host', pwd: './dist', command: 'npx http-server -p 8080' }, { name: 'rollup-watcher', pwd: '.', command: 'npx rollup -c rollup.config.js --watch' } ] } ``` -------------------------------- ### Run dev-runner with a specified configuration file Source: https://github.com/heyputer/dev-runner/blob/main/README.md This command executes dev-runner, instructing it to use `run.json5` as its primary configuration file. If no filename is provided, dev-runner defaults to looking for `run.json5` in the current directory. ```shell dev-runner run.json5 ``` -------------------------------- ### Define variables for dev-runner in a local JSON5 file Source: https://github.com/heyputer/dev-runner/blob/main/README.md This `local.json5` snippet provides concrete values for variables referenced in the main `run.json5` configuration. This separation allows for managing sensitive information or environment-specific paths independently from the core service definitions. ```javascript { cert: '/var/my-certs/cert.pem', key: '/var/my-certs/key.pem' } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.