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 committed 2026-05-05 19:00:54 -05:00
1 parent e289c67a70
commit f9673379d7
4 files changed
+8 -2

No files matched your search

+2
View File
@@ -12,6 +12,8 @@ node_modules
dist dist
dist-ssr dist-ssr
*.local *.local
.eslintcache
.tsbuildinfo
.ai/ .ai/
yarn.lock yarn.lock
+1 -1
View File
@@ -9,7 +9,7 @@ import htmlEslint from "@html-eslint/eslint-plugin";
import customRules from "./eslint-rules/index.js"; import customRules from "./eslint-rules/index.js";
export default defineConfig( export default defineConfig(
globalIgnores(["dist"]), globalIgnores(["dist", ".agents"]),
{ {
name: "app/ts", name: "app/ts",
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!'"
}, },
"dependencies": { "dependencies": {
"@nostrify/nostrify": "^0.52.0", "@nostrify/nostrify": "^0.52.0",
+4
View File
@@ -17,6 +17,10 @@
/* Linting */ /* Linting */
"strict": true, "strict": true,
/* Incremental compilation for faster re-runs of `tsc --noEmit` */
"incremental": true,
"tsBuildInfoFile": "./.tsbuildinfo",
"paths": { "paths": {
"@/*": ["./src/*"] "@/*": ["./src/*"]
} }