-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding ./checks.sh for contributors, and easier dev-tool setup
- Loading branch information
Showing
2 changed files
with
54 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/sh | ||
|
||
# error on first error | ||
set -e | ||
|
||
if ! command -v misspellx &> /dev/null | ||
then | ||
echo "=== Skipping Spell Check ===" | ||
echo "Skip running spell check using 'misspell' as the tool is not installed." | ||
echo "Install it using the instructions here: https://github.com/client9/misspell" | ||
echo "Skipping this check now, but it may fail in CI.\n" | ||
else | ||
echo "=== Running Spell Check ===" | ||
misspell -error ./src README.md | ||
echo "no spelling mistakes found\n" | ||
fi | ||
|
||
echo "=== Running Format Check With Prettier ===" | ||
npm run format_check | ||
|
||
echo "=== Running Linter ===" | ||
npm run lint | ||
|
||
echo "=== Running Svelte Check ===" | ||
npm run check | ||
|
||
echo "=== Running Tests ===" | ||
npm run test_run | ||
|
||
echo "\n=== All Checks Pass ===\n" | ||
|