From c5d81a0abd7a3729e480c7c0f97723ab4d3bbf40 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Tue, 23 Dec 2025 08:31:54 -0800 Subject: [PATCH] Add contributing file Fixes #836 --- CONTRIBUTING.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..a7fd3fe5 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,24 @@ +## Testing in a real terminal + +The recommended way to test node-pty during development is to clone the xterm.js repository and link's node-pty module to this directory. + +1. Clone xterm.js in a separate folder: + ```sh + git clone https://github.com/xtermjs/xterm.js + npm ci + npm run setup + ``` +2. Link the node-pty repo: + ``` + rm -rf node_modules/node-pty # in xterm.js folder + ln -s /node_modules/node-pty + ``` +3. Hit ctrl/cmd+shift+b in VS Code or run the build/demo scripts manually: + ```sh + npm run tsc-watch # build ts + npm run esbuild-watch # bundle ts/js + npm run esbuild-demo # build demo/server + npm run start # run server + ``` +4. Open http://127.0.0.1:3000 and test +5. Kill and restart the `npm run start` command to apply any changes made in node-pty