chore(v2): fix code style (revert previous changes)

This commit is contained in:
Alexey Pyltsyn 2020-04-05 17:38:12 +03:00
parent 1480a7eb80
commit 1f00d15c74
143 changed files with 457 additions and 458 deletions

View file

@ -14,7 +14,7 @@ const server = require('./server.js');
const CWD = process.cwd();
function startLiveReloadServer() {
const promise = portFinder.getPortPromise({port: 35729}).then(port => {
const promise = portFinder.getPortPromise({port: 35729}).then((port) => {
liveReloadServer.start(port);
});
return promise;
@ -26,7 +26,7 @@ function startServer() {
const host = program.host || 'localhost';
const promise = portFinder
.getPortPromise({port: initialServerPort})
.then(port => {
.then((port) => {
server(port, host);
const {baseUrl} = require(`${CWD}/siteConfig.js`);
const serverAddress = `http://${host}:${port}${baseUrl}`;
@ -39,7 +39,7 @@ function startServer() {
function startDocusaurus() {
if (program.watch) {
return startLiveReloadServer()
.catch(ex => console.warn(`Failed to start live reload server: ${ex}`))
.catch((ex) => console.warn(`Failed to start live reload server: ${ex}`))
.then(() => startServer());
}
return startServer();