diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-07-10 16:54:57 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-07-10 16:54:57 +0800 |
| commit | 5d258482fb84d58c966a7ccc1b467708278d28ad (patch) | |
| tree | 1a0c9d2e245d43ff7bc11d9088cf88a5264d293f /dev_tools/scripts | |
| parent | a8c8d50b6c59b103da7fd4bbb5e7ca3ff7b2f49a (diff) | |
refactor(devtools): rename dev_tools to .run and replace run-tools
scripts
Replace the old run-tools.ps1/run-tools.sh scripts with a new
unified run.ps1/run.sh launcher that supports multiple languages
(PowerShell, Rust, Python, Go, C#, Nim, Perl, Ruby, Zig, and
arbitrary binaries) from the `.run/src/bin` directory.
Move all development tools from `dev_tools/` to `.run/`, update
Cargo workspace config and relevant documentation references.
Diffstat (limited to 'dev_tools/scripts')
| -rw-r--r-- | dev_tools/scripts/build-all.ps1 | 8 | ||||
| -rwxr-xr-x | dev_tools/scripts/build-all.sh | 6 | ||||
| -rw-r--r-- | dev_tools/scripts/clippy-fix.ps1 | 8 | ||||
| -rwxr-xr-x | dev_tools/scripts/clippy-fix.sh | 6 | ||||
| -rw-r--r-- | dev_tools/scripts/clippy.ps1 | 8 | ||||
| -rwxr-xr-x | dev_tools/scripts/clippy.sh | 6 | ||||
| -rwxr-xr-x | dev_tools/scripts/doc.ps1 | 1 | ||||
| -rwxr-xr-x | dev_tools/scripts/doc.sh | 3 | ||||
| -rw-r--r-- | dev_tools/scripts/http-page-preview.ps1 | 3 | ||||
| -rwxr-xr-x | dev_tools/scripts/http-page-preview.sh | 2 | ||||
| -rwxr-xr-x | dev_tools/scripts/install-mling.ps1 | 7 | ||||
| -rwxr-xr-x | dev_tools/scripts/install-mling.sh | 6 | ||||
| -rw-r--r-- | dev_tools/scripts/test-all.ps1 | 8 | ||||
| -rw-r--r-- | dev_tools/scripts/test-all.sh | 6 | ||||
| -rw-r--r-- | dev_tools/scripts/windows-folder-hide.ps1 | 43 |
15 files changed, 0 insertions, 121 deletions
diff --git a/dev_tools/scripts/build-all.ps1 b/dev_tools/scripts/build-all.ps1 deleted file mode 100644 index 4f35ed8..0000000 --- a/dev_tools/scripts/build-all.ps1 +++ /dev/null @@ -1,8 +0,0 @@ -$starting_dir = Get-Location -Get-ChildItem -Recurse -Filter "Cargo.toml" | ForEach-Object { - $project_dir = $_.DirectoryName - Push-Location $project_dir - cargo build - Pop-Location -} -Set-Location $starting_dir diff --git a/dev_tools/scripts/build-all.sh b/dev_tools/scripts/build-all.sh deleted file mode 100755 index 2036b41..0000000 --- a/dev_tools/scripts/build-all.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -find . -name "Cargo.toml" -type f | while read -r cargo_file; do - project_dir=$(dirname "$cargo_file") - (cd "$project_dir" && cargo build) -done diff --git a/dev_tools/scripts/clippy-fix.ps1 b/dev_tools/scripts/clippy-fix.ps1 deleted file mode 100644 index 1d24f92..0000000 --- a/dev_tools/scripts/clippy-fix.ps1 +++ /dev/null @@ -1,8 +0,0 @@ -$starting_dir = Get-Location -Get-ChildItem -Recurse -Filter "Cargo.toml" | ForEach-Object { - $project_dir = $_.DirectoryName - Push-Location $project_dir - cargo clippy --fix --allow-dirty --allow-no-vcs --quiet - Pop-Location -} -Set-Location $starting_dir diff --git a/dev_tools/scripts/clippy-fix.sh b/dev_tools/scripts/clippy-fix.sh deleted file mode 100755 index 9771ad4..0000000 --- a/dev_tools/scripts/clippy-fix.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -find . -name "Cargo.toml" -type f | while read -r cargo_file; do - project_dir=$(dirname "$cargo_file") - (cd "$project_dir" && cargo clippy --fix --allow-dirty --allow-no-vcs --quiet) -done diff --git a/dev_tools/scripts/clippy.ps1 b/dev_tools/scripts/clippy.ps1 deleted file mode 100644 index 1858873..0000000 --- a/dev_tools/scripts/clippy.ps1 +++ /dev/null @@ -1,8 +0,0 @@ -$starting_dir = Get-Location -Get-ChildItem -Recurse -Filter "Cargo.toml" | ForEach-Object { - $project_dir = $_.DirectoryName - Push-Location $project_dir - cargo clippy --quiet - Pop-Location -} -Set-Location $starting_dir diff --git a/dev_tools/scripts/clippy.sh b/dev_tools/scripts/clippy.sh deleted file mode 100755 index b393545..0000000 --- a/dev_tools/scripts/clippy.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -find . -name "Cargo.toml" -type f | while read -r cargo_file; do - project_dir=$(dirname "$cargo_file") - (cd "$project_dir" && cargo clippy --quiet) -done diff --git a/dev_tools/scripts/doc.ps1 b/dev_tools/scripts/doc.ps1 deleted file mode 100755 index 987f0de..0000000 --- a/dev_tools/scripts/doc.ps1 +++ /dev/null @@ -1 +0,0 @@ -cargo doc --workspace --no-deps --features builds,structural_renderer,repl,comp,parser,clap,extra_macros --open diff --git a/dev_tools/scripts/doc.sh b/dev_tools/scripts/doc.sh deleted file mode 100755 index 5e8a311..0000000 --- a/dev_tools/scripts/doc.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -cargo doc --workspace --no-deps --features builds,structural_renderer,repl,comp,parser,clap,extra_macros --open diff --git a/dev_tools/scripts/http-page-preview.ps1 b/dev_tools/scripts/http-page-preview.ps1 deleted file mode 100644 index 8cc3579..0000000 --- a/dev_tools/scripts/http-page-preview.ps1 +++ /dev/null @@ -1,3 +0,0 @@ -$starting_dir = Get-Location -python -m http.server 3000 -Set-Location $starting_dir diff --git a/dev_tools/scripts/http-page-preview.sh b/dev_tools/scripts/http-page-preview.sh deleted file mode 100755 index bed4b1c..0000000 --- a/dev_tools/scripts/http-page-preview.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -python3 -m http.server 3000 diff --git a/dev_tools/scripts/install-mling.ps1 b/dev_tools/scripts/install-mling.ps1 deleted file mode 100755 index bebe9ff..0000000 --- a/dev_tools/scripts/install-mling.ps1 +++ /dev/null @@ -1,7 +0,0 @@ -cargo install --path mling - -New-Item -ItemType Directory -Force -Path .temp/comp | Out-Null -# Copy all files containing _comp from the debug directory -Get-ChildItem .temp/target/release/*_comp* | ForEach-Object { - Copy-Item $_.FullName .temp/comp/ -} diff --git a/dev_tools/scripts/install-mling.sh b/dev_tools/scripts/install-mling.sh deleted file mode 100755 index 5f2ee7a..0000000 --- a/dev_tools/scripts/install-mling.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -cargo install --path mling - -mkdir -p .temp/comp -cp .temp/target/release/*_comp.* .temp/comp/ 2>/dev/null || echo "No matching files found" diff --git a/dev_tools/scripts/test-all.ps1 b/dev_tools/scripts/test-all.ps1 deleted file mode 100644 index 231698a..0000000 --- a/dev_tools/scripts/test-all.ps1 +++ /dev/null @@ -1,8 +0,0 @@ -$starting_dir = Get-Location -Get-ChildItem -Recurse -Filter "Cargo.toml" | ForEach-Object { - $project_dir = $_.DirectoryName - Push-Location $project_dir - cargo test - Pop-Location -} -Set-Location $starting_dir diff --git a/dev_tools/scripts/test-all.sh b/dev_tools/scripts/test-all.sh deleted file mode 100644 index b387463..0000000 --- a/dev_tools/scripts/test-all.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -find . -name "Cargo.toml" -type f | while read -r cargo_file; do - project_dir=$(dirname "$cargo_file") - (cd "$project_dir" && cargo test) -done diff --git a/dev_tools/scripts/windows-folder-hide.ps1 b/dev_tools/scripts/windows-folder-hide.ps1 deleted file mode 100644 index 0ab2632..0000000 --- a/dev_tools/scripts/windows-folder-hide.ps1 +++ /dev/null @@ -1,43 +0,0 @@ -# Check `last_check` - -$lastCheckFile = Join-Path $PSScriptRoot "last_check" -$currentTime = Get-Date -$timeThreshold = 10 - -if (Test-Path $lastCheckFile) { - $lastCheckTime = Get-Content $lastCheckFile | Get-Date - $timeDiff = ($currentTime - $lastCheckTime).TotalMinutes - - if ($timeDiff -lt $timeThreshold) { - exit - } -} - -$currentTime.ToString() | Out-File -FilePath $lastCheckFile -Force - -# Hide Files - -Set-Location -Path (Join-Path $PSScriptRoot "..\..") - -Get-ChildItem -Path . -Force -Recurse -ErrorAction SilentlyContinue | Where-Object { - $_.FullName -notmatch '\\.temp\\' -and $_.FullName -notmatch '\\.git\\' -} | ForEach-Object { - attrib -h $_.FullName 2>&1 | Out-Null -} - -Get-ChildItem -Path . -Force -Recurse -ErrorAction SilentlyContinue | Where-Object { - $_.Name -match '^\..*' -and $_.FullName -notmatch '\\\.\.$' -and $_.FullName -notmatch '\\\.$' -} | ForEach-Object { - attrib +h $_.FullName 2>&1 | Out-Null -} - -if (Get-Command git -ErrorAction SilentlyContinue) { - git status --ignored --short | ForEach-Object { - if ($_ -match '^!!\s+(.+)$') { - $ignoredPath = $matches[1] - if ($ignoredPath -notmatch '\.lnk$' -and (Test-Path $ignoredPath)) { - attrib +h $ignoredPath 2>&1 | Out-Null - } - } - } -} |
