This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const chromeLauncher = require('chrome-launcher'); | |
const puppeteer = require('puppeteer'); | |
const lighthouse = require('lighthouse'); | |
const config = require('lighthouse/lighthouse-core/config/lr-desktop-config.js'); | |
const reportGenerator = require('lighthouse/lighthouse-core/report/report-generator'); | |
const request = require('request'); | |
const util = require('util'); | |
const fs = require('fs'); | |
(async() => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const chromeLauncher = require('chrome-launcher'); | |
const puppeteer = require('puppeteer'); | |
const lighthouse = require('lighthouse'); | |
const config = require('lighthouse/lighthouse-core/config/lr-desktop-config.js'); | |
const reportGenerator = require('lighthouse/lighthouse-core/report/report-generator'); | |
const request = require('request'); | |
const util = require('util'); | |
const fs = require('fs'); | |
const sleep = seconds => | |
new Promise(resolve => setTimeout(resolve, (seconds || 1) * 1000)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const json2html = require('node-json2html'); | |
const fs = require('fs-extra') | |
let template_table_header = { | |
"<>": "tr", "html": [ | |
{"<>": "th", "html": "App Name"}, | |
{"<>": "th", "html": "Accessibility"}, | |
{"<>": "th", "html": "Best Practices"}, | |
{"<>": "th", "html": "SEO"}, | |
{"<>": "th", "html": "Performance"} |