Commit Graph

1208 Commits

Author SHA1 Message Date
Glavin Wiechert 2dbf680d76 Increase timeout duration to 60 seconds for language beautification tests 2015-06-14 11:36:42 -03:00
Glavin Wiechert 57ffe7543b Handle Windows command not found error being different
Using cross-spawn on Windows will return returnCode=1 and use stderr
message when command is not found. However it is expected that an Error is
returned from spawn in that case and error.code is ENOENT. This commit
handles Windows explicitly by checking if it is Windows, for the
returnCode, and also if the error message is appropriate.

Example Windows command not found error message:
	'command' is not recognized as an internal or external command,
	operable program or batch file.

/cc #397
2015-06-14 11:03:12 -03:00
Glavin Wiechert c93b1f8696 Fix Windows spawn issues, switch to cross-spawn
Fixes #397. sqlformat should not be able to be found and used.

See https://github.com/joyent/node/issues/2318
2015-06-12 15:19:24 -03:00
Glavin Wiechert 17a470a23c Prepare 0.28.4 release 2015-06-12 03:36:04 -03:00
Glavin Wiechert b47cc5b92d Revert previous commit to fix PHP-CS-Fixer and rubocop
- Reverting commit 590dbc805e
- See #390
2015-06-12 03:19:53 -03:00
Glavin Wiechert 590dbc805e See #390. Use global php-cs-fixer on Windows without running within php
By using [node-which](https://github.com/isaacs/node-which)
I believe I am able to get rid of the `php` command running
`php-cs-fixer` as an argument.
`which` will find the `php-cs-fixer` program by looking through
the `PATH` environment variable listed directories.
This will resolve `php-cs-fixer` to an absolute path to the executable
and that will be used to run the command.
This dramatically cleans up the `PHP-CS-Fixer beautifier` code and specs, too!

Doing some Windows tests now.
2015-06-12 01:22:14 -03:00
Glavin Wiechert 5094d76930 Fix typo in beautify-languages-spec, calling text.replace when not string 2015-06-11 23:50:24 -03:00
Glavin Wiechert 0df387dac3 Beautify all spec/ files to pass linting with Coffeelint 2015-06-11 23:10:00 -03:00
Glavin Wiechert c1f09e4f8b Beautify all src/ files to pass linting with Coffeelint 2015-06-11 22:57:03 -03:00
Glavin Wiechert 6b7b3d6401 Fix failing PHP-CS-Fixer Beautifier specs, disable some on Windows 2015-06-11 22:07:56 -03:00
Glavin Wiechert b0d8dfa6fb Format all internal CoffeeScript code to indent_size=2
- Using Atom Beautify's Beautify Directory feature
- Using coffee-fmt
  - Only has one bug: https://github.com/sterpe/coffee-fmt/issues/16
2015-06-11 21:59:00 -03:00
Glavin Wiechert 72e4384cf8 See #213. Disable `Beautify Directory` command from menus 2015-06-11 21:58:43 -03:00
Glavin Wiechert 328b9e4455 See #213. Add OK/Cancel buttons to Beautify Directory command 2015-06-11 21:57:35 -03:00
Glavin Wiechert 35303961e2 Merge branch 'beautify-directory' 2015-06-11 21:40:22 -03:00
Glavin Wiechert 7c9281e4b4 Fix PHP-CS-Fixer beautifier specs for missing php/php-cs-fixer 2015-06-11 21:16:05 -03:00
Glavin Wiechert 8ff76bc41d Fix typo in php-cs-fixer spec, mocking env should be object 2015-06-11 18:51:36 -03:00
Glavin Wiechert 817cab6ce4 Prepare 0.28.3 release 2015-06-11 18:21:39 -03:00
Glavin Wiechert 4d8d09a601 Closes #264. Choose Pretty Diff beautifier as default for ERB
- Add indent_size option to htmlbeautifier
- Make Pretty Diff default beautifier for ERB
2015-06-11 18:20:24 -03:00
Glavin Wiechert 7ee517a5d4 Merge branch 'master' of github.com:Glavin001/atom-beautify 2015-06-11 17:38:00 -03:00
Glavin Wiechert 2663b41505 See #394. Improve error message when program cannot be found 2015-06-11 17:37:23 -03:00
Glavin Wiechert 424cda1404 Create add-languages-and-beautifiers.md 2015-06-10 20:58:13 -03:00
Glavin Wiechert a0e07c232d Closes #142. Add options (tabs, spaces, indent_count) for Ruby-Beautify 2015-06-10 19:20:08 -03:00
Glavin Wiechert 9b7abdc707 Disable failing LESS/Sass tests using Pretty Diff
See https://github.com/prettydiff/prettydiff/issues/106 for details
2015-06-10 18:23:07 -03:00
Glavin Wiechert 68070d5b4b Fix showing of options when a test fails when running specs 2015-06-10 17:30:44 -03:00
Glavin Wiechert 01d7f2f9bb Show options when a test fails when running specs 2015-06-10 17:02:22 -03:00
Glavin Wiechert 9afde9bfd1 Clean up logging, remove atom-typescript from specs 2015-06-10 16:45:34 -03:00
Glavin Wiechert d6297bdefc Replace invisible chars (space, tab, newline) w/ visible chars in specs 2015-06-10 16:12:19 -03:00
Glavin Wiechert 2a283e0f66 Update docs 2015-06-10 13:57:47 -03:00
Glavin Wiechert 7a6b5a4b7b Prepare 0.28.2 release 2015-06-10 13:57:09 -03:00
Glavin Wiechert 73221fdf9a Update all package dependencies. 2015-06-10 13:56:41 -03:00
Glavin Wiechert 658f5b23d9 Fix typo in beautify-languages-spec causing failing tests to pass 2015-06-10 13:11:20 -03:00
Glavin Wiechert 198f0770dd Closes #341. Add indent_size option to Rubocop beautifier 2015-06-10 13:10:16 -03:00
Glavin Wiechert 5506b28e8a See #213. Add warning to beautify-directory
- and do not save beautified output if it is empty string
2015-06-10 11:25:37 -03:00
Glavin Wiechert 94553b0a23 Prepare 0.28.1 release 2015-06-10 10:41:33 -03:00
Glavin Wiechert dcddf71346 Fixes #327. Only show beautify progress view when actually beautifying
- Beautifiers extends event emitter
2015-06-10 10:34:51 -03:00
Glavin Wiechert bf1c7fc0e2 Closes #369. Allow JS Beautify to be used for XML language 2015-06-10 09:15:48 -03:00
Glavin Wiechert 7b5fbf73ce Add in-page links to documentation, to beautifiers, etc 2015-06-09 12:02:52 -03:00
Glavin Wiechert cf348cb7fa Prepare 0.28.0 release 2015-06-08 19:16:07 -03:00
Glavin Wiechert c6492bf100 Generate documentation for available options for each beautifier 2015-06-08 19:05:03 -03:00
Glavin Wiechert b41daabaa6 Closes #297, #265. Add missing Pretty Diff options for CSS/SCSS/Sass/LESS 2015-06-08 18:34:56 -03:00
Glavin Wiechert 6eb0319e7e Prepare 0.27.13 release 2015-06-08 16:53:19 -03:00
Glavin Wiechert fba7f8898f See #375. Add AppVeyor (Windows CI) build status badge to README
[ci skip]
2015-06-08 16:48:13 -03:00
Glavin Wiechert e7e26ee4f5 See #375. Remove addition versions on Python in AppVeyor build matrix 2015-06-08 16:43:34 -03:00
Glavin Wiechert 38901f06a5 See #375. Download Uncrustify binary for Windows CI 2015-06-08 16:34:21 -03:00
Glavin Wiechert 78b6d55a0a See #375. Download PHP-CS-Fixer using cURL for Windows CI 2015-06-08 13:52:42 -03:00
Glavin Wiechert cc713e4efa See #375. Download PHP-CS-Fixer.phar file for Windows CI 2015-06-08 12:18:00 -03:00
Glavin Wiechert 3db55bf029 See #375. Install PHP and PHP-CS-Fixer in Windows CI 2015-06-08 11:52:30 -03:00
Glavin Wiechert d78b3590ca See #375. Set log level to verbose for running specs on Windows 2015-06-08 11:24:32 -03:00
Glavin Wiechert e471642003 Add coffeelint config file 2015-06-08 11:24:08 -03:00
Glavin Wiechert ce503cb80a Retrieve/use absolute path of executable within Beautifier::run
See #375. Will help with debugging Windows CI
2015-06-08 11:20:52 -03:00