获得徽章 21
前端工程师 @回家种田
赞了这篇沸点
lastday 知无不言!
13
赞了这篇沸点
集齐68个赞,提交离职
26
关注了
前端工程师 @回家种田
前端工程师 @回家种田
前端工程师 @回家种田
前端屎山代码过滤器, 谁用谁知道
```powershell
Get-ChildItem -Recurse -Include *.vue,*.ts,*.js,*.jsx,*.tsx |
Where-Object {
$_.FullName -notmatch '\\node_modules\\' -and
$_.FullName -notmatch '\\static\\' -and
$_.FullName -notmatch '\\dist\\' -and
$_.FullName -notmatch '\\public\\'
} |
ForEach-Object {
[PSCustomObject]@{
File = $_.FullName;
Lines = (Get-Content $_.FullName | Measure-Object -Line).Lines
}
} |
Sort-Object -Property Lines -Descending |
Select-Object -First 10
```
```shell
find . -type f \( -name "*.vue" -o -name "*.ts" -o -name "*.js" -o -name "*.jsx" -o -name "*.tsx" \) \
-not -path "*/node_modules/*" -not -path "*/static/*" -not -path "*/dist/*" -not -path "*/public/*" \
-exec wc -l {} + | sort -rn | head -n 10
```
展开
DaYe于2024-05-16 17:22发布的图片
1
下一页
个人成就
文章被点赞 4
文章被阅读 2,019
掘力值 76
收藏集
12
关注标签
16
加入于