diff options
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/build-ui | 10 | ||||
| -rwxr-xr-x | tools/run | 2 | ||||
| -rwxr-xr-x | tools/run-frontend | 4 | ||||
| -rwxr-xr-x | tools/test | 13 | ||||
| -rwxr-xr-x | tools/test-all | 10 | ||||
| -rwxr-xr-x | tools/test-server | 9 | ||||
| -rwxr-xr-x | tools/test-ui | 9 |
7 files changed, 16 insertions, 41 deletions
diff --git a/tools/build-ui b/tools/build-ui deleted file mode 100755 index ba8d016..0000000 --- a/tools/build-ui +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -e - -## tools/build-ui -## -## Builds the Svelte UI. - -cd "$(dirname "$0")/.." - -npm install -npm run build @@ -11,7 +11,7 @@ trap 'kill "${PIDS[@]}"' EXIT cargo run & PIDS+=($!) -npm run dev -- --host & +npx vite dev --host & PIDS+=($!) wait "${PIDS[@]}" diff --git a/tools/run-frontend b/tools/run-frontend index 14ff49c..ccb9bd4 100755 --- a/tools/run-frontend +++ b/tools/run-frontend @@ -3,8 +3,8 @@ ## tools/run-frontend [OPTIONS…] ## ## Runs a development server for the Pilcrow UI. Options are passed through to -## the `npm run dev` command. This is best combined with the `API_SERVER` +## the `npx vite dev` command. This is best combined with the `API_SERVER` ## environment variable, to configure the development server to connect to a ## running Pilcrow instance. -exec npm run dev -- --host "$@" +exec npx vite dev --host "$@" diff --git a/tools/test b/tools/test new file mode 100755 index 0000000..06e2159 --- /dev/null +++ b/tools/test @@ -0,0 +1,13 @@ +#!/bin/bash -e + +## tools/test +## +## Run the full test suite. +## +## Best run as `tools/test` even if you have the `tools` directory in your +## $PATH, due to naming collisions with the `test` shell builtin or `/bin/test`. + +cd "$(dirname "$0")/.." + +npx vitest --run --coverage +cargo test diff --git a/tools/test-all b/tools/test-all deleted file mode 100755 index 0ad3ca3..0000000 --- a/tools/test-all +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -e - -## tools/test-all -## -## Run the full test suite. - -cd "$(dirname "$0")/.." - -tools/test-ui -tools/test-server diff --git a/tools/test-server b/tools/test-server deleted file mode 100755 index 44bdf76..0000000 --- a/tools/test-server +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -e - -## tools/test-server -## -## Run the server test suite. - -cd "$(dirname "$0")/.." - -cargo test diff --git a/tools/test-ui b/tools/test-ui deleted file mode 100755 index eff5a07..0000000 --- a/tools/test-ui +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -e - -## tools/test-ui -## -## Run the UI test suite. - -cd "$(dirname "$0")/.." - -npm run test -- --run |
