Skip to content

Commit 79cbb22

Browse files
committed
Makefile revert
1 parent f28f0e1 commit 79cbb22

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Makefile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ setup:
88
BUILD_DIR = ./dist
99
MIN_JS := dist/angular-ts.umd.min.js
1010
GZ_JS := $(MIN_JS).gz
11-
MIN_SIZE := $(shell stat -c %s $(MIN_JS))
1211
MIN_SIZE_H := $(shell stat -c %s $(MIN_JS) | numfmt --to=iec)
13-
GZIP_SIZE := $(shell gzip -9 -c $(MIN_JS) | wc -c)
1412
GZIP_SIZE_H := $(shell gzip -9 -c $(MIN_JS) | wc -c | numfmt --to=iec)
1513

1614
build:
@@ -23,12 +21,12 @@ build:
2321

2422
size:
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 $< > $@

0 commit comments

Comments
 (0)