Skip to content

Commit fd91b83

Browse files
authored
Merge pull request #19100 from ckeditor/commercial/8311-stabilize-web-crawler
Stabilize web crawler
2 parents d3f3187 + dfb5025 commit fd91b83

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
"docs:api": "node scripts/docs/build-api-docs.mjs",
109109
"docs:ckeditor5": "node scripts/docs/build-ckeditor-packages.mjs",
110110
"docs:content-styles": "node -e \"import( './scripts/docs/build-content-styles.mjs' ).then( m => m.default() );\"",
111-
"docs:serve": "ws --directory ./build/docs/ --compress --http2 --port 8080",
111+
"docs:serve": "ws --directory ./build/docs/ --compress --https --port 8080",
112112
"docs:verify": "node ./scripts/web-crawler/index.mjs --docs",
113113
"docs:lint": "node scripts/vale/vale.mjs",
114114
"docs:vale": "vale",

scripts/web-crawler/index.mjs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,12 @@ function parseArguments( args ) {
6464
'-u', 'https://fake.ckeditor.com:8080/ckeditor5/latest/',
6565
'-e', '/ckfinder/',
6666
'-e', '/api/',
67-
'-e', '/assets/',
68-
'-c', DEFAULT_CONCURRENCY,
69-
'-t', DEFAULT_TIMEOUT
67+
'-e', '/assets/'
7068
], config );
7169

7270
const defaultOptionsForManual = minimist( [
7371
'-u', 'http://localhost:8125/',
74-
'-d', 1,
75-
'-c', DEFAULT_CONCURRENCY,
76-
'-t', DEFAULT_TIMEOUT * 2
72+
'-d', 1
7773
], config );
7874

7975
const options = {};
@@ -99,7 +95,7 @@ function parseArguments( args ) {
9995
depth: options.depth ? Number( options.depth ) : Infinity,
10096
exclusions: options.exclusions ? toArray( options.exclusions ).filter( exclusion => exclusion.length > 0 ) : [],
10197
timeout: options.timeout ? Number( options.timeout ) : DEFAULT_TIMEOUT,
102-
concurrency: options.concurrency ? Number( options.concurrency ) : 1,
98+
concurrency: options.concurrency ? Number( options.concurrency ) : Math.min( DEFAULT_CONCURRENCY, 12 ),
10399
silent: options.silent,
104100
ignoreHTTPSErrors: true
105101
};

0 commit comments

Comments
 (0)