mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-03 08:07:21 +00:00
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:
4 files changed
+8
-2
No files matched your search
@@ -12,6 +12,8 @@ node_modules
|
||||
dist
|
||||
dist-ssr
|
||||
*.local
|
||||
.eslintcache
|
||||
.tsbuildinfo
|
||||
.ai/
|
||||
yarn.lock
|
||||
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ import htmlEslint from "@html-eslint/eslint-plugin";
|
||||
import customRules from "./eslint-rules/index.js";
|
||||
|
||||
export default defineConfig(
|
||||
globalIgnores(["dist"]),
|
||||
globalIgnores(["dist", ".agents"]),
|
||||
{
|
||||
name: "app/ts",
|
||||
files: ["**/*.{ts,tsx}"],
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
"scripts": {
|
||||
"dev": "npm i --silent && vite",
|
||||
"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": {
|
||||
"@nostrify/nostrify": "^0.52.0",
|
||||
|
||||
@@ -17,6 +17,10 @@
|
||||
/* Linting */
|
||||
"strict": true,
|
||||
|
||||
/* Incremental compilation for faster re-runs of `tsc --noEmit` */
|
||||
"incremental": true,
|
||||
"tsBuildInfoFile": "./.tsbuildinfo",
|
||||
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user