Store result
This commit is contained in:
parent
0713520e04
commit
8d37f3b683
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
const fs = require('fs');
|
||||
const cli = require('../lib/cli/cli');
|
||||
const sitespeed = require('../lib/sitespeed');
|
||||
|
||||
|
|
@ -15,6 +16,10 @@ async function run(options) {
|
|||
throw new Error('Errors while running:\n' + result.errors.join('\n'));
|
||||
}
|
||||
|
||||
if (options.storeResult) {
|
||||
fs.writeFileSync('result.json', JSON.stringify(result));
|
||||
}
|
||||
|
||||
if (
|
||||
parsed.options.budget &&
|
||||
Object.keys(result.budgetResult.failing).length > 0
|
||||
|
|
|
|||
Loading…
Reference in New Issue