9 Commits

Author SHA1 Message Date
Tom MacWright
25152edeb9 style(prettier): Use prettier for code formatting (#710)
* style(prettier): Use prettier for code formatting

This saves us style issues. Also adds husky and lint-staged for pre-commit testing

Refs https://github.com/documentationjs/documentation/issues/709
2017-04-10 14:25:45 -04:00
Anton
5fe1859da8 text(windows): Fix tests on Windows platform
* Fixed find_git test for windows platform.

* Fixed github test on windows platform.

* Fixed bin tests which are executed process from node.js

* On windows platform uses DOUBLE EXCLAMATION MARK instead of WARNING SIGN.
2017-03-30 21:35:11 -04:00
Tom MacWright
631c6925d4 feat(core): Switch to Promises everywhere. Adopt Node v4 ES6 (#648)
* feat(core): Switch to Promises everywhere. Adopt Node v4 ES6

Big changes:

* Uses template strings where appropriate
* Config and argument parsing is unified and there is no such thing
  as formatterOptions anymore. All user-passed options go through
  mergeConfig.
* The node API surface changed (again): `buildSync` is removed,
  building operations return Promises.
* Now using Flow for internal type annotations.

More changes:

* Remove buildSync command
* feat(inference): Partially implement object shorthand support
* Refs #649
* Use Flow annotations to  enforce types
* Keep flow but switch to comment syntax
* Clarify types
* More flow improvements
* Turn server into class
* LinkerStack becomes class too
* Fix comment description type
* Run flow on lint
* Many more flow fixes
* More intense flow refactoring
* Simplify inference steps
* Update inference tests, flow errors down to 1
* Continue refining types
* Fix more flow issues
* Use 'use strict' everywhere
* Make 'ast' property configurable
* Fix many tests
* Fix more tests
* Fix more tests
* Fix augments
* Test Markdown meta support
* Improve test coverage
* Switch back from for of to for for speed
2017-01-27 16:14:19 -05:00
ikokostya
e8491b817d support github enterprise url 2016-03-09 19:50:00 +03:00
Tom MacWright
0d8fcc09c8 Don't crash if .git is there but .git/HEAD isn't. Fixes #329 2016-02-14 19:34:09 -05:00
Tom MacWright
7084147d51 Fix and test detached url prefixes. Fixes #251 2015-11-25 15:00:39 -05:00
Tom MacWright
0aa42d294f Enable and fix no-unused-vars rule 2015-10-06 15:28:32 -04:00
Tom MacWright
bcb9e81185 Add tests for github processor 2015-10-01 21:44:00 -04:00
Tom MacWright
db319b0e1c Make github internals testable 2015-10-01 21:31:52 -04:00