Skip to content

Commit b48d686

Browse files
committed
UPdate fork from origin
2 parents cb933fa + ea1cf06 commit b48d686

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+2773
-2746
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,3 +268,12 @@ Tip: If you start with your implementation do not take vanillajs as the referenc
268268
This work is derived from a benchmark that Richard Ayotte published on https://gist.github.com/RichAyotte/a7b8780341d5e75beca7 and adds more framework and more operations. Thanks for the great work.
269269
270270
Thanks to Baptiste Augrain for making the benchmarks more sophisticated and adding frameworks.
271+
272+
## History
273+
Frameworks without activity on github or npm for more than a year will be removed.
274+
The following frameworks were removed 9/16/2019:
275+
- [x] angular-light Last commit Nov 30, 2017
276+
- [x] nx. Last commit Feb 2017
277+
- [x] maik-h Last commit Dec 15, 2017
278+
- [x] rivets Last commit Oct 22, 2016
279+
- [x] tsers. Last commit Jun 19, 2016

build.js

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

7+
/*
8+
The restart parameter can be used to rebuily only some of the frameworks.
9+
One can either rebuild alll frameworks where the parameter matches the prefix of a
10+
framework name, no matter if keyed or non-keyed:
11+
--restartWith angu
12+
(Matches keyed and non-keyed angular, angularjs, angular-ivy, ...)
13+
Or it can be restrict matching to keyed or non-keyed frameworks:
14+
--restartWith keyed/angu
15+
(Matches only keyed angular, angularjs, angular-ivy, ...)
16+
The distinction is made by checking whether a slash is contained in the parameter
17+
18+
Changed behaviour: Builds only the frameworks. To build webdriver-ts or the results use the npm run install-local task
19+
*/
20+
721
let args = yargs(process.argv)
8-
.usage("npm run build [-- [--check] [--skipIrrelevant] [--restartWith] [--benchmarks_only]]")
22+
.usage("npm run build [-- [--check] [--skipIrrelevant] [--restartWith]]")
923
.help('help')
1024
.boolean('check')
11-
.boolean('benchmarks_only')
1225
.boolean('skipIrrelevant')
1326
.string('restartWith')
1427
.argv;
1528

29+
console.log("ARGS", process.argv);
30+
1631
var referenceBranch = "origin/master";
1732

1833
var restartWithFramework = args.restartWith || '';
1934

20-
var core = args.benchmarks_only ? [] : ["webdriver-ts", "webdriver-ts-results"].map(f => ["", f]);
21-
2235
var frameworks = [].concat(
23-
fs.readdirSync('./frameworks/keyed').map(f => ['frameworks/keyed/', f]),
24-
fs.readdirSync('./frameworks/non-keyed').map(f => ['frameworks/non-keyed/', f]));
36+
fs.readdirSync('./frameworks/keyed').map(f => ['keyed', f]),
37+
fs.readdirSync('./frameworks/non-keyed').map(f => ['non-keyed', f]));
2538

26-
var notRestarter = ([_, name]) => !name.startsWith(restartWithFramework || undefined);
27-
var [skippable, buildable] = !restartWithFramework
28-
? [[],
29-
frameworks]
30-
: [_.takeWhile(frameworks, notRestarter),
31-
_.dropWhile(frameworks, notRestarter)];
39+
var notRestarter = ([dir, name]) => {
40+
if (!restartWithFramework) return false;
41+
if (restartWithFramework.indexOf("/")>-1) {
42+
return !(dir+"/"+name).startsWith(restartWithFramework);
43+
} else {
44+
return !name.startsWith(restartWithFramework);
45+
}
46+
};
47+
48+
let skippable = _.takeWhile(frameworks, notRestarter);
49+
let buildable = _.slice(frameworks, skippable.length);
3250

33-
var relevant = args.skipIrrelevant && !_.some(core, isDifferent)
51+
var relevant = args.skipIrrelevant
3452
? _.filter(buildable, isDifferent)
3553
: buildable;
3654

37-
_.each(skippable, ([dir,name]) => console.log("*** Skipping " + dir + name));
55+
_.each(skippable, ([dir,name]) => console.log("*** Skipping " + dir + "/" + name));
3856

39-
_.each([].concat(relevant, core), function([dir,name]) {
40-
let fullname = dir + name;
57+
_.each(relevant, function([dir,name]) {
58+
let fullname = path.join("frameworks", dir, name);
4159
if(fs.statSync(fullname).isDirectory() && fs.existsSync(path.join(fullname, "package.json"))) {
4260
console.log("*** Executing npm install in "+fullname);
4361
exec('npm install', {

frameworks/keyed/angular-light/.babelrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

frameworks/keyed/angular-light/index.html

Lines changed: 0 additions & 57 deletions
This file was deleted.

frameworks/keyed/angular-light/package.json

Lines changed: 0 additions & 23 deletions
This file was deleted.

frameworks/keyed/angular-light/src/Main.js

Lines changed: 0 additions & 129 deletions
This file was deleted.

frameworks/keyed/angular-light/webpack.config.js

Lines changed: 0 additions & 41 deletions
This file was deleted.

frameworks/keyed/maik-h/index.html

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)