-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: improve metrics script, add graphs
- Loading branch information
Showing
4 changed files
with
23 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# Lines in JS/TS files | ||
cat ../fe-stats.csv | qsvlite select Date,JS,TS | graph - --xcol 1 --yrange 0:40000 --ylabel Lines -o ../fe-stats-ts.png | ||
|
||
# Size (KB) of full repo vs lib/ | ||
cat ../fe-stats.csv | qsvlite select Date,RepoSize,LibSize | qsvlite slice -s 2 | graph - -x 1 --ylabel KB -o ../fe-stats-size.png | ||
|
||
# Counts of direct dependences, global window vars, AngularJS Directives and Components | ||
cat ../fe-stats.csv | qsvlite select Date,Deps,Window,Directives,Components | graph - --xcol 1 --ylabel Count -o ../fe-stats-count.png | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
DIR=$(dirname $0) | ||
cd "$DIR"/.. | ||
cp scripts/*.sh . | ||
./stats-assemble.sh > ../fe-stats.csv | ||
./stats-graphs.sh | ||
git checkout code-metrics |