Skip to content

Commit 6a020fe

Browse files
feat: enhance Repository API data fetching with support for multiple repository hosting services
1 parent 07ebd08 commit 6a020fe

File tree

6 files changed

+343
-224
lines changed

6 files changed

+343
-224
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ _Note_: Running all scripts requires a lot of time (> 10 min) and space on your
8383

8484
This script reads the GitHub info of the modules from the respective GitHub repo and writes it to a json file.
8585

86-
### updateGitHubApiData.js
86+
### updateRepositoryApiData.js
8787

8888
This script reads data, such as the number of stars, via the GitHub API for a few modules.
8989

cspell.config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@
66
"axios",
77
"bergfex",
88
"bugsounet",
9+
"codeberg",
910
"depandabot",
1011
"dependencie",
1112
"fontawesome",
13+
"Gitea",
1214
"hoster",
1315
"Kristjan",
1416
"magicmirror",
17+
"mainbranch",
1518
"marcomerens",
1619
"mmpm",
1720
"MMRIZE",

eslint.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,19 @@ export default defineConfig([
5353
"@stylistic/quote-props": ["error", "as-needed"],
5454
camelcase: "off",
5555
complexity: "off",
56+
"default-case": "off",
5657
"func-style": "off",
57-
"import-x/no-unresolved": ["error", {ignore: ["eslint/config", "logger"]}],
5858
"id-length": ["error", {exceptions: ["a", "b"]}],
59+
"import-x/no-unresolved": ["error", {ignore: ["eslint/config", "logger"]}],
60+
"init-declarations": "off",
61+
"max-depth": ["warn", 5],
5962
"max-lines": ["warn", 500],
6063
"max-lines-per-function": ["warn", 150],
6164
"max-params": ["warn", 5],
6265
"max-statements": ["warn", 60],
6366
"no-await-in-loop": "off",
6467
"no-console": "off",
68+
"no-inline-comments": "off",
6569
"no-magic-numbers": "off",
6670
"no-param-reassign": "off",
6771
"no-ternary": "off",

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@
2626
},
2727
"scripts": {
2828
"start": "ntl --autocomplete --size 50 --exclude start lint* prepare test automated",
29-
"all": "node --run createModuleList && node --run updateGitHubData && node --run getModules && node --run expandModuleList && node --run checkModulesJs && node --run checkModules",
29+
"all": "node --run createModuleList && node --run updateRepositoryData && node --run getModules && node --run expandModuleList && node --run checkModulesJs && node --run checkModules",
3030
"createModuleList": "node scripts/create_module_list.js",
31-
"updateGitHubData": "node scripts/updateGitHubApiData.js",
31+
"updateRepositoryData": "node scripts/updateRepositoryApiData.js",
3232
"getModules": "python3 scripts/get_modules.py",
3333
"expandModuleList": "node scripts/expand_module_list_with_repo_data.js",
3434
"checkModulesJs": "node scripts/check_modules_js.js",
3535
"checkModules": "python3 scripts/check_modules.py",
36-
"ownList": "node create_own_module_list.js && node --run updateGitHubData && node --run getModules && node --run expandModuleList && node --run checkModulesJs && node --run checkModules",
36+
"ownList": "node create_own_module_list.js && node --run updateRepositoryData && node --run getModules && node --run expandModuleList && node --run checkModulesJs && node --run checkModules",
3737
"lint": "eslint && prettier --check . && cspell .",
3838
"lint:fix": "eslint --fix && prettier . --write . && cspell .",
3939
"prepare": "husky",
@@ -77,7 +77,7 @@
7777
"descriptions": {
7878
"all": "Run all scripts (1 till 5) on all modules. Requires a lot of time and storage space!",
7979
"createModuleList": "Script 1: Convert the official module list from the wiki into a json file.",
80-
"updateGitHubData": "Script 2: Update the JSON file that collects the GitHub information of the modules.",
80+
"updateRepositoryData": "Script 2: Update the JSON file that collects the GitHub information of the modules.",
8181
"getModules": "Script 3: Get all modules with `git cone`. Requires a lot of time and storage space!",
8282
"expandModuleList": "Script 4: Extend the module list with information from the package.json. And get an image if one is available and the license is okay.",
8383
"checkModulesJs": "Script 5: Perform some checks with a js script.",

scripts/updateGitHubApiData.js

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

0 commit comments

Comments
 (0)