Skip to content

Commit a266054

Browse files
committed
Merge branch 'master' of github.com:krausest/js-framework-benchmark
2 parents 821b811 + df9fb6c commit a266054

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"install-server": "cd server && npm ci",
2020
"install-webdriver-ts-results": "cd webdriver-ts-results && npm ci",
2121
"install-local": "npm run install-webdriver-ts && npm run install-webdriver-ts-results && npm run install-server",
22-
"rebuild": "node rebuild-single.js --",
23-
"rebuild-ci": "node rebuild-single.js -- --ci",
22+
"rebuild": "node rebuild-single.js",
23+
"rebuild-ci": "node rebuild-single.js --ci",
2424
"zip": "node cli.js zip",
2525
"format": "prettier . \"!(broken-frameworks|frameworks)/**/*\" -w",
2626
"lint": "eslint . --ignore-pattern \"/broken-frameworks/\" --ignore-pattern \"/frameworks/\""

rebuild-build-single.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ const filesToDelete = [
3737
"bower_components",
3838
"node_modules",
3939
"output",
40-
useCi && "package-lock.json",
41-
].filter(Boolean);
40+
].concat(useCi ? [] : ["package-lock.json"]);
4241

4342
/*
4443
rebuild-single.js [--ci] [keyed/framework1 ... non-keyed/frameworkN]

rebuild-check-single.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ function runCommand(command, cwd = undefined) {
3939

4040
try {
4141
const benchCmd = `npm run bench -- --headless true --smoketest true ${frameworkNames}`;
42-
runCommand(benchCmd);
42+
runCommand(benchCmd, "webdriver-ts");
4343

4444
const keyedCmd = `npm run isKeyed -- --headless true ${frameworkNames}`;
45-
runCommand(keyedCmd);
45+
runCommand(keyedCmd, "webdriver-ts");
4646

4747
console.log("rebuild-check-single.js finished");
4848
console.log("All checks are fine!");

rebuild-single.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const frameworks = args._.filter((arg) => !arg.startsWith("--"));
2525
const frameworksNames = frameworks.join(" ");
2626

2727
console.log(
28-
"args",
28+
"rebuild-single.js args",
2929
args,
3030
"ci",
3131
useCi,
@@ -64,7 +64,7 @@ try {
6464
process.exit(1);
6565
}
6666

67-
const buildCmd = `node rebuild-build-single.js ${frameworksNames}`;
67+
const buildCmd = `node rebuild-build-single.js ${useCi ? '--ci' : ''} ${frameworksNames}`;
6868
runCommand(buildCmd);
6969

7070
const checkCmd = `node rebuild-check-single.js ${frameworksNames}`;

0 commit comments

Comments
 (0)