1 Star 1 Fork 26

L / lesscreator

forked from eryx / lesscreator 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
gorun 698 Bytes
一键复制 编辑 Web IDE 原始数据 按行查看 历史
#!/bin/bash
echo "DIRs"
find ./src -type d | wc -l
echo "FILEs"
find ./src -type f | wc -l
echo "GO"
find ./src -name "*.go" |xargs cat|grep -v ^$|wc -l
echo "CSS"
find ./static -name "*.css" |xargs cat|grep -v ^$|wc -l
echo "LESS"
find ./static -name "*.less" |xargs cat|grep -v ^$|wc -l
echo "JS"
find ./static -name "*.js" |xargs cat|grep -v ^$|wc -l
echo "PHP"
find . -name "*.php" |xargs cat|grep -v ^$|wc -l
echo "DETAILs"
find ./src -type f -name "*.go" | xargs wc -l | sort -n
files=`find ./src -type f -name "*.go" |xargs`
for file in $files; do
gofmt -w=true ${file}
done
rm -f ./bin/lesscreator
go build -ldflags "-w -s" -o ./bin/lesscreator ./src/main.go
./bin/lesscreator
1
https://gitee.com/yangcong/lesscreator.git
git@gitee.com:yangcong/lesscreator.git
yangcong
lesscreator
lesscreator
master

搜索帮助

14c37bed 8189591 565d56ea 8189591