Started refactoring, added prettier and checks and reformatted project, added cspell and checks and custom project words, beginning of robotic oceanographic surface sampler content
This commit is contained in:
36
Makefile
36
Makefile
@@ -6,7 +6,14 @@
|
||||
astro_upgrade \
|
||||
build \
|
||||
dev \
|
||||
dev-hosted
|
||||
dev-hosted \
|
||||
test \
|
||||
_spelling-generate-new-words \
|
||||
spelling-find-new-words \
|
||||
spelling-add-new-words \
|
||||
spelling-check \
|
||||
cleanup-check \
|
||||
cleanup-code
|
||||
|
||||
default: dev
|
||||
|
||||
@@ -28,3 +35,30 @@ dev:
|
||||
dev-hosted:
|
||||
npm run dev-hosted
|
||||
|
||||
test: spelling-check
|
||||
@npx playwright install --with-deps
|
||||
npm run test --ui
|
||||
npx playwright test --ui
|
||||
|
||||
_spelling-generate-new-words:
|
||||
@cspell --words-only --unique . 2>/dev/null | sort --ignore-case -o new-words.txt
|
||||
|
||||
spelling-find-new-words: _spelling-generate-new-words
|
||||
@echo "Found the following new words:"
|
||||
@cat new-words.txt
|
||||
@rm -f new-words.txt
|
||||
|
||||
spelling-add-new-words: _spelling-generate-new-words
|
||||
@echo "Adding to project-words.txt"
|
||||
@cat new-words.txt >> project-words.txt
|
||||
@rm -f new-words.txt
|
||||
@cat project-words.txt | sort --ignore-case -o project-words.txt
|
||||
|
||||
spelling-check:
|
||||
npx cspell .
|
||||
|
||||
cleanup-check:
|
||||
npx prettier . --check
|
||||
|
||||
cleanup-code:
|
||||
npx prettier . --write
|
||||
Reference in New Issue
Block a user