Files
radicle-explorer/explorer/scripts/check
T
Rūdolfs Ošiņš e37521c739 Move explorer into explorer/
Makes explorer and desktop sibling projects, as proposed in ADR 1.
This commit only moves files; paths in CI, scripts and docs are fixed
in the following commits.
2026-10-22 11:06:33 +02:00

15 lines
910 B
Bash
Executable File

#!/bin/sh
set -e
npx tsc --noEmit
npx svelte-check --tsconfig tsconfig.json --config ./vite.config.ts --fail-on-warnings --compiler-warnings options_missing_custom_element:ignore
# Both caches sit outside node_modules, which `npm ci` deletes, and both are
# keyed on file contents rather than mtimes, which a fresh checkout changes.
# CI can then carry them between builds. They share one directory because a
# Buildkite cache path is always a directory, never a file.
mkdir -p .lintcache
# desktop/ has its own eslint config, which eslint would otherwise pick up for
# its files. It is linted by desktop/scripts/check-js.
npx eslint --cache --cache-location .lintcache/eslint --cache-strategy content --max-warnings 0 --ignore-pattern desktop/ .
npx prettier "**/*.@(ts|js|svelte|json|css|html|yml)" --ignore-path .gitignore --ignore-path .prettierignore --check --cache --cache-location .lintcache/prettier