Commit Graph

25 Commits

Author SHA1 Message Date
Liam Newman
2ea625f780 More License administrivia
In looking around at related projects, I've seen a number of them
embedding and reusing individual files instead of the whole project.

As such it makes sense to put the license into the files themselves.

The code is free, this just just clearerly states that it should remain so.
2013-03-27 15:17:37 -07:00
Daniel Stockman
3a1abe2fec In the event output is destined for a recognized file type that differs from the configured type, do the right thing. closes #2 (for real) 2013-03-18 14:00:43 -07:00
Daniel Stockman
0951ee8e1e Output usage based on available options per type, adding HTML-specific options config. closes #2 2013-03-18 13:33:11 -07:00
Daniel Stockman
6096091048 Add css-beautify and html-beautify executables, with the script name providing the default type. refs #2 2013-03-18 12:52:53 -07:00
Daniel Stockman
aa03ea1813 Add --type option, defaulting to 'js'. refs #2 2013-03-18 12:50:32 -07:00
Daniel Stockman
b9aca4b97c Beef up index.js, providing access to css_beautify and html_beautify (retaining js_beautify default). refs #2 2013-03-18 12:50:27 -07:00
Daniel Stockman
b454da6b21 We don't need to message the total number of files beautified. 2013-03-15 13:26:22 -07:00
Daniel Stockman
7c30edc8bf Quiet option suppresses logging, not output of results to stdout. 2013-03-15 12:00:14 -07:00
Daniel Stockman
d2527c6bb5 Move cli procedural calls into exports.interpret, calling immediately if directly executed. 2013-03-13 12:01:31 -07:00
Daniel Stockman
a05e007901 Pass config to logging function instead of relying on 'parsed' global. 2013-03-13 11:39:57 -07:00
Daniel Stockman
9408343aeb Scooch description of CLI options in usage message closer to the flags. 2013-03-13 11:28:55 -07:00
Daniel Stockman
862bc423fa Pass through new wrap_line_length option, with 'unlimited' default (0). 2013-03-13 11:23:39 -07:00
Daniel Stockman
fceb77b483 -g is not actually a shorthand for --good-stuff option. 2013-03-13 11:16:15 -07:00
Renat Golubchyk
7f1ae7a92e Support for quiet mode
Add "-q" or "--quiet" to turn off output of status messages by the node client.
2013-02-28 12:59:30 +01:00
Daniel Stockman
31e433cb8c Process files synchronously to avoid EMFILE errors on large trees. 2012-12-10 12:24:37 -08:00
Daniel Stockman
bdaea4dd84 Massive refactoring of CLI using nopt and config-chain.
* You may now use environment variables (prefixed by jsbeautify_), a .jsbeautifyrc file, or a custom JSON file (via --config) to pass options.
 * cli.js itself is much more functional in layout. The majority of it should probably be extracted into a seperate file.
2012-12-06 13:56:34 -08:00
Daniel Stockman
77984a283f Check for writability of output file, skipping if error caught. 2012-08-02 12:30:11 -07:00
Daniel Stockman
23f9173dca I should really test installing under v0.4.12 :P 2012-07-23 17:44:33 -07:00
Daniel Stockman
6477197716 Support 0.4.x by loading JSON the old-fashioned way (when necessary). 2012-07-17 10:51:00 -07:00
Daniel Stockman
c5417be3bf Extract argv and defaults into config/*.json 2012-07-16 13:34:06 -07:00
Daniel Stockman
d6c8846211 Rename 'in-place' option 'replace', with handling of empty --outfile option. 2012-07-16 13:20:45 -07:00
Daniel Stockman
a8e74889db Clarify preserve-newlines negation. TODO: fix Python optparsing. 2012-07-16 11:36:00 -07:00
Daniel Stockman
0945bc6411 Support writing output to file, in-place if desired. 2012-07-16 11:23:53 -07:00
Daniel Stockman
b8a2a8a631 Support piping in content via stdin (with dash parameter). 2012-07-13 17:21:32 -07:00
Daniel Stockman
ddbec116c2 Add cli.js, used as executable jsbeautify when installed. 2012-07-13 16:54:36 -07:00