File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 88BUILD_DIR = ./dist
99MIN_JS := dist/angular-ts.umd.min.js
1010GZ_JS := $(MIN_JS ) .gz
11- MIN_SIZE := $(shell stat -c % s $(MIN_JS ) )
1211MIN_SIZE_H := $(shell stat -c % s $(MIN_JS ) | numfmt --to=iec)
13- GZIP_SIZE := $(shell gzip -9 -c $(MIN_JS ) | wc -c)
1412GZIP_SIZE_H := $(shell gzip -9 -c $(MIN_JS ) | wc -c | numfmt --to=iec)
1513
1614build :
@@ -23,12 +21,12 @@ build:
2321
2422size :
2523 ./node_modules/.bin/rollup -c --configName min --silent
26- @echo " Expected bundle : $( MIN_SIZE ) ~ $( MIN_SIZE_H ) "
27- @echo " Expected gzip: $( GZIP_SIZE ) ~ $( GZIP_SIZE_H ) "
24+ @echo " Minified build output : $$ (stat -c %s dist/angular-ts.umd.min.js ) ~ $$ (stat -c %s dist/angular-ts.umd.min.js | numfmt --to=iec )"
25+ @echo " Expected gzip: $$ (gzip -c dist/angular-ts.umd.min.js | wc -c ) ~ $$ (gzip -c dist/angular-ts.umd.min.js | wc -c | numfmt --to=iec )"
2826 @git checkout -q $(BUILD_DIR )
2927 @git checkout -q ./docs
30- @echo " Current bundle : $( MIN_SIZE ) ~ $( MIN_SIZE_H ) "
31- @echo " Current gzip: $( GZIP_SIZE ) ~ $( GZIP_SIZE_H ) "
28+ @echo " Current build output : $$ (stat -c %s dist/angular-ts.umd.min.js ) ~ $$ (stat -c %s dist/angular-ts.umd.min.js | numfmt --to=iec )"
29+ @echo " Current gzip: $$ (gzip -c dist/angular-ts.umd.min.js | wc -c ) ~ $$ (gzip -c dist/angular-ts.umd.min.js | wc -c | numfmt --to=iec )"
3230
3331$(GZ_JS ) : $(MIN_JS )
3432 @gzip -9 -c $< > $@
You can’t perform that action at this time.
0 commit comments