13 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
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
28d51fcaf8 Fix github link generation for Node.js 6 (#524)
In Node.js 6 additional assertions was added in path module:
https://github.com/nodejs/node/pull/5348
2016-09-04 16:41:06 -04:00
Tom MacWright
7dad60bff2 Document parsePackedRefs 2016-06-01 17:21:33 -04:00
Tom MacWright
f0917eadfa Remove dead code, test packed refs directly 2016-05-26 13:48:04 -04:00
Tom MacWright
89895a7ac4 Support packed-refs 2016-04-26 14:48:10 -04: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
6b8cc62eef Trim later to protect against sha HEAD files with newlines 2015-11-28 10:53:31 -05:00
Tom MacWright
7084147d51 Fix and test detached url prefixes. Fixes #251 2015-11-25 15:00:39 -05:00
Tom MacWright
171b7d707a Improve internal documentation 2015-10-11 16:16:43 -04:00
Tom MacWright
791dcaf1d5 Remove ref to git_dir 2015-10-01 21:32:51 -04:00
Tom MacWright
db319b0e1c Make github internals testable 2015-10-01 21:31:52 -04:00