chore(v2): upgrade devDependencies (#2538)

* chore(v2): upgrade devDependencies

* chore(v2): upgrade devDependencies

* chore: prettier
This commit is contained in:
Yangshun Tay 2020-04-05 19:07:44 +08:00 committed by GitHub
parent ea8c916528
commit b07507c9cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
148 changed files with 2385 additions and 1975 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();