Speed up npm run test with eslint/tsc caching

Ignore .agents skill bundles from eslint (template files not part of
the build), enable eslint --cache and tsc --incremental so warm re-runs
skip unchanged files.
This commit is contained in:
Alex Gleason
2026-05-05 19:00:53 -05:00
parent 4a4ed9bc2d
commit 65788705c3
4 changed files with 8 additions and 2 deletions
+2
View File
@@ -11,6 +11,8 @@ node_modules
dist dist
dist-ssr dist-ssr
*.local *.local
.eslintcache
.tsbuildinfo
yarn.lock yarn.lock
deploy.sh deploy.sh
+1 -1
View File
@@ -8,7 +8,7 @@ import htmlParser from "@html-eslint/parser";
import customRules from "./eslint-rules/index.js"; import customRules from "./eslint-rules/index.js";
export default tseslint.config( export default tseslint.config(
{ ignores: ["dist", "android", "ios"] }, { ignores: ["dist", "android", "ios", ".agents"] },
{ {
extends: [js.configs.recommended, ...tseslint.configs.recommended], extends: [js.configs.recommended, ...tseslint.configs.recommended],
files: ["**/*.{ts,tsx}"], files: ["**/*.{ts,tsx}"],
+1 -1
View File
@@ -6,7 +6,7 @@
"scripts": { "scripts": {
"dev": "npm i --silent && vite", "dev": "npm i --silent && vite",
"build": "npm i --silent && vite build -l error && cp dist/index.html dist/404.html && echo 'Project built successfully!'", "build": "npm i --silent && vite build -l error && cp dist/index.html dist/404.html && echo 'Project built successfully!'",
"test": "npm i --silent && tsc --noEmit && eslint && vitest run --reporter=dot --silent && vite build -l error && cp dist/index.html dist/404.html && echo 'All tests passed!'", "test": "npm i --silent && tsc --noEmit && eslint --cache && vitest run --reporter=dot --silent && vite build -l error && cp dist/index.html dist/404.html && echo 'All tests passed!'",
"cap:sync": "npx cap sync && node scripts/patch-cap-config.mjs", "cap:sync": "npx cap sync && node scripts/patch-cap-config.mjs",
"keygen": "keytool -genkey -v -keystore android/app/my-upload-key.keystore -keyalg RSA -keysize 2048 -validity 10000 -alias upload", "keygen": "keytool -genkey -v -keystore android/app/my-upload-key.keystore -keyalg RSA -keysize 2048 -validity 10000 -alias upload",
"icons": "bash scripts/generate-icons.sh" "icons": "bash scripts/generate-icons.sh"
+4
View File
@@ -23,6 +23,10 @@
"noImplicitAny": false, "noImplicitAny": false,
"noFallthroughCasesInSwitch": false, "noFallthroughCasesInSwitch": false,
/* Incremental compilation for faster re-runs of `tsc --noEmit` */
"incremental": true,
"tsBuildInfoFile": "./.tsbuildinfo",
"baseUrl": ".", "baseUrl": ".",
"paths": { "paths": {
"@/*": ["./src/*"] "@/*": ["./src/*"]