Commit bb933fa2 authored by Philipp Nowinski's avatar Philipp Nowinski
Browse files

[FEATURE] integrate lighthouse

parent 6eab44f7
......@@ -20,8 +20,8 @@ if [ "$1" == "shortlist" ]; then
else
echo -e ${taskList}
fi
elif [ -e "sgc-core/modules/$1.sh" ]; then
./sgc-core/modules/$1.sh
elif [ -e "sgc-core/core/modules/$1.sh" ]; then
./sgc-core/core/modules/$1.sh
elif [ -e "./sgc-scripts/$1.sh" ]; then
./sgc-scripts/$1.sh
elif [ -e "./sgc-core/core/modules/$1.js" ]; then
......
'use strict';
const exec = require('child_process').exec,
settings = require('../../gulp/settings'),
chalk = require('chalk');
console.log(`${chalk.bold(chalk.yellow('Heads up:'))} ${chalk.yellow('this feature is still experimental!')}`);
exec(`node ./sgc-core/node_modules/lighthouse/lighthouse-cli/index.js --chrome-flags="--ignore-certificate-errors" ${settings.getConfig().browsersync.url} --view`);
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment