clean-css.git
11 years agoFixed line endings before single brace.
GoalSmashers [Sun, 18 Nov 2012 11:41:16 +0000 (11:41 +0000)]
Fixed line endings before single brace.

11 years agoReworked shortening named colours to hex.
GoalSmashers [Sun, 18 Nov 2012 07:16:20 +0000 (07:16 +0000)]
Reworked shortening named colours to hex.

11 years agoRefactored shorthand selectors & added support for (border-radius|border-style|border...
GoalSmashers [Sun, 18 Nov 2012 06:49:38 +0000 (06:49 +0000)]
Refactored shorthand selectors & added support for (border-radius|border-style|border-color) shortening.

11 years agoUpdated comments.
GoalSmashers [Sat, 17 Nov 2012 23:58:09 +0000 (23:58 +0000)]
Updated comments.

11 years agoAdded shortening font:(normal|bold) as font-weight is.
GoalSmashers [Sat, 17 Nov 2012 23:54:05 +0000 (23:54 +0000)]
Added shortening font:(normal|bold) as font-weight is.

11 years agoAdded shorthand forms to (margin|padding|border-width) values where horizontal fields...
GoalSmashers [Sat, 17 Nov 2012 23:43:11 +0000 (23:43 +0000)]
Added shorthand forms to (margin|padding|border-width) values where horizontal fields (when 4 values) or vertical fields (in case of 3) match.

11 years agoAdded collapsing (margin|padding|border-width) with 2 values into one, e.g. padding...
GoalSmashers [Sat, 17 Nov 2012 23:03:09 +0000 (23:03 +0000)]
Added collapsing (margin|padding|border-width) with 2 values into one, e.g. padding:1px 1px => padding:1px

11 years agoAdded shortening same values in (padding|margin|border-width) - margin:1px 1px 1px...
GoalSmashers [Sat, 17 Nov 2012 22:50:23 +0000 (22:50 +0000)]
Added shortening same values in (padding|margin|border-width) - margin:1px 1px 1px 1px => margin:1px

11 years agoUpdated documentation.
Goal Smashers Dev Team [Sat, 3 Nov 2012 22:08:36 +0000 (22:08 +0000)]
Updated documentation.

11 years agoFixed removing whitespace inside media query definition.
GoalSmashers [Sat, 3 Nov 2012 21:33:41 +0000 (21:33 +0000)]
Fixed removing whitespace inside media query definition.

11 years agoAdded removing comment characters inside comments.
GoalSmashers [Sat, 3 Nov 2012 21:24:57 +0000 (21:24 +0000)]
Added removing comment characters inside comments.

11 years agoAdded removing reset-min.css temporary file on Windows.
GoalSmashers [Sat, 3 Nov 2012 19:59:36 +0000 (19:59 +0000)]
Added removing reset-min.css temporary file on Windows.

11 years agoMinor cleanup. Added JSHint validation.
GoalSmashers [Sat, 3 Nov 2012 19:40:48 +0000 (19:40 +0000)]
Minor cleanup. Added JSHint validation.

* JSHint validation via 'make check' (it's a new dev dependency).
* Fixed minor errors pointed out by JSHint.
* Added license info link and library header.

11 years agoAdded substantial speed improvements.
GoalSmashers [Sat, 3 Nov 2012 18:53:19 +0000 (18:53 +0000)]
Added substantial speed improvements.

* Reduced bench.js run time by ~20% (from ~45ms to ~35ms on MBP SB 2.3GHz).
* Removed unnecessary regular expressions or replaced with faster ones.
* Added removing line break after commas (effectively making one definition per line).
* Added breaks test for Windows.

11 years agoVersion 0.8.2.
GoalSmashers [Wed, 31 Oct 2012 21:52:02 +0000 (21:52 +0000)]
Version 0.8.2.

11 years agoMerge branch 'master' of github-gs:GoalSmashers/clean-css
GoalSmashers [Wed, 31 Oct 2012 21:49:49 +0000 (21:49 +0000)]
Merge branch 'master' of github-gs:GoalSmashers/clean-css

11 years agoFixed shortening hex colors and their relation to hashes in urls.
GoalSmashers [Wed, 31 Oct 2012 21:49:31 +0000 (21:49 +0000)]
Fixed shortening hex colors and their relation to hashes in urls.

11 years agoMerge pull request #21 from XhmikosR/master
Goal Smashers Dev Team [Wed, 31 Oct 2012 19:58:33 +0000 (12:58 -0700)]
Merge pull request #21 from XhmikosR/master

Cleanup by @XhmikosR.

11 years agofix a few JSHint warnings
XhmikosR [Wed, 31 Oct 2012 09:38:13 +0000 (11:38 +0200)]
fix a few JSHint warnings

11 years agotest.bat: add "echo off" and change to the batch file directory
XhmikosR [Wed, 31 Oct 2012 06:17:32 +0000 (08:17 +0200)]
test.bat: add "echo off" and change to the batch file directory

11 years ago.travis.yml: remove unneeded empty line
XhmikosR [Wed, 31 Oct 2012 06:14:55 +0000 (08:14 +0200)]
.travis.yml: remove unneeded empty line

11 years agoLICENSE: update copyright year
XhmikosR [Wed, 31 Oct 2012 06:14:30 +0000 (08:14 +0200)]
LICENSE: update copyright year

11 years agopackage.json: use the proper url for the repo
XhmikosR [Wed, 31 Oct 2012 06:11:48 +0000 (08:11 +0200)]
package.json: use the proper url for the repo

11 years agoVersion 0.8.1.
GoalSmashers [Sun, 28 Oct 2012 15:02:12 +0000 (15:02 +0000)]
Version 0.8.1.

11 years agoAdded better zeros processing for rect(...) syntax (clip property).
GoalSmashers [Sun, 28 Oct 2012 14:59:48 +0000 (14:59 +0000)]
Added better zeros processing for rect(...) syntax (clip property).

11 years agoVersion 0.8.0.
GoalSmashers [Sun, 21 Oct 2012 10:41:23 +0000 (11:41 +0100)]
Version 0.8.0.

11 years agoAdded removing url parentheses if possible.
GoalSmashers [Sun, 21 Oct 2012 10:31:49 +0000 (11:31 +0100)]
Added removing url parentheses if possible.

* Do not remove parentheses when url given with spaces (since encoded spaces take three bytes instead of one).
* Removing parentheses from url(...) declarations.

11 years agoAdded new breaks processing.
GoalSmashers [Sat, 20 Oct 2012 21:58:34 +0000 (22:58 +0100)]
Added new breaks processing.

* Added (keepBreaks/-b) option to keep breaks in minimized file.
* Minimized files are now kept with breaks so it's easier to compare the changes.

11 years agoReformatted lib/clean.js so it's eaasier to follow the rules.
GoalSmashers [Sat, 20 Oct 2012 19:46:56 +0000 (20:46 +0100)]
Reformatted lib/clean.js so it's eaasier to follow the rules.

11 years agoAdded stripping special comments (all or all but first one) to CLI and API.
GoalSmashers [Sun, 14 Oct 2012 20:16:12 +0000 (21:16 +0100)]
Added stripping special comments (all or all but first one) to CLI and API.

* Version 0.7.0.

12 years agoAdjusted line endings.
GoalSmashers [Thu, 23 Aug 2012 12:31:21 +0000 (14:31 +0200)]
Adjusted line endings.

12 years agoAdded testing via 'npm test'.
GoalSmashers [Thu, 23 Aug 2012 12:28:08 +0000 (14:28 +0200)]
Added testing via 'npm test'.

12 years agoMerge pull request #14 from travis4all/clean
Goal Smashers Dev Team [Thu, 23 Aug 2012 12:27:50 +0000 (05:27 -0700)]
Merge pull request #14 from travis4all/clean

Adding Travis CI.

12 years ago:gem: Travis CI image/link in readme :gem:
travis4all [Thu, 23 Aug 2012 08:33:46 +0000 (08:33 +0000)]
:gem: Travis CI image/link in readme :gem:

12 years ago:gem: Added travis.yml file :gem:
travis4all [Thu, 23 Aug 2012 08:33:46 +0000 (08:33 +0000)]
:gem: Added travis.yml file :gem:

12 years agoFixed outdated readme.
GoalSmashers [Mon, 6 Aug 2012 09:20:30 +0000 (11:20 +0200)]
Fixed outdated readme.

12 years agoVersion 0.6.0.
GoalSmashers [Sun, 5 Aug 2012 13:33:49 +0000 (15:33 +0200)]
Version 0.6.0.

12 years agoAdded full windows support with tests.
GoalSmashers [Sun, 5 Aug 2012 13:28:17 +0000 (15:28 +0200)]
Added full windows support with tests.

12 years agoVersion 0.5.0.
GoalSmashers [Thu, 2 Aug 2012 20:58:31 +0000 (22:58 +0200)]
Version 0.5.0.

12 years ago* Made path to vows local.
GoalSmashers [Thu, 2 Aug 2012 20:55:08 +0000 (22:55 +0200)]
* Made path to vows local.
* Explicit node 0.6 requirement.

12 years agoMerge branch 'master' of github-gs:GoalSmashers/clean-css
GoalSmashers [Tue, 10 Jul 2012 10:30:58 +0000 (12:30 +0200)]
Merge branch 'master' of github-gs:GoalSmashers/clean-css

12 years agoBinary file cleanup.
GoalSmashers [Tue, 10 Jul 2012 09:32:34 +0000 (11:32 +0200)]
Binary file cleanup.

12 years agoUpdated project description.
Goal Smashers Dev Team [Mon, 9 Jul 2012 10:17:04 +0000 (13:17 +0300)]
Updated project description.

12 years agoMerge branch 'master' of github-gs:GoalSmashers/clean-css
GoalSmashers [Thu, 28 Jun 2012 20:50:28 +0000 (22:50 +0200)]
Merge branch 'master' of github-gs:GoalSmashers/clean-css

12 years agoVersion 0.4.2.
GoalSmashers [Thu, 28 Jun 2012 20:50:15 +0000 (22:50 +0200)]
Version 0.4.2.

12 years agoBinary updates.
GoalSmashers [Thu, 28 Jun 2012 20:47:42 +0000 (22:47 +0200)]
Binary updates.

* Updated binary to give version (-v) and help when no options (but not in piped mode).
* Added binary tests.

12 years agoMerge pull request #12 from drewwells/master
Goal Smashers Dev Team [Mon, 25 Jun 2012 06:26:05 +0000 (23:26 -0700)]
Merge pull request #12 from drewwells/master

Special syntax used for comments that aren't supposed to be minified

12 years agoAdd note for comments that survive minifying
Drew Wells [Mon, 25 Jun 2012 01:19:22 +0000 (20:19 -0500)]
Add note for comments that survive minifying

12 years agoVersion 0.4.1.
Jakub Pawlowicz [Sun, 10 Jun 2012 20:58:20 +0000 (22:58 +0200)]
Version 0.4.1.

12 years agoAdded better stateless processing (when calling CleanCSS#process directly or passing...
Jakub Pawlowicz [Sun, 10 Jun 2012 20:43:43 +0000 (22:43 +0200)]
Added better stateless processing (when calling CleanCSS#process directly or passing it around).

12 years agoRestyled readme.
Jakub Pawlowicz [Mon, 4 Jun 2012 13:20:26 +0000 (15:20 +0200)]
Restyled readme.

12 years agoVersion 0.4.0.
Jakub Pawlowicz [Mon, 4 Jun 2012 13:18:42 +0000 (15:18 +0200)]
Version 0.4.0.

12 years agoAdded acknowledgements section.
Jakub Pawlowicz [Mon, 4 Jun 2012 13:18:10 +0000 (15:18 +0200)]
Added acknowledgements section.

12 years agoAdded speed improvements and made empty elements removal optional (-e option).
Jakub Pawlowicz [Mon, 4 Jun 2012 10:35:02 +0000 (12:35 +0200)]
Added speed improvements and made empty elements removal optional (-e option).

* Added -e/removeEmpty option to force empty elements removal.
* Rewrote stripComments and stripContent to speed'em up.
* Refactored CleanCSS#process.
* Added debug option.
* Added test/bench.js and `make bench`.

12 years agoVersion 0.3.3.
Jakub Pawlowicz [Sun, 27 May 2012 17:44:36 +0000 (19:44 +0200)]
Version 0.3.3.

12 years agoMerge pull request #7 from vvo/master
Goal Smashers Dev Team [Sun, 27 May 2012 14:35:19 +0000 (07:35 -0700)]
Merge pull request #7 from vvo/master

Fixed tests, package.json for development, and regex for removing empty declarations.

12 years agoBetter empty elements regex
vvo [Wed, 23 May 2012 13:06:13 +0000 (15:06 +0200)]
Better empty elements regex

12 years agoTrim whitespace
vvo [Wed, 23 May 2012 12:54:25 +0000 (14:54 +0200)]
Trim whitespace

12 years agoFix test data path
vvo [Wed, 23 May 2012 10:51:10 +0000 (12:51 +0200)]
Fix test data path

12 years agoAdd vows devDependency
vvo [Wed, 23 May 2012 10:50:41 +0000 (12:50 +0200)]
Add vows devDependency

12 years agoVersion 0.3.2.
Jakub Pawlowicz [Tue, 17 Jan 2012 20:08:17 +0000 (21:08 +0100)]
Version 0.3.2.

12 years agoFixed output method under node 0.6 which incorrectly tried to close process.stdout.
Jakub Pawlowicz [Tue, 17 Jan 2012 20:05:18 +0000 (21:05 +0100)]
Fixed output method under node 0.6 which incorrectly tried to close process.stdout.

12 years agoVersion 0.3.1.
Jakub Pawlowicz [Fri, 16 Dec 2011 20:54:18 +0000 (21:54 +0100)]
Version 0.3.1.

12 years agoFixed cleaning up '0 0 0 0.5em'.
Jakub Pawlowicz [Fri, 16 Dec 2011 20:51:23 +0000 (21:51 +0100)]
Fixed cleaning up '0 0 0 0.5em'.

12 years agoVersion 0.3.0.
Jakub Pawlowicz [Tue, 29 Nov 2011 13:06:33 +0000 (14:06 +0100)]
Version 0.3.0.

12 years agoMerge pull request #4 from jmalonzo/master
Goal Smashers Development team [Tue, 29 Nov 2011 12:52:38 +0000 (04:52 -0800)]
Merge pull request #4 from jmalonzo/master

Sys has been deprecated in node 0.6 - converting it to util.

12 years agoUse util not sys
Jan Alonzo [Tue, 29 Nov 2011 02:44:36 +0000 (13:44 +1100)]
Use util not sys

12 years agoVersion 0.2.6.
Jakub Pawlowicz [Sun, 27 Nov 2011 15:04:53 +0000 (16:04 +0100)]
Version 0.2.6.

12 years agoFixed expanding + signs in calc() when mixed up with adjacent (+) selector.
Jakub Pawlowicz [Sun, 27 Nov 2011 15:01:02 +0000 (16:01 +0100)]
Fixed expanding + signs in calc() when mixed up with adjacent (+) selector.

12 years agoVersion 0.2.5.
Jakub Pawlowicz [Sun, 27 Nov 2011 09:11:16 +0000 (10:11 +0100)]
Version 0.2.5.

12 years agoOptimized replace method to skip unused code.
Jakub Pawlowicz [Sun, 27 Nov 2011 09:02:51 +0000 (10:02 +0100)]
Optimized replace method to skip unused code.

12 years agoMerge branch 'master' of github.com:GoalSmashers/clean-css
Jakub Pawlowicz [Sun, 27 Nov 2011 08:56:34 +0000 (09:56 +0100)]
Merge branch 'master' of github.com:GoalSmashers/clean-css

12 years agoFixed issue with cleaning up spaces inside calc/-moz-calc declarations.
Jakub Pawlowicz [Sun, 27 Nov 2011 08:54:58 +0000 (09:54 +0100)]
Fixed issue with cleaning up spaces inside calc/-moz-calc declarations.

13 years agoFixed converting #f00 to red in borders and gradients.
Jakub Pawlowicz [Sun, 25 Sep 2011 10:33:22 +0000 (12:33 +0200)]
Fixed converting #f00 to red in borders and gradients.

13 years agoAdded missing licensing info.
Jakub Pawlowicz [Sun, 25 Sep 2011 07:45:05 +0000 (09:45 +0200)]
Added missing licensing info.

13 years agoBumped version to 0.2.4.
Jakub Pawlowicz [Wed, 25 May 2011 17:53:28 +0000 (19:53 +0200)]
Bumped version to 0.2.4.

13 years agoFixed path to cleancss library (from global to local).
Jakub Pawlowicz [Wed, 25 May 2011 17:49:02 +0000 (19:49 +0200)]
Fixed path to cleancss library (from global to local).

13 years agoAdded node_modules to ignore.
Jakub Pawlowicz [Wed, 25 May 2011 17:48:44 +0000 (19:48 +0200)]
Added node_modules to ignore.

13 years agoFixed issue #1 from GitHub tracker.
Jakub Pawlowicz [Wed, 25 May 2011 17:47:48 +0000 (19:47 +0200)]
Fixed issue #1 from GitHub tracker.

* 'none' in longer/full background declaration is not shortened to 0.

13 years agoVersion 0.2.3.
Jakub Pawlowicz [Mon, 18 Apr 2011 07:39:13 +0000 (09:39 +0200)]
Version 0.2.3.

13 years agoFixed two issues with IE 7 filters.
Jakub Pawlowicz [Mon, 18 Apr 2011 07:36:55 +0000 (09:36 +0200)]
Fixed two issues with IE 7 filters.

* Fixed issue with multiple IE filters (IE 7 couldn't handle them if shortened).
* Fixed issue with restoring spaces in all IE filters.

13 years agoVersion 0.2.2.
Jakub Pawlowicz [Sun, 17 Apr 2011 14:53:18 +0000 (16:53 +0200)]
Version 0.2.2.

13 years agoFixed problem with space before color in 'border' property.
Jakub Pawlowicz [Sun, 17 Apr 2011 14:52:09 +0000 (16:52 +0200)]
Fixed problem with space before color in 'border' property.

13 years agoUpdate to version 0.2.1.
Jakub Pawlowicz [Sat, 19 Mar 2011 09:08:56 +0000 (10:08 +0100)]
Update to version 0.2.1.

* Added stripping space before !important keyword.

13 years agoAdded history.
Jakub Pawlowicz [Wed, 2 Mar 2011 21:13:57 +0000 (22:13 +0100)]
Added history.

13 years agoUpdated to version 0.2.0. Added options parsing via optimist.
Jakub Pawlowicz [Wed, 2 Mar 2011 21:03:39 +0000 (22:03 +0100)]
Updated to version 0.2.0. Added options parsing via optimist.

13 years agoFixed path to cleancss binary.
Jakub Pawlowicz [Mon, 28 Feb 2011 19:34:09 +0000 (20:34 +0100)]
Fixed path to cleancss binary.

13 years agoFirst version of clean-css.
Jakub Pawlowicz [Mon, 7 Feb 2011 16:08:11 +0000 (17:08 +0100)]
First version of clean-css.

* Implemented all standard transformations (cleaning up whitespace, semicolons, long color declarations, empty elements, etc...).
* Added tests for all transformations.
* Added tests cleaning up some standard libraries (reset.css, 960.gs, blueprint.css).

13 years agoAdded all basic CSS transformations.
Jakub Pawlowicz [Mon, 7 Feb 2011 11:36:29 +0000 (12:36 +0100)]
Added all basic CSS transformations.