Permalink
Browse files

0.0.6

  • Loading branch information...
1 parent bcda786 commit c878ffc3bc73e7fb0445c0a7366f2f7a7dd3b014 @deepsweet deepsweet committed Oct 4, 2012
Showing with 32 additions and 28 deletions.
  1. +7 −3 CHANGELOG.md
  2. +24 −24 README.md
  3. +1 −1 package.json
View
@@ -1,12 +1,16 @@
+### [ [>](//github.com/svg/svgo/tree/v0.0.6) ] 0.0.6 / 04.10.2012
+* add --test option to make a visual comparison of two files (PhantomJS pre-required)
+* update README and CHANGELOG with the correct relative urls
+
### [ [>](//github.com/svg/svgo/tree/v0.0.5) ] 0.0.5 / 03.10.2012
-* every plugin now has [at least one test](//github.com/svg/svgo/tree/master/test/plugins)
+* every plugin now has [at least one test](plugins)
* removeViewBox, cleanupEnableBackground, removeEditorsNSData, convertStyleToAttrs and collapseGroups plugins fixes
* new --pretty option for the pretty printed SVG
* lib/config refactoring
### [ [>](//github.com/svg/svgo/tree/v0.0.4) ] 0.0.4 / 30.09.2012
-* new plugin [removeViewBox](//github.com/svg/svgo/blob/master/plugins/removeViewBox.js)
-* new plugin [cleanupEnableBackground](//github.com/svg/svgo/blob/master/plugins/cleanupEnableBackground.js)
+* new plugin [removeViewBox](plugins/removeViewBox.js)
+* new plugin [cleanupEnableBackground](plugins/cleanupEnableBackground.js)
* display useful info after successful optimization
* 'npm test' with 'spec' mocha output by default
View
@@ -20,24 +20,24 @@ SVGO has a plugin-based architecture, so almost every optimization is a separate
Today we have:
-* [ [>](//github.com/svg/svgo/blob/master/plugins/cleanupAttrs.js) ] cleanup attributes from newlines, trailing and repeating spaces
-* [ [>](//github.com/svg/svgo/blob/master/plugins/removeDoctype.js) ] remove doctype declaration
-* [ [>](//github.com/svg/svgo/blob/master/plugins/removeXMLProcInst.js) ] remove XML processing instructions
-* [ [>](//github.com/svg/svgo/blob/master/plugins/removeComments.js) ] remove comments
-* [ [>](//github.com/svg/svgo/blob/master/plugins/removeMetadata.js) ] remove metadata
-* [ [>](//github.com/svg/svgo/blob/master/plugins/removeEditorsNSData.js) ] remove editors namespaces, elements and attributes
-* [ [>](//github.com/svg/svgo/blob/master/plugins/removeEmptyAttrs.js) ] remove empty attributes
-* [ [>](//github.com/svg/svgo/blob/master/plugins/removeDefaultPx.js) ] remove default "px" unit
-* [ [>](//github.com/svg/svgo/blob/master/plugins/removeHiddenElems.js) ] remove a lot of hidden elements
-* [ [>](//github.com/svg/svgo/blob/master/plugins/removeEmptyText.js) ] remove empty Text elements
-* [ [>](//github.com/svg/svgo/blob/master/plugins/removeEmptyContainers.js) ] remove empty Container elements
-* [ [>](//github.com/svg/svgo/blob/master/plugins/removeViewBox.js) ] remove viewBox attribute
-* [ [>](//github.com/svg/svgo/blob/master/plugins/cleanupEnableBackground.js) ] remove or cleanup enable-background attribute
-* [ [>](//github.com/svg/svgo/blob/master/plugins/cleanupSVGElem.js) ] cleanup SVG element from useless attributes
-* [ [>](//github.com/svg/svgo/blob/master/plugins/convertStyleToAttrs.js) ] convert styles into attributes
-* [ [>](//github.com/svg/svgo/blob/master/plugins/convertColors.js) ] convert colors (from rgb() to #rrggbb, from #rrggbb to #rgb)
-* [ [>](//github.com/svg/svgo/blob/master/plugins/moveElemsAttrsToGroup.js) ] move elements attributes to the existing group wrapper
-* [ [>](//github.com/svg/svgo/blob/master/plugins/collapseGroups.js) ] collapse groups
+* [ [>](svgo/blob/master/plugins/cleanupAttrs.js) ] cleanup attributes from newlines, trailing and repeating spaces
+* [ [>](svgo/blob/master/plugins/removeDoctype.js) ] remove doctype declaration
+* [ [>](svgo/blob/master/plugins/removeXMLProcInst.js) ] remove XML processing instructions
+* [ [>](svgo/blob/master/plugins/removeComments.js) ] remove comments
+* [ [>](svgo/blob/master/plugins/removeMetadata.js) ] remove metadata
+* [ [>](svgo/blob/master/plugins/removeEditorsNSData.js) ] remove editors namespaces, elements and attributes
+* [ [>](svgo/blob/master/plugins/removeEmptyAttrs.js) ] remove empty attributes
+* [ [>](svgo/blob/master/plugins/removeDefaultPx.js) ] remove default "px" unit
+* [ [>](svgo/blob/master/plugins/removeHiddenElems.js) ] remove a lot of hidden elements
+* [ [>](svgo/blob/master/plugins/removeEmptyText.js) ] remove empty Text elements
+* [ [>](svgo/blob/master/plugins/removeEmptyContainers.js) ] remove empty Container elements
+* [ [>](svgo/blob/master/plugins/removeViewBox.js) ] remove viewBox attribute
+* [ [>](svgo/blob/master/plugins/cleanupEnableBackground.js) ] remove or cleanup enable-background attribute
+* [ [>](svgo/blob/master/plugins/cleanupSVGElem.js) ] cleanup SVG element from useless attributes
+* [ [>](svgo/blob/master/plugins/convertStyleToAttrs.js) ] convert styles into attributes
+* [ [>](svgo/blob/master/plugins/convertColors.js) ] convert colors (from rgb() to #rrggbb, from #rrggbb to #rgb)
+* [ [>](svgo/blob/master/plugins/moveElemsAttrsToGroup.js) ] move elements attributes to the existing group wrapper
+* [ [>](svgo/blob/master/plugins/collapseGroups.js) ] collapse groups
But it's not only about rude removing, SVG has a strict [specification](http://www.w3.org/TR/SVG/expanded-toc.html) with a lot of opportunities for optimizations, default values, geometry hacking and more.
@@ -64,6 +64,7 @@ Options:
-i INPUT, --input=INPUT : Input file (default: stdin)
-o OUTPUT, --output=OUTPUT : Output file (default: stdout)
-p, --pretty : Make SVG pretty printed
+ -t, --test : Make a visual comparison of two files (PhantomJS pre-required)
```
```
@@ -75,9 +76,8 @@ cat test.svg | svgo -d removeDoctype -d removeComment > test.min.svg
## TODO
-1. PhantomJS-based server-side SVG rendering for "before vs after visual tests"
-2. documentation and "plugins how-to"
-3. more plugins
-4. more unit tests
-5. online SVGO web service
-6. …
+1. documentation and "plugins how-to"
+2. more plugins
+3. more unit tests
+4. online SVGO web service
+5. …
View
@@ -1,6 +1,6 @@
{
"name": "svgo",
- "version": "0.0.5-1",
+ "version": "0.0.6",
"description": "Nodejs-based tool for optimizing SVG vector graphics files",
"keywords": [
"svgo",

0 comments on commit c878ffc

Please sign in to comment.