mirror of
https://github.com/SableClient/Sable.git
synced 2026-12-04 07:42:24 -08:00
chore(mise): add task definitions and reorganize scripts
Signed-off-by: hazre <[email protected]>
This commit is contained in:
1 parent
612aa2f87e
commit
b7b5deb65e
7 files changed
+67
-4
No files matched your search
@@ -280,7 +280,7 @@ jobs:
|
||||
- name: Build native packages
|
||||
if: matrix.cef
|
||||
shell: bash
|
||||
run: bash scripts/cef-package.sh "$VERSION"
|
||||
run: bash scripts/cef/package.sh "$VERSION"
|
||||
|
||||
- name: Sign the AppImage for the updater
|
||||
if: ${{ matrix.cef && env.TAURI_SIGNING_PRIVATE_KEY != '' }}
|
||||
|
||||
@@ -1,7 +1,65 @@
|
||||
[env]
|
||||
_.path = ["{{config_root}}/node_modules/.bin"]
|
||||
|
||||
[settings]
|
||||
idiomatic_version_file_enable_tools = ["pnpm", "node", "rust"]
|
||||
experimental = true
|
||||
|
||||
[tools]
|
||||
cargo-binstall = "1.21.0"
|
||||
"cargo:knope" = "0.23.0"
|
||||
[task_config]
|
||||
includes = ["scripts"]
|
||||
|
||||
[tasks.dev]
|
||||
description = "Start Vite dev server"
|
||||
alias = "d"
|
||||
run = "vite dev"
|
||||
raw = true
|
||||
|
||||
[tasks.build]
|
||||
description = "Build frontend with Vite"
|
||||
alias = "b"
|
||||
run = "vite build"
|
||||
|
||||
[tasks.preview]
|
||||
description = "Preview the production build"
|
||||
alias = "p"
|
||||
run = "vite preview"
|
||||
|
||||
[tasks.lint]
|
||||
description = "Run all linting, typechecking, formatting, and dead code checks"
|
||||
alias = "l"
|
||||
run = ["tsc", "oxlint .", "oxfmt --check .", "knip"]
|
||||
|
||||
[tasks.lint-fix]
|
||||
description = "Fix lint issues, format, and run typecheck and dead code checks"
|
||||
alias = "lf"
|
||||
run = ["oxlint . --fix", "oxfmt .", "knip --fix"]
|
||||
|
||||
[tasks.test]
|
||||
description = "Run tests"
|
||||
alias = "t"
|
||||
run = "vitest"
|
||||
raw = true
|
||||
|
||||
[tasks.document-change]
|
||||
description = "Document a change with knope"
|
||||
alias = "doc"
|
||||
run = "knope document-change"
|
||||
|
||||
[tasks."cargo:lint"]
|
||||
description = "Check Rust formatting and lint with Clippy"
|
||||
alias = ["cl", "cargo-lint"]
|
||||
dir = "src-tauri"
|
||||
run = ["cargo fmt --check", "cargo clippy --all-targets --all-features -- -D warnings"]
|
||||
|
||||
[tasks."cargo:lint-fix"]
|
||||
description = "Fix Rust formatting and lint issues"
|
||||
alias = ["clf", "cargo-lint-fix"]
|
||||
dir = "src-tauri"
|
||||
run = ["cargo fmt", "cargo clippy --fix --allow-dirty --all-targets --all-features -- -D warnings"]
|
||||
|
||||
[tasks."cargo:test"]
|
||||
description = "Run Rust tests"
|
||||
alias = ["ct", "cargo-test"]
|
||||
dir = "src-tauri"
|
||||
run = "cargo test"
|
||||
raw = true
|
||||
File renamed without changes.
Executable → Regular
File renamed without changes.
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env node
|
||||
//MISE description="Create symlinks for Tauri icons from the source set"
|
||||
/* eslint-disable no-console */
|
||||
|
||||
import fs from 'node:fs';
|
||||
@@ -1,4 +1,6 @@
|
||||
#!/usr/bin/env node
|
||||
//MISE hide=true
|
||||
//MISE description="Install or update knope to the pinned version"
|
||||
import { spawnSync } from 'node:child_process';
|
||||
import process from 'node:process';
|
||||
import { chmodSync, existsSync, mkdirSync, realpathSync, writeFileSync } from 'node:fs';
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
#!/usr/bin/env node
|
||||
//MISE hide=true
|
||||
//MISE description="Normalize import paths across the codebase"
|
||||
/* oxlint-disable no-console */
|
||||
|
||||
import fs from 'node:fs/promises';
|
||||
|
||||
Reference in new issue
Block a user