From df89047046f7f174ae6ebe7226260a3debfc4826 Mon Sep 17 00:00:00 2001 From: quilicicf Date: Fri, 23 Sep 2016 18:37:44 +0200 Subject: [PATCH 1/4] :new: Add beautysh as bash/shell beautifier --- README.md | 3 +- docs/code/alphabetical_index.html | 55 ++++ docs/code/class/BashBeautify.html | 204 +++++++++++++ docs/code/class/Beautifier.html | 2 + docs/code/class/Beautifiers.html | 2 +- docs/code/class/Cljfmt.html | 204 +++++++++++++ docs/code/class/PrettyDiff.html | 4 +- docs/code/class_list.html | 24 ++ docs/code/extra/CHANGELOG.md.html | 1 + docs/code/extra/README.md.html | 20 +- .../src/beautifiers/bash-beautify.coffee.html | 123 ++++++++ .../src/beautifiers/beautifysh.coffee.html | 123 ++++++++ .../src/beautifiers/cljfmt/index.coffee.html | 125 ++++++++ docs/code/file/src/languages/bash.coffee.html | 144 +++++++++ .../file/src/languages/clojure.coffee.html | 138 +++++++++ docs/code/file/src/languages/jsx.coffee.html | 2 +- .../file/src/languages/ux_markup.coffee.html | 139 +++++++++ docs/code/file_list.html | 48 +++ docs/code/javascript/search.js | 2 +- docs/code/method_list.html | 282 +++++++++--------- docs/options.md | 121 ++++++++ examples/beautysh/bash/expected/netinfo.sh | 11 + examples/beautysh/bash/original/netinfo.sh | 11 + package.json | 6 +- script/build-options.js | 4 +- src/beautifiers/beautysh.coffee | 14 + src/beautifiers/index.coffee | 1 + src/languages/bash.coffee | 29 ++ src/languages/index.coffee | 1 + 29 files changed, 1701 insertions(+), 142 deletions(-) create mode 100644 docs/code/class/BashBeautify.html create mode 100644 docs/code/class/Cljfmt.html create mode 100644 docs/code/file/src/beautifiers/bash-beautify.coffee.html create mode 100644 docs/code/file/src/beautifiers/beautifysh.coffee.html create mode 100644 docs/code/file/src/beautifiers/cljfmt/index.coffee.html create mode 100644 docs/code/file/src/languages/bash.coffee.html create mode 100644 docs/code/file/src/languages/clojure.coffee.html create mode 100644 docs/code/file/src/languages/ux_markup.coffee.html create mode 100644 examples/beautysh/bash/expected/netinfo.sh create mode 100644 examples/beautysh/bash/original/netinfo.sh create mode 100644 src/beautifiers/beautysh.coffee create mode 100644 src/languages/bash.coffee diff --git a/README.md b/README.md index 447c4c0..4a77540 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,7 @@ See [all supported options in the documentation at `docs/options.md`](https://g | --- | --- | --- | ---- | | Apex | `Apex` |`.cls`, `.trigger` | [`Uncrustify`](https://github.com/uncrustify/uncrustify) (Default) | | Arduino | `Arduino` |`.ino`, `.pde` | [`Uncrustify`](https://github.com/uncrustify/uncrustify) (Default) | +| Bash | `Shell script` |`.bash`, `.sh` | [`beautysh`](https://github.com/bemeurer/beautysh) (Default) | | C | `C`, `opencl` |`.h`, `.c`, `.cl` | [`Uncrustify`](https://github.com/uncrustify/uncrustify) (Default), [`clang-format`](https://clang.llvm.org/docs/ClangFormat.html) | | Coldfusion | `html` |`.cfm`, `.cfml`, `.cfc` | [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) | | Clojure | `Clojure` |`.clj`, `.cljs`, `.edn` | [`cljfmt`](https://github.com/snoe/node-cljfmt) (Default) | @@ -81,7 +82,7 @@ See [all supported options in the documentation at `docs/options.md`](https://g | Java | `Java` |`.java` | [`Uncrustify`](https://github.com/uncrustify/uncrustify) (Default) | | JavaScript | `JavaScript` |`.js` | [`JS Beautify`](https://github.com/beautify-web/js-beautify) (Default), [`JSCS Fixer`](https://github.com/jscs-dev/node-jscs/), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) | | JSON | `JSON` |`.json` | [`JS Beautify`](https://github.com/beautify-web/js-beautify) (Default), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) | -| JSX | `JSX`, `JavaScript (JSX)` |`.jsx`, `.js` | [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) | +| JSX | `JSX`, `JavaScript (JSX)`, `Babel ES6 JavaScript` |`.jsx`, `.js` | [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) | | LaTeX | `LaTeX` |`.tex` | [`Latex Beautify`](https://github.com/cmhughes/latexindent.pl) (Default) | | LESS | `LESS` |`.less` | [`CSScomb`](https://github.com/csscomb/csscomb.js), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) | | Lua | `Lua` |`.lua` | [`Lua beautifier`](https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/lua-beautifier/beautifier.pl) (Default) | diff --git a/docs/code/alphabetical_index.html b/docs/code/alphabetical_index.html index ac4af5e..0ad7180 100644 --- a/docs/code/alphabetical_index.html +++ b/docs/code/alphabetical_index.html @@ -50,6 +50,11 @@ Beautifier +
  • + + BashBeautify + +
  • Beautifiers @@ -65,6 +70,11 @@ ClangFormat
  • +
  • + + Cljfmt + +
  • CoffeeFmt @@ -380,6 +390,14 @@ (src/beautifiers)
  • +
  • + + beautifysh.coffee + + + (src/beautifiers) + +
  • beautify.coffee @@ -388,6 +406,14 @@ (src)
  • +
  • + + bash.coffee + + + (src/languages) + +