mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-28 23:02:02 +03:00
chore: rename format scripts for conventional naming
- format = fix (write) - format:check = check only - Update CI to use format:check
This commit is contained in:
@@ -167,9 +167,6 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- runtime: node
|
|
||||||
task: tsgo
|
|
||||||
command: pnpm tsgo
|
|
||||||
- runtime: node
|
- runtime: node
|
||||||
task: test
|
task: test
|
||||||
command: pnpm canvas:a2ui:bundle && pnpm test
|
command: pnpm canvas:a2ui:bundle && pnpm test
|
||||||
@@ -205,7 +202,7 @@ jobs:
|
|||||||
uses: ./.github/actions/setup-node-env
|
uses: ./.github/actions/setup-node-env
|
||||||
|
|
||||||
- name: Check formatting
|
- name: Check formatting
|
||||||
run: pnpm format
|
run: pnpm format:check
|
||||||
|
|
||||||
# Lint check — runs after format passes for cleaner output.
|
# Lint check — runs after format passes for cleaner output.
|
||||||
check-lint:
|
check-lint:
|
||||||
@@ -221,8 +218,8 @@ jobs:
|
|||||||
- name: Setup Node environment
|
- name: Setup Node environment
|
||||||
uses: ./.github/actions/setup-node-env
|
uses: ./.github/actions/setup-node-env
|
||||||
|
|
||||||
- name: Check lint
|
- name: Check types and lint
|
||||||
run: pnpm lint
|
run: pnpm check
|
||||||
|
|
||||||
# Check for files that grew past LOC threshold in this PR (delta-only).
|
# Check for files that grew past LOC threshold in this PR (delta-only).
|
||||||
# On push events, all steps are skipped and the job passes (no-op).
|
# On push events, all steps are skipped and the job passes (no-op).
|
||||||
|
|||||||
+7
-7
@@ -35,8 +35,8 @@
|
|||||||
"build": "pnpm canvas:a2ui:bundle && tsdown && pnpm build:plugin-sdk:dts && node --import tsx scripts/write-plugin-sdk-entry-dts.ts && node --import tsx scripts/canvas-a2ui-copy.ts && node --import tsx scripts/copy-hook-metadata.ts && node --import tsx scripts/write-build-info.ts && node --import tsx scripts/write-cli-compat.ts",
|
"build": "pnpm canvas:a2ui:bundle && tsdown && pnpm build:plugin-sdk:dts && node --import tsx scripts/write-plugin-sdk-entry-dts.ts && node --import tsx scripts/canvas-a2ui-copy.ts && node --import tsx scripts/copy-hook-metadata.ts && node --import tsx scripts/write-build-info.ts && node --import tsx scripts/write-cli-compat.ts",
|
||||||
"build:plugin-sdk:dts": "tsc -p tsconfig.plugin-sdk.dts.json",
|
"build:plugin-sdk:dts": "tsc -p tsconfig.plugin-sdk.dts.json",
|
||||||
"canvas:a2ui:bundle": "bash scripts/bundle-a2ui.sh",
|
"canvas:a2ui:bundle": "bash scripts/bundle-a2ui.sh",
|
||||||
"check": "pnpm tsgo && pnpm lint && pnpm format",
|
"check": "pnpm tsgo && pnpm lint && pnpm format:check",
|
||||||
"check:docs": "pnpm format:docs && pnpm lint:docs && pnpm docs:build",
|
"check:docs": "pnpm format:docs:check && pnpm lint:docs && pnpm docs:build",
|
||||||
"check:loc": "node --import tsx scripts/check-ts-max-loc.ts --max 500",
|
"check:loc": "node --import tsx scripts/check-ts-max-loc.ts --max 500",
|
||||||
"dev": "node scripts/run-node.mjs",
|
"dev": "node scripts/run-node.mjs",
|
||||||
"docs:bin": "node scripts/build-docs-list.mjs",
|
"docs:bin": "node scripts/build-docs-list.mjs",
|
||||||
@@ -44,11 +44,11 @@
|
|||||||
"docs:check-links": "node scripts/docs-link-audit.mjs",
|
"docs:check-links": "node scripts/docs-link-audit.mjs",
|
||||||
"docs:dev": "cd docs && mint dev",
|
"docs:dev": "cd docs && mint dev",
|
||||||
"docs:list": "node scripts/docs-list.js",
|
"docs:list": "node scripts/docs-list.js",
|
||||||
"format": "oxfmt --check",
|
"format": "oxfmt --write",
|
||||||
"format:all": "pnpm format && pnpm format:swift",
|
"format:all": "pnpm format && pnpm format:swift",
|
||||||
"format:docs": "git ls-files 'docs/**/*.md' 'docs/**/*.mdx' 'README.md' | xargs oxfmt --check",
|
"format:check": "oxfmt --check",
|
||||||
"format:docs:fix": "git ls-files 'docs/**/*.md' 'docs/**/*.mdx' 'README.md' | xargs oxfmt --write",
|
"format:docs": "git ls-files 'docs/**/*.md' 'docs/**/*.mdx' 'README.md' | xargs oxfmt --write",
|
||||||
"format:fix": "oxfmt --write",
|
"format:docs:check": "git ls-files 'docs/**/*.md' 'docs/**/*.mdx' 'README.md' | xargs oxfmt --check",
|
||||||
"format:swift": "swiftformat --lint --config .swiftformat apps/macos/Sources apps/ios/Sources apps/shared/OpenClawKit/Sources",
|
"format:swift": "swiftformat --lint --config .swiftformat apps/macos/Sources apps/ios/Sources apps/shared/OpenClawKit/Sources",
|
||||||
"gateway:dev": "OPENCLAW_SKIP_CHANNELS=1 CLAWDBOT_SKIP_CHANNELS=1 node scripts/run-node.mjs --dev gateway",
|
"gateway:dev": "OPENCLAW_SKIP_CHANNELS=1 CLAWDBOT_SKIP_CHANNELS=1 node scripts/run-node.mjs --dev gateway",
|
||||||
"gateway:dev:reset": "OPENCLAW_SKIP_CHANNELS=1 CLAWDBOT_SKIP_CHANNELS=1 node scripts/run-node.mjs --dev gateway --reset",
|
"gateway:dev:reset": "OPENCLAW_SKIP_CHANNELS=1 CLAWDBOT_SKIP_CHANNELS=1 node scripts/run-node.mjs --dev gateway --reset",
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
"lint:all": "pnpm lint && pnpm lint:swift",
|
"lint:all": "pnpm lint && pnpm lint:swift",
|
||||||
"lint:docs": "pnpm dlx markdownlint-cli2",
|
"lint:docs": "pnpm dlx markdownlint-cli2",
|
||||||
"lint:docs:fix": "pnpm dlx markdownlint-cli2 --fix",
|
"lint:docs:fix": "pnpm dlx markdownlint-cli2 --fix",
|
||||||
"lint:fix": "oxlint --type-aware --fix && pnpm format:fix",
|
"lint:fix": "oxlint --type-aware --fix && pnpm format",
|
||||||
"lint:swift": "swiftlint lint --config .swiftlint.yml && (cd apps/ios && swiftlint lint --config .swiftlint.yml)",
|
"lint:swift": "swiftlint lint --config .swiftlint.yml && (cd apps/ios && swiftlint lint --config .swiftlint.yml)",
|
||||||
"mac:open": "open dist/OpenClaw.app",
|
"mac:open": "open dist/OpenClaw.app",
|
||||||
"mac:package": "bash scripts/package-mac-app.sh",
|
"mac:package": "bash scripts/package-mac-app.sh",
|
||||||
|
|||||||
Reference in New Issue
Block a user