mirror of
https://github.com/primer/css.git
synced 2024-12-23 14:13:14 +03:00
25 lines
418 B
Bash
Executable File
25 lines
418 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
function log() {
|
|
echo "$@" 1>&2
|
|
}
|
|
|
|
function warn() {
|
|
echo "$@" 1>&2
|
|
}
|
|
|
|
pkg="@primer/css"
|
|
path="dist/stats/primer.json"
|
|
cp "tmp/node_modules/@primer/css/dist/stats/primer.json" before.json
|
|
|
|
cp $path after.json
|
|
|
|
key=".selectors.values[]"
|
|
jq -r $key before.json | sort | uniq > before.txt
|
|
jq -r $key after.json | sort | uniq > after.txt
|
|
|
|
diff -U 1 {before,after}.txt
|
|
|
|
rm {before,after}.{json,txt}
|