From 610fa0b850377eb5453f425986077b9f41206b70 Mon Sep 17 00:00:00 2001 From: Rob Anderson Date: Thu, 2 Jun 2022 11:47:51 +0100 Subject: [PATCH] remove "run" script in favour of Extension > Activate menu --- DEVELOPMENT.md | 6 +++--- bin/build.sh | 3 +++ bin/run.sh | 8 -------- 3 files changed, 6 insertions(+), 11 deletions(-) delete mode 100755 bin/run.sh diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index e75bb3e..35fa46d 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -18,10 +18,10 @@ npm install ## regular use For development, use the `Development` task to build and run the extension locally. -**Build** will compile the TypeScript into JavaScript into the extension folder. -**Run** will do the build, install bundled dependencies and activate the extension in Nova. +**Build** will compile the TypeScript into JavaScript into the extension folder and install bundled dependencies. +Use **Extensions → Activate Project as Extension** to run the extension. Nova will run the extension locally and restart when any file inside the `.novaextension` changes, -i.e. by running the **Build** task. +i.e. by running the **Build** task again. > Make sure to disable the extension if a published version is already installed. diff --git a/bin/build.sh b/bin/build.sh index 009d449..366caa9 100755 --- a/bin/build.sh +++ b/bin/build.sh @@ -6,6 +6,9 @@ set -e # Lint TypeScript source code npx tsc --noEmit --pretty +# Install extension dependencies +npm --prefix yaml.novaextension i --no-audit + # Bundle into JavaScript npx esbuild \ --bundle \ diff --git a/bin/run.sh b/bin/run.sh deleted file mode 100755 index 2680fae..0000000 --- a/bin/run.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash - -# Install dependencies -npm --prefix yaml.novaextension i --no-audit - -# Activate the extension -nova extension activate . -