sitespeed.io 37.8.0 → 38.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +87 -71
- package/Dockerfile +2 -2
- package/docs/README.md +10 -0
- package/eslint.config.mjs +3 -14
- package/lib/cli/cli.js +1 -7
- package/lib/plugins/browsertime/index.js +1 -0
- package/lib/support/helpers/get.js +1 -0
- package/npm-shrinkwrap.json +1116 -996
- package/package.json +13 -13
package/docs/README.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Documentation for sitespeed.io
|
|
2
|
+
================
|
|
3
|
+
|
|
4
|
+
First make sure you have Bundler: <code>gem install bundler</code>
|
|
5
|
+
|
|
6
|
+
If you run on a Mac OS make sure you have xcode-select installed: <code>xcode-select --install</code>
|
|
7
|
+
|
|
8
|
+
To run it locally: <code>bundle install && bundle exec jekyll serve --baseurl ''</code>
|
|
9
|
+
|
|
10
|
+
Checkout http://localhost:4000/
|
package/eslint.config.mjs
CHANGED
|
@@ -1,18 +1,7 @@
|
|
|
1
1
|
import prettier from 'eslint-plugin-prettier';
|
|
2
2
|
import unicorn from 'eslint-plugin-unicorn';
|
|
3
3
|
import globals from 'globals';
|
|
4
|
-
import path from 'node:path';
|
|
5
|
-
import { fileURLToPath } from 'node:url';
|
|
6
4
|
import js from '@eslint/js';
|
|
7
|
-
import { FlatCompat } from '@eslint/eslintrc';
|
|
8
|
-
|
|
9
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
10
|
-
const __dirname = path.dirname(__filename);
|
|
11
|
-
const compat = new FlatCompat({
|
|
12
|
-
baseDirectory: __dirname,
|
|
13
|
-
recommendedConfig: js.configs.recommended,
|
|
14
|
-
allConfig: js.configs.all
|
|
15
|
-
});
|
|
16
5
|
|
|
17
6
|
export default [
|
|
18
7
|
{
|
|
@@ -28,11 +17,11 @@ export default [
|
|
|
28
17
|
'test/prepostscripts/*'
|
|
29
18
|
]
|
|
30
19
|
},
|
|
31
|
-
|
|
20
|
+
js.configs.recommended,
|
|
21
|
+
unicorn.configs.recommended,
|
|
32
22
|
{
|
|
33
23
|
plugins: {
|
|
34
|
-
prettier
|
|
35
|
-
unicorn
|
|
24
|
+
prettier
|
|
36
25
|
},
|
|
37
26
|
|
|
38
27
|
languageOptions: {
|
package/lib/cli/cli.js
CHANGED
|
@@ -64,7 +64,7 @@ try {
|
|
|
64
64
|
function validateInput(argv) {
|
|
65
65
|
// Check NodeJS major version
|
|
66
66
|
const fullVersion = process.versions.node;
|
|
67
|
-
const minVersion =
|
|
67
|
+
const minVersion = 20;
|
|
68
68
|
const majorVersion = fullVersion.split('.')[0];
|
|
69
69
|
if (majorVersion < minVersion) {
|
|
70
70
|
return (
|
|
@@ -505,12 +505,6 @@ export async function parseCommandLine() {
|
|
|
505
505
|
describe: 'Collect Contentful Speed Index when you run --visualMetrics.',
|
|
506
506
|
group: 'Browser'
|
|
507
507
|
})
|
|
508
|
-
.option('browsertime.visualMetricsPortable', {
|
|
509
|
-
type: 'boolean',
|
|
510
|
-
default: true,
|
|
511
|
-
describe:
|
|
512
|
-
'Use the portable visual-metrics processing script (no ImageMagick dependencies).'
|
|
513
|
-
})
|
|
514
508
|
.option('browsertime.visualElements', {
|
|
515
509
|
type: 'boolean',
|
|
516
510
|
alias: ['visualElements'],
|