Files
radicle-explorer/scripts/check
T
Daniel Norman 8f2ddcf489 Cache npm dependencies in Buildkite
- Add twemoji as npm dependency instead of build download
- Package build assets with a Vite plugin instead of scripts
- Keep the eslint and prettier caches in one directory
2026-08-26 17:44:04 +02:00

13 lines
750 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
npx eslint --cache --cache-location .lintcache/eslint --cache-strategy content --max-warnings 0 .
npx prettier "**/*.@(ts|js|svelte|json|css|html|yml)" --ignore-path .gitignore --ignore-path .prettierignore --check --cache --cache-location .lintcache/prettier