docusaurus/lib/server
Tom Auger bbef20d345 fix: live reload port fallback if port is used (#899)
* Move start reload server into separate module

* Find an unused port when starting the live reload server

* Move findUnusedPort into module

* Add tests for findUnusedPort module

* Refactor findUnusedPort

* Move starting of servers into separate module and add tests

* Remove unused constants.js

* Zap extra line breaks

* Add tests for liveReloadServer

* Rename serverController to start

* Move start into lib/server

* Add portfinder package

* Replace findUnusedPort with portfinder

* nits
2018-09-13 02:03:52 +08:00
..
__mocks__ fix: live reload port fallback if port is used (#899) 2018-09-13 02:03:52 +08:00
__tests__ fix: live reload port fallback if port is used (#899) 2018-09-13 02:03:52 +08:00
blog.js Refactor(server): share logic between server.js & generate.js (#856) 2018-07-24 13:37:52 +07:00
docs.js feat: last updated time in docs (#913) 2018-08-29 21:15:18 +08:00
env.js Fix correct linking when setting defaultVersionShown to non-latest version (#894) 2018-08-10 23:49:52 -07:00
feed.js fix: truncate blogpost properly with truncate-html (#880) 2018-08-02 15:16:26 +08:00
generate.js fix: nested static in static breaks build (#953) 2018-09-12 07:31:10 +08:00
liveReloadServer.js fix: live reload port fallback if port is used (#899) 2018-09-13 02:03:52 +08:00
metadataUtils.js Refactor + add more tests (Part 1) (#847) 2018-07-13 11:31:37 -07:00
readCategories.js Revert "Add ability to specify sub categories in sidebar.json (#891)" 2018-08-06 18:58:54 -07:00
readMetadata.js Fix: conflicting strings issue in translations (#917) 2018-08-29 00:04:02 +08:00
renderUtils.js ESLintify Part 3 (#846) 2018-07-11 18:21:31 +08:00
routing.js Refactor + add more tests (Part 1) (#847) 2018-07-13 11:31:37 -07:00
server.js fix: live reload port fallback if port is used (#899) 2018-09-13 02:03:52 +08:00
sitemap.js fix: add baseUrl to sitemap URLs (#902) 2018-08-12 18:49:45 +07:00
start.js fix: live reload port fallback if port is used (#899) 2018-09-13 02:03:52 +08:00
translate-plugin.js ESLintify Part 3 (#846) 2018-07-11 18:21:31 +08:00
translate.js ESLintify Part 3 (#846) 2018-07-11 18:21:31 +08:00
translation.js ESLintify Part 3 (#846) 2018-07-11 18:21:31 +08:00
utils.js Fix Jest tests that fail on Windows (#896) 2018-08-10 22:21:52 +07:00
versionFallback.js ESLintify Part 3 (#846) 2018-07-11 18:21:31 +08:00