From c691ce6cae808e93741c0d2232e73f52fd55f992 Mon Sep 17 00:00:00 2001 From: Ian Thomas Date: Thu, 14 Mar 2024 14:44:04 +0000 Subject: [PATCH] Correct jlpm watch command Signed-off-by: Ian Thomas --- README.md | 10 ++++++++++ package.json | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f7b2cd8a..c3aea174 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,16 @@ jupyter labextension develop . --overwrite Note for developers: the `--symlink` argument on Linux or OS X allows one to modify the JavaScript code in-place. This feature is not available with Windows. +If you are changing TypeScript code you can watch for code changes and automatically rebuild using +```bash +jlpm watch +``` +in one terminal and +```bash +jupyter lab +``` +(or `jupyter notebook` or similar) in another. + ## Contributions We :heart: contributions. diff --git a/package.json b/package.json index 6d939b28..37ff7c46 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "lint": "eslint 'js/**/*.{js,ts}' --quiet --fix", "prepack": "jlpm run build:labextension && jlpm run build:nbextension", "test": "jest --verbose", - "watch": "npm-run-all -p watch:*", + "watch": "npm-run-all -p watch:lib watch:labextension watch:nbextension", "watch:lib": "tsc -w", "watch:nbextension": "webpack --watch", "watch:labextension": "jupyter labextension watch ."