diff --git a/docker-compose.yml b/docker-compose.yml index 9f5f85f..71e557d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -39,6 +39,12 @@ services: # volumes: # - ./data/reports:/app/static/reports + yake: + image: liaad/yake-server + container_name: ${NAMESPACE}-yake + ports: + - 5303:5000 + # networks: # internal: # driver: bridge diff --git a/src/package-data.json b/src/package-data.json new file mode 100644 index 0000000..90ebbb3 --- /dev/null +++ b/src/package-data.json @@ -0,0 +1,5 @@ +{ + "name": "site-audit-seo-project", + "description": "User modules for site-audit-seo", + "dependencies": {} +} diff --git a/src/program.js b/src/program.js index 03f98b6..9237a86 100644 --- a/src/program.js +++ b/src/program.js @@ -99,7 +99,7 @@ program.postParse = async () => { } // lang - if (!['en', 'ru'].includes(program.lang)) program.lang = systemLocale; + if (!['en', 'fr', 'ru'].includes(program.lang)) program.lang = systemLocale; // no open file when no xlsx generate if (!program.xlsx) program.openFile = false; @@ -306,7 +306,7 @@ program.outBrief = (options) => { { name: 'Language', value: program.lang, - comment: '--lang ' + (program.lang == 'ru' ? 'en' : 'ru'), + comment: '--lang [en, fr, ru]', }, { name: 'Docs extensions', diff --git a/src/scrap-site.js b/src/scrap-site.js index 2fada4d..9e09707 100644 --- a/src/scrap-site.js +++ b/src/scrap-site.js @@ -260,7 +260,7 @@ module.exports = async (baseUrl, options = {}) => { if (!result.result) return; if (result.result.error) { - const msg = `${color.red}Error collect page data: result.result.error${color.reset}`; + const msg = `${color.red}evaluatePage: Error collect page data: result.result.error${color.reset}`; console.error(msg); } // console.log(`html_size: ${result.result.html_size}`); @@ -319,13 +319,13 @@ module.exports = async (baseUrl, options = {}) => { /* page.on('error', function(err) { console.error(`${color.red}Page error:${color.reset} ` + err.toString()); - }); */ + }); - /*page.on('close', function() { + page.on('close', function() { console.error(`${color.red}Page closed${color.reset} `); - });*/ + }); - /* page.on('pageerror', function(err) { + page.on('pageerror', function(err) { console.error(`${color.red}pegeerror:${color.reset} ` + err.toString()); }); */