Skip to content

Commit dd95e9f

Browse files
committed
updated results for attodom, solid, redom, solid, stage0
1 parent 1a7effb commit dd95e9f

File tree

5 files changed

+127
-124
lines changed

5 files changed

+127
-124
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

rebuild.js

Lines changed: 29 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,39 @@ var fs = require('fs');
44
var path = require('path');
55
var yargs =require('yargs');
66

7-
let args = yargs(process.argv)
8-
.array("path").argv;
7+
let frameworks = process.argv.length<=2 ? [] : process.argv.slice(2,process.argv.length);
98

10-
for (let framework of args.path) {
11-
let dir = 'frameworks/'+framework;
12-
console.log("rebuilding "+framework);
13-
if (!fs.existsSync(dir)) console.log ("ERROR: directory "+dir+" not found");
14-
else {
15-
console.log("running rm -rf package-lock.json yarn.lock dist elm-stuff bower_components node_modules");
16-
try {
17-
exec('rm -rf package-lock.json yarn.lock dist elm-stuff bower_components node_modules', {
9+
if (frameworks.length === 0) {
10+
console.log("usage: rebuild.js [directory1, directory2, ...]");
11+
} else {
12+
for (let framework of frameworks) {
13+
let dir = 'frameworks/'+framework;
14+
console.log("rebuilding "+framework);
15+
if (!fs.existsSync(dir)) console.log ("ERROR: directory "+dir+" not found");
16+
else {
17+
console.log("running rm -rf package-lock.json yarn.lock dist elm-stuff bower_components node_modules");
18+
try {
19+
exec('rm -rf package-lock.json yarn.lock dist elm-stuff bower_components node_modules', {
20+
cwd: dir,
21+
stdio: 'inherit'
22+
});
23+
} catch {}
24+
console.log("running npm install && npm run build-prod");
25+
exec('npm install && npm run build-prod', {
1826
cwd: dir,
1927
stdio: 'inherit'
2028
});
21-
} catch {}
22-
console.log("running npm install && npm run build-prod");
23-
exec('npm install && npm run build-prod', {
24-
cwd: dir,
29+
}
30+
}
31+
exec('npm run index', {
32+
cwd: 'webdriver-ts',
33+
stdio: 'inherit'
34+
});
35+
let frameworkNames = frameworks.map(f => f.split("/")[1]).join(" ");
36+
if (frameworkNames.length>1) {
37+
exec('npm run isKeyed -- --framework '+frameworkNames, {
38+
cwd: 'webdriver-ts',
2539
stdio: 'inherit'
2640
});
2741
}
28-
}
29-
exec('npm run index', {
30-
cwd: 'webdriver-ts',
31-
stdio: 'inherit'
32-
});
33-
let frameworkNames = args.path.map(f => f.split("/")[1]).join(" ");
34-
exec('npm run isKeyed -- --framework '+frameworkNames, {
35-
cwd: 'webdriver-ts',
36-
stdio: 'inherit'
37-
});
42+
}

0 commit comments

Comments
 (0)