Permalink
Browse files

docs

  • Loading branch information...
tj committed Mar 15, 2013
1 parent e179787 commit 798595717768e7fd655f59e48d21c048895a4a23
Showing with 22 additions and 1,426 deletions.
  1. +14 −2 Makefile
  2. +8 −1 Readme.md
  3. +0 −1,423 dom.js
View
@@ -6,12 +6,24 @@ components:
@component install --dev
clean:
- rm -fr build components dom.js
+ rm -fr build components dom*.js dom*.gz
test:
@mocha-phantomjs -R dot test/index.html
dom.js: index.js components
@component build --standalone dom --out . --name dom
-.PHONY: clean test
+dom.js.gz: dom.js
+ @gzip --stdout $< > $@
+
+dom.min.js: dom.js
+ @uglifyjs $< > $@
+
+dom.min.js.gz: dom.min.js
+ @gzip --stdout $< > $@
+
+stats: dom.js dom.min.js dom.js.gz dom.min.js.gz
+ @du -h $^
+
+.PHONY: clean test stats
View
@@ -24,7 +24,14 @@ $ component install component/dom
This library may be used stand-alone without the component
tool, simply add ./dom.js to your application and reference
- the `dom` global. With all its dependencies dom is ~5kb gzipped.
+ the `dom` global. With all its dependencies dom is the following size:
+
+```
+ 28K dom.js
+ 16K dom.min.js
+ 8.0K dom.js.gz
+ 4.0K dom.min.js.gz
+```
## Example
Oops, something went wrong.

0 comments on commit 7985957

Please sign in to comment.