cleanup startup logs (#291)

This commit is contained in:
Kunall Banerjee 2017-12-16 19:51:52 -05:00 committed by Joel Marcey
parent 731251172e
commit c60131fdb4
5 changed files with 0 additions and 17 deletions

View file

@ -193,8 +193,6 @@ function processMetadata(file) {
// process metadata for all docs and save into core/metadata.js
function generateMetadataDocs() {
console.log('Generating Metadata for Docs....');
let order;
try {
order = readSidebar();
@ -346,13 +344,6 @@ function generateMetadataBlog() {
const metadatas = [];
let files = glob.sync(CWD + '/blog/**/*.*');
if (!files || files.length == 0) {
console.error(
`${chalk.yellow(
CWD + '/blog/ appears to be empty'
)} Make sure you've put your blog files in your Docusaurus 'website' folder.`
);
}
files
.sort()
.reverse()

View file

@ -122,8 +122,6 @@ function execute(port) {
/****************************************************************************/
console.log('server.js triggered...');
reloadMetadata();
reloadMetadataBlog();
extractTranslations();
@ -525,7 +523,6 @@ function execute(port) {
});
app.listen(port);
console.log('listening on port: ' + port);
console.log('Open http://localhost:' + port + '/');
}

View file

@ -32,8 +32,6 @@ const translation = {languages: enabledLanguages};
const files = glob.sync(CWD + '/i18n/**');
const langRegex = /\/i18n\/(.*)\.json$/;
console.log('Loading translation files...');
files.forEach(file => {
const extension = path.extname(file);
if (extension === '.json') {

View file

@ -35,7 +35,6 @@ program.option('--port <number>', 'Specify port number').parse(process.argv);
const port = parseInt(program.port, 10) || 3000;
console.log('Checking if port ' + port + ' is free...');
tcpPortUsed.check(port, 'localhost').then(function(inUse) {
if (inUse) {
console.error(chalk.red('Port ' + port + ' is in use'));

View file

@ -36,8 +36,6 @@ function writeFileAndCreateFolder(file, content) {
}
function execute() {
console.log('Extracting translateable strings from files...');
let translations = {
'localized-strings': {
next: 'Next',