|
8 | 8 | "description": "Official front-end implementation of ComfyUI",
|
9 | 9 | "license": "GPL-3.0-only",
|
10 | 10 | "scripts": {
|
11 |
| - "dev": "nx serve", |
12 |
| - "dev:electron": "nx serve --config vite.electron.config.mts", |
13 |
| - "build": "pnpm typecheck && nx build", |
| 11 | + "build-storybook": "storybook build", |
14 | 12 | "build:types": "nx build --config vite.types.config.mts && node scripts/prepare-types.js",
|
15 |
| - "zipdist": "node scripts/zipdist.js", |
16 |
| - "typecheck": "vue-tsc --noEmit", |
17 |
| - "format": "prettier --write './**/*.{js,ts,tsx,vue,mts}' --cache --list-different", |
| 13 | + "build": "pnpm typecheck && nx build", |
| 14 | + "collect-i18n": "pnpm exec playwright test --config=playwright.i18n.config.ts", |
| 15 | + "dev:electron": "nx serve --config vite.electron.config.mts", |
| 16 | + "dev": "nx serve", |
| 17 | + "devtools:pycheck": "python3 -m compileall -q tools/devtools", |
| 18 | + "format:check:no-cache": "prettier --check './**/*.{js,ts,tsx,vue,mts}'", |
18 | 19 | "format:check": "prettier --check './**/*.{js,ts,tsx,vue,mts}' --cache",
|
19 | 20 | "format:no-cache": "prettier --write './**/*.{js,ts,tsx,vue,mts}' --list-different",
|
20 |
| - "format:check:no-cache": "prettier --check './**/*.{js,ts,tsx,vue,mts}'", |
21 |
| - "test:all": "nx run test", |
22 |
| - "test:browser": "pnpm exec nx e2e", |
23 |
| - "test:component": "nx run test src/components/", |
24 |
| - "test:litegraph": "vitest run --config vitest.litegraph.config.ts", |
25 |
| - "test:unit": "nx run test tests-ui/tests", |
26 |
| - "preinstall": "pnpm dlx only-allow pnpm", |
27 |
| - "prepare": "husky || true && git config blame.ignoreRevsFile .git-blame-ignore-revs || true", |
28 |
| - "preview": "nx preview", |
29 |
| - "lint": "eslint src --cache", |
| 21 | + "format": "prettier --write './**/*.{js,ts,tsx,vue,mts}' --cache --list-different", |
| 22 | + "json-schema": "tsx scripts/generate-json-schema.ts", |
| 23 | + "knip:no-cache": "knip", |
| 24 | + "knip": "knip --cache", |
| 25 | + "lint:fix:no-cache": "eslint src --fix", |
30 | 26 | "lint:fix": "eslint src --cache --fix",
|
31 |
| - "lint:unstaged": "git diff --name-only HEAD | grep -E '\\.(js|ts|vue|mts)$' | xargs -r eslint --cache", |
32 |
| - "lint:unstaged:fix": "git diff --name-only HEAD | grep -E '\\.(js|ts|vue|mts)$' | xargs -r eslint --cache --fix", |
33 | 27 | "lint:no-cache": "eslint src",
|
34 |
| - "lint:fix:no-cache": "eslint src --fix", |
35 |
| - "knip": "knip --cache", |
36 |
| - "knip:no-cache": "knip", |
| 28 | + "lint:unstaged:fix": "git diff --name-only HEAD | grep -E '\\.(js|ts|vue|mts)$' | xargs -r eslint --cache --fix", |
| 29 | + "lint:unstaged": "git diff --name-only HEAD | grep -E '\\.(js|ts|vue|mts)$' | xargs -r eslint --cache", |
| 30 | + "lint": "eslint src --cache", |
37 | 31 | "locale": "lobe-i18n locale",
|
38 |
| - "collect-i18n": "pnpm exec playwright test --config=playwright.i18n.config.ts", |
39 |
| - "json-schema": "tsx scripts/generate-json-schema.ts", |
| 32 | + "preinstall": "pnpm dlx only-allow pnpm", |
| 33 | + "prepare": "husky || true && git config blame.ignoreRevsFile .git-blame-ignore-revs || true", |
| 34 | + "preview": "nx preview", |
40 | 35 | "storybook": "nx storybook -p 6006",
|
41 |
| - "build-storybook": "storybook build", |
42 |
| - "devtools:pycheck": "python3 -m compileall -q tools/devtools" |
| 36 | + "test:browser": "pnpm exec nx e2e", |
| 37 | + "test:unit": "nx run test", |
| 38 | + "typecheck": "vue-tsc --noEmit", |
| 39 | + "zipdist": "node scripts/zipdist.js" |
43 | 40 | },
|
44 | 41 | "devDependencies": {
|
45 | 42 | "@eslint/js": "catalog:",
|
|
0 commit comments