Permalink
Browse files

updated script to use new debug.js file (with comments\!\!\!) and sto…

…p trying to download the invalid css file
  • Loading branch information...
1 parent 93dd89b commit 7d3c7acb5f80352c598fdf07185460d3c8883460 @nfriedly committed Oct 28, 2012
Showing with 10,929 additions and 23,021 deletions.
  1. +0 −189 all.css
  2. +0 −156 all.js
  3. +0 −973 all_deminified.css
  4. +0 −7,309 all_deminified.js
  5. +0 −53 csstidy_wrapper.php
  6. +10,910 −0 debug.js
  7. +0 −340 lib/csstidy-1.3/COPYING.txt
  8. +0 −1,038 lib/csstidy-1.3/Docs/__filesource/fsource_csstidy__class.csstidy.php.html
  9. +0 −851 lib/csstidy-1.3/Docs/__filesource/fsource_csstidy__class.csstidy_optimise.php.html
  10. +0 −402 lib/csstidy-1.3/Docs/__filesource/fsource_csstidy__class.csstidy_print.php.html
  11. +0 −521 lib/csstidy-1.3/Docs/__filesource/fsource_csstidy__data.inc.php.html
  12. +0 −62 lib/csstidy-1.3/Docs/classtrees_csstidy.html
  13. +0 −97 lib/csstidy-1.3/Docs/csstidy/_class_csstidy_optimise_php.html
  14. +0 −130 lib/csstidy-1.3/Docs/csstidy/_class_csstidy_php.html
  15. +0 −97 lib/csstidy-1.3/Docs/csstidy/_class_csstidy_print_php.html
  16. +0 −483 lib/csstidy-1.3/Docs/csstidy/_data_inc_php.html
  17. +0 −1,550 lib/csstidy-1.3/Docs/csstidy/csstidy.html
  18. +0 −705 lib/csstidy-1.3/Docs/csstidy/csstidy_optimise.html
  19. +0 −617 lib/csstidy-1.3/Docs/csstidy/csstidy_print.html
  20. +0 −386 lib/csstidy-1.3/Docs/elementindex.html
  21. +0 −405 lib/csstidy-1.3/Docs/elementindex_csstidy.html
  22. +0 −51 lib/csstidy-1.3/Docs/errors.html
  23. +0 −68 lib/csstidy-1.3/Docs/index.html
  24. +0 −68 lib/csstidy-1.3/Docs/li_csstidy.html
  25. BIN lib/csstidy-1.3/Docs/media/background.png
  26. BIN lib/csstidy-1.3/Docs/media/empty.png
  27. +0 −197 lib/csstidy-1.3/Docs/media/style.css
  28. +0 −77 lib/csstidy-1.3/Docs/todolist.html
  29. +0 −28 lib/csstidy-1.3/README.txt
  30. +0 −999 lib/csstidy-1.3/class.csstidy.php
  31. +0 −809 lib/csstidy-1.3/class.csstidy_optimise.php
  32. +0 −349 lib/csstidy-1.3/class.csstidy_print.php
  33. +0 −353 lib/csstidy-1.3/css_optimiser.php
  34. +0 −137 lib/csstidy-1.3/cssparse.css
  35. +0 −473 lib/csstidy-1.3/data.inc.php
  36. +0 −238 lib/csstidy-1.3/lang.inc.php
  37. +0 −10 lib/csstidy-1.3/template.tpl
  38. +0 −12 lib/csstidy-1.3/template1.tpl
  39. +0 −5 lib/csstidy-1.3/template2.tpl
  40. +0 −1 lib/csstidy-1.3/template3.tpl
  41. +0 −53 lib/csstidy-1.3/testing/auto-testing.php
  42. +0 −161 lib/csstidy-1.3/testing/base.css
  43. +0 −993 lib/csstidy-1.3/testing/css_results.php
  44. +0 −434 lib/csstidy-1.3/testing/fisubsilver.css
  45. +0 −1,095 lib/jsbeautifier.py
  46. +4 −8 readme.md
  47. +15 −38 update_fb_github.sh
View
189 all.css
Oops, something went wrong.
View
156 all.js
Oops, something went wrong.
View
Oops, something went wrong.
View
Oops, something went wrong.
View
@@ -1,53 +0,0 @@
-<?php
-
-/**
-* Wrapper for the PHP version of CSS Tidy to allow it to accept command line arguments.
-*
-* (I tried the linux version but I couldn't get the binary to work or the source to compile without errors..)
-*
-* Requires php5-cli to work:
-* sudo aptitude install php5-cli
-*
-* Copyright Nathan Friedly - http://nfriedly.com
-*
-* MIT License
-**/
-
-if(!isset($argv[2])){
- exit("usage:\n$ php $argv[0] source.css destination.css\n");
-}
-
-// fire up css tidy
-require('lib/csstidy-1.3/class.csstidy.php');
-$css = new csstidy();
-
-// put all settings on "no shenanigans" mode
-$css->set_cfg('remove_bslash',false);
-$css->set_cfg('compress_colors',false);
-$css->set_cfg('compress_font-weight',false);
-$css->set_cfg('lowercase_s',false);
-$css->set_cfg('optimise_shorthands',0);
-$css->set_cfg('remove_last_;',false);
-$css->set_cfg('case_properties',0);
-$css->set_cfg('sort_properties',false);
-$css->set_cfg('sort_selectors',false);
-$css->set_cfg('merge_selectors',0);
-$css->set_cfg('discard_invalid_properties',false);
-$css->set_cfg('preserve_css',true);
-$css->set_cfg('timestamp',false);
-
-$css->load_template('low_compression');
-
-// read in the source file
-$source_css = file_get_contents($argv[1]) or die("Error reading source file $argv[1]\n");
-
-//echo "source css: \n\n" . substr($source_css,0,300) . "...\n\n";
-
-$css->parse($source_css);
-
-// and spit out the results
-$result = $css->print->plain();
-
-//echo "parsed css: \n\n" . substr($result,0,300) . "...\n\n";
-
-file_put_contents($argv[2], $result) or die ("Error writing to destination file $argv[2]\n");
Oops, something went wrong.

0 comments on commit 7d3c7ac

Please sign in to comment.