Skip to content

Commit 207b542

Browse files
committed
Merge branch 'master' of https://github.com/krausest/js-framework-benchmark into mutraction
2 parents 2f48c72 + 4a1798e commit 207b542

File tree

144 files changed

+19095
-7019
lines changed

Some content is hidden

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

144 files changed

+19095
-7019
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ You can build all frameworks by issuing:
288288

289289
```
290290
cd ..
291-
npm run build-prod
291+
npm run rebuild-all
292292
```
293293

294294
After downloading the whole internet it starts building it. Basically there should be no errors during the build, but I can't guarantee that the dependencies won't break.
@@ -564,11 +564,14 @@ Thanks to Baptiste Augrain for making the benchmarks more sophisticated and addi
564564
565565
Frameworks without significant activity on github or npm for more than a year will be removed (_automatic commits like dependabot and minor updates, like docs editions, are ignored_).
566566
567+
## 2023-12-10
568+
The following frameworks were archived after chrome 120. Their last results are included in [chrome 120 results](https://krausest.github.io/js-framework-benchmark/2023/table_chrome_120.0.6099.62.html).
569+
- [x] petite-vue
570+
567571
## 2023-11-07
568572
The following frameworks were archived after chrome 119. Their last results are included in [chrome 119 results](https://krausest.github.io/js-framework-benchmark/2023/table_chrome_119.0.6045.105.html).
569573
- [x] sifrr
570574
571-
572575
## 2023-10-22
573576
The following frameworks were archived after chrome 118. Their last results are included in [chrome 118 results](https://krausest.github.io/js-framework-benchmark/2023/table_chrome_118.0.5993.70.html).
574577
- [x] 1more

broken-frameworks/keyed/mikado/.gitignore

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

broken-frameworks/keyed/mikado/package.json

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

broken-frameworks/keyed/mikado/src/main.js

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

broken-frameworks/keyed/mikado/src/template/app.html

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

broken-frameworks/non-keyed/stem/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# stemjs-demo
2-
This is a demo project to learn StemJS https:/stemjs.org
2+
This is a demo project to learn StemJS https://stemjs.org
33
`Node` and `npm` need to be installed to be able to build this project.
44
In order to compile the source, you need to have `Rollup` and `Babel` installed.
55

cli/check-obsolete.js

Lines changed: 10 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ const frameworks = getFrameworks();
2020
*/
2121
function findDuplicateFrameworks(frameworks) {
2222
const names = frameworks.map((framework) => framework.name); // Creates an array with framework names only
23-
const duplicateNames = names.filter(
24-
(name, index) => names.indexOf(name) !== index,
25-
); // Filters out repetitive framework names
23+
const duplicateNames = names.filter((name, index) => names.indexOf(name) !== index); // Filters out repetitive framework names
2624

2725
return duplicateNames;
2826
}
@@ -59,11 +57,7 @@ function maybeObsolete(packageName) {
5957
}
6058

6159
const now = new Date();
62-
const obsoleteDate = new Date(
63-
now.getFullYear() - 1,
64-
now.getMonth(),
65-
now.getDay(),
66-
);
60+
const obsoleteDate = new Date(now.getFullYear() - 1, now.getMonth(), now.getDay());
6761

6862
const modifiedDate = new Date(timeData.modified);
6963
const isObsolete = modifiedDate < obsoleteDate;
@@ -72,7 +66,7 @@ function maybeObsolete(packageName) {
7266
return { isObsolete, lastUpdate: formattedDate, packageName };
7367
} catch (error) {
7468
console.error(
75-
`Failed to execute npm view for ${packageName}. Error Code ${error.status} and message: ${error.message}`,
69+
`Failed to execute npm view for ${packageName}. Error Code ${error.status} and message: ${error.message}`
7670
);
7771
return { isObsolete: false, lastUpdate: null, packageName };
7872
}
@@ -95,15 +89,12 @@ function checkObsoleteFrameworks(options) {
9589
const packageJSONPath = path.join(frameworkPath, "package.json");
9690

9791
if (!fs.existsSync(packageJSONPath)) {
98-
missingPackageWarnings.push(
99-
`WARN: skipping ${type}/${name} since there's no package.json`,
100-
);
92+
missingPackageWarnings.push(`WARN: skipping ${type}/${name} since there's no package.json`);
10193
continue;
10294
}
10395

10496
const packageJSON = JSON.parse(fs.readFileSync(packageJSONPath, "utf-8"));
105-
const mainPackages =
106-
packageJSON?.["js-framework-benchmark"]?.frameworkVersionFromPackage;
97+
const mainPackages = packageJSON?.["js-framework-benchmark"]?.frameworkVersionFromPackage;
10798

10899
if (!mainPackages) {
109100
manualChecks.push(`${type}/${name} has no frameworkVersionFromPackage`);
@@ -121,35 +112,25 @@ function checkObsoleteFrameworks(options) {
121112
console.log(`Results for ${type}/${name} ${isPackageObsolete}`);
122113
}
123114

124-
const anyPackageObsolete = isPackageObsolete.some(
125-
(packageFramework) => packageFramework.isObsolete,
126-
);
115+
const anyPackageObsolete = isPackageObsolete.some((packageFramework) => packageFramework.isObsolete);
127116

128117
if (anyPackageObsolete) {
129118
const formattedPackages = isPackageObsolete
130119
.map((result) => `${result.packageName}:${result.lastUpdate}`)
131120
.join(", ");
132121

133-
console.log(
134-
`Last npm update for ${type}/${name} - ${mainPackages} is older than a year: ${formattedPackages}`,
135-
);
122+
console.log(`Last npm update for ${type}/${name} - ${mainPackages} is older than a year: ${formattedPackages}`);
136123
continue;
137124
}
138125

139126
if (DEBUG) {
140-
console.log(
141-
`Last npm update for ${type}/${name} ${mainPackages} is newer than a year`,
142-
);
127+
console.log(`Last npm update for ${type}/${name} ${mainPackages} is newer than a year`);
143128
}
144129
}
145130

146-
if (missingPackageWarnings.length > 0)
147-
console.warn("\nWarnings:\n" + missingPackageWarnings.join("\n"));
131+
if (missingPackageWarnings.length > 0) console.warn("\nWarnings:\n" + missingPackageWarnings.join("\n"));
148132
if (manualChecks.length > 0)
149-
console.warn(
150-
"\nThe following frameworks must be checked manually\n" +
151-
manualChecks.join("\n"),
152-
);
133+
console.warn("\nThe following frameworks must be checked manually\n" + manualChecks.join("\n"));
153134
}
154135

155136
export { checkObsoleteFrameworks };

cli/cleanup.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
import * as fs from "node:fs";
22
import path from "node:path";
33

4-
const filesToDelete = [
5-
"package-lock.json",
6-
"yarn-lock",
7-
"dist",
8-
"elm-stuff",
9-
"bower_components",
10-
"node_modules",
11-
];
4+
const filesToDelete = ["package-lock.json", "yarn-lock", "dist", "elm-stuff", "bower_components", "node_modules"];
125

136
/**
147
* Delete specified files in the framework directory

cli/configure-styles.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ async function copyAndGenerateSharedStyles(sourceCss, mainCss) {
1212
const sharedStylesContent = `<dom-module id="shared-styles"><template><style>${mainCssContent}</style></template></dom-module>`;
1313

1414
// Write shared-styles.html
15-
await fs.promises.writeFile(
16-
path.join("polymer-v2.0.0-non-keyed", "src", "shared-styles.html"),
17-
sharedStylesContent,
18-
);
15+
await fs.promises.writeFile(path.join("polymer-v2.0.0-non-keyed", "src", "shared-styles.html"), sharedStylesContent);
1916
}
2017

2118
/**
@@ -37,13 +34,10 @@ async function configureStyles(options) {
3734
if (bootstrap) {
3835
await copyAndGenerateSharedStyles(
3936
path.join("css", "useOriginalBootstrap.css"),
40-
path.join("css", "bootstrap", "dist", "css", "bootstrap.min.css"),
37+
path.join("css", "bootstrap", "dist", "css", "bootstrap.min.css")
4138
);
4239
} else {
43-
await copyAndGenerateSharedStyles(
44-
path.join("css", "useMinimalCss.css"),
45-
path.join("css", "useMinimalCss.css"),
46-
);
40+
await copyAndGenerateSharedStyles(path.join("css", "useMinimalCss.css"), path.join("css", "useMinimalCss.css"));
4741
}
4842
} catch (error) {
4943
console.error("An error occurred:", error.message);

cli/copy.js

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function shouldInclude(name) {
1717
const isTargetWeb = name.includes("/target/web");
1818

1919
console.log(
20-
`File: ${name}\nIs Binding Scala: ${isBindingScala}\nIs Target: ${isTarget}\nIs Target Web: ${isTargetWeb}`,
20+
`File: ${name}\nIs Binding Scala: ${isBindingScala}\nIs Target: ${isTarget}\nIs Target Web: ${isTargetWeb}`
2121
);
2222

2323
if (isTarget) {
@@ -72,15 +72,10 @@ function copyFolderRecursiveSync(sourcePath, destinationPath) {
7272
*/
7373
function processDirectories() {
7474
const directories = fs.readdirSync(".");
75-
const nonHiddenDirectories = directories.filter(
76-
(directory) => !directory.startsWith("."),
77-
);
75+
const nonHiddenDirectories = directories.filter((directory) => !directory.startsWith("."));
7876

7977
for (const directory of nonHiddenDirectories) {
80-
if (
81-
fs.statSync(directory).isDirectory() &&
82-
!rootExclude.includes(directory)
83-
) {
78+
if (fs.statSync(directory).isDirectory() && !rootExclude.includes(directory)) {
8479
const dirPath = path.join("dist", directory);
8580
console.log(dirPath);
8681
fs.mkdirSync(dirPath);
@@ -97,10 +92,7 @@ function copyProjectToDist() {
9792
fs.rmSync("dist", { force: true, recursive: true });
9893
fs.mkdirSync(path.join("dist", "webdriver-ts"), { recursive: true });
9994

100-
fs.copyFileSync(
101-
path.join("webdriver-ts", "table.html"),
102-
path.join("dist", "webdriver-ts", "table.html"),
103-
);
95+
fs.copyFileSync(path.join("webdriver-ts", "table.html"), path.join("dist", "webdriver-ts", "table.html"));
10496
fs.copyFileSync("index.html", path.join("dist", "index.html"));
10597

10698
processDirectories();

0 commit comments

Comments
 (0)