掘友等级
获得徽章 21
前端屎山代码过滤器, 谁用谁知道
```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
```
#代码情诗# jym 今日一问 Vue2的项目数据终归是屎山吗?!
#JUEJIN FRIENDS 过年啦# 说好年前发年终奖, 泡汤了, 要年后发, 哎?!
请问一下, 有人是不是忘记做了什么, 比如说奖品回收.
下一页