mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 19:21:54 +00:00
[ci] Add caching support to format and knip commands (#5107)
- Enable caching for prettier and knip commands to improve CI performance - Add no-cache variants for consistency with existing lint scripts - Exclude generated type files from prettier formatting - Add .prettiercache to .gitignore for proper cache management Follows the same optimization pattern as ESLint caching from PR #4926.
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -13,8 +13,9 @@ bun.lockb
|
|||||||
pnpm-lock.yaml
|
pnpm-lock.yaml
|
||||||
yarn.lock
|
yarn.lock
|
||||||
|
|
||||||
# ESLint cache
|
# Cache files
|
||||||
.eslintcache
|
.eslintcache
|
||||||
|
.prettiercache
|
||||||
|
|
||||||
node_modules
|
node_modules
|
||||||
dist
|
dist
|
||||||
|
|||||||
2
.prettierignore
Normal file
2
.prettierignore
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
src/types/comfyRegistryTypes.ts
|
||||||
|
src/types/generatedManagerTypes.ts
|
||||||
@@ -14,8 +14,10 @@
|
|||||||
"build:types": "vite build --config vite.types.config.mts && node scripts/prepare-types.js",
|
"build:types": "vite build --config vite.types.config.mts && node scripts/prepare-types.js",
|
||||||
"zipdist": "node scripts/zipdist.js",
|
"zipdist": "node scripts/zipdist.js",
|
||||||
"typecheck": "vue-tsc --noEmit",
|
"typecheck": "vue-tsc --noEmit",
|
||||||
"format": "prettier --write './**/*.{js,ts,tsx,vue,mts}'",
|
"format": "prettier --write './**/*.{js,ts,tsx,vue,mts}' --cache",
|
||||||
"format:check": "prettier --check './**/*.{js,ts,tsx,vue,mts}'",
|
"format:check": "prettier --check './**/*.{js,ts,tsx,vue,mts}' --cache",
|
||||||
|
"format:no-cache": "prettier --write './**/*.{js,ts,tsx,vue,mts}'",
|
||||||
|
"format:check:no-cache": "prettier --check './**/*.{js,ts,tsx,vue,mts}'",
|
||||||
"test:browser": "npx playwright test",
|
"test:browser": "npx playwright test",
|
||||||
"test:unit": "vitest run tests-ui/tests",
|
"test:unit": "vitest run tests-ui/tests",
|
||||||
"test:component": "vitest run src/components/",
|
"test:component": "vitest run src/components/",
|
||||||
@@ -25,7 +27,8 @@
|
|||||||
"lint:fix": "eslint src --cache --fix",
|
"lint:fix": "eslint src --cache --fix",
|
||||||
"lint:no-cache": "eslint src",
|
"lint:no-cache": "eslint src",
|
||||||
"lint:fix:no-cache": "eslint src --fix",
|
"lint:fix:no-cache": "eslint src --fix",
|
||||||
"knip": "knip",
|
"knip": "knip --cache",
|
||||||
|
"knip:no-cache": "knip",
|
||||||
"locale": "lobe-i18n locale",
|
"locale": "lobe-i18n locale",
|
||||||
"collect-i18n": "playwright test --config=playwright.i18n.config.ts",
|
"collect-i18n": "playwright test --config=playwright.i18n.config.ts",
|
||||||
"json-schema": "tsx scripts/generate-json-schema.ts",
|
"json-schema": "tsx scripts/generate-json-schema.ts",
|
||||||
|
|||||||
Reference in New Issue
Block a user