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
|
||||||
dist-ssr
|
dist-ssr
|
||||||
*.local
|
*.local
|
||||||
|
.eslintcache
|
||||||
|
.tsbuildinfo
|
||||||
.ai/
|
.ai/
|
||||||
yarn.lock
|
yarn.lock
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -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
@@ -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",
|
||||||
|
|||||||
@@ -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/*"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user