Skip to content

Commit

Permalink
Improve report of disk-usage on minified versions
Browse files Browse the repository at this point in the history
This patch makes disk-usage report little bit more useful.
Here's visual example of `du` vs ``du -sh`:

    % du jade.js jade.min.js runtime.js runtime.min.js
    76      jade.js
    40      jade.min.js
    4       runtime.js
    4       runtimeruntime.min.js

    % du -bh jade.js jade.min.js runtime.js runtime.min.js
    74K     jade.js
    40K     jadejade.min.js
    3.6K    runtime.js
    1.8K    runtime.min.js
  • Loading branch information
ixti committed Aug 30, 2012
1 parent cd85f7d commit dafb7fb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Makefile
Expand Up @@ -24,16 +24,14 @@ jade.js: $(SRC)

jade.min.js: jade.js
@$(UGLIFY) $(UGLIFY_FLAGS) $< > $@ \
&& du jade.min.js \
&& du jade.js
&& du -bh jade.js jade.min.js

runtime.js: lib/runtime.js
@cat support/head.js $< support/foot.js > $@

runtime.min.js: runtime.js
@$(UGLIFY) $(UGLIFY_FLAGS) $< > $@ \
&& du runtime.min.js \
&& du runtime.js
&& du -bh runtime.js runtime.min.js

clean:
rm -f jade.js
Expand Down

0 comments on commit dafb7fb

Please sign in to comment.