mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 15:47:23 +02:00
ESLintify Part 2 (#841)
* ESLintify Part 2 * Fix * Fix tests * Fix tests * Fix tests
This commit is contained in:
parent
4267337fb0
commit
5ac2cee658
42 changed files with 188 additions and 190 deletions
|
@ -22,6 +22,7 @@ require('babel-register')({
|
|||
// initial check that required files are present
|
||||
const chalk = require('chalk');
|
||||
const fs = require('fs');
|
||||
|
||||
const CWD = process.cwd();
|
||||
|
||||
if (!fs.existsSync(CWD + '/siteConfig.js')) {
|
||||
|
@ -33,6 +34,7 @@ if (!fs.existsSync(CWD + '/siteConfig.js')) {
|
|||
|
||||
// generate all static html files
|
||||
const generate = require('./server/generate.js');
|
||||
|
||||
generate()
|
||||
.then(() => {
|
||||
console.log("Site built successfully. Generated files in 'build' folder.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue