You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With `npm start` you can call up a cli menu that offers you options for execution.
77
-
78
-
You can run all scripts in the right order by `node --run all`.
79
-
80
-
_Note_: Running all scripts requires a lot of time (> 10 min) and space on your hard drive (> 2 GB).
81
-
82
-
### create_module_list.js
83
-
84
-
This script reads the GitHub info of the modules from the respective GitHub repo and writes it to a json file.
85
-
86
-
### updateRepositoryApiData.js
87
-
88
-
This script reads data, such as the number of stars, via the GitHub API for a few modules.
89
-
90
-
### get_modules.py
91
-
92
-
This script reads the module list (created by the script before) and clones all modules.
93
-
94
-
_Note_: This script takes a long time (> 10 min) to download all modules and also takes up a lot of space on your hard drive (> 2 GB).
95
-
96
-
### expand_module_list_with_repo_data.js
97
-
98
-
This script expands the module list with information from the `package.json` files from the modules (if available).
99
-
100
-
The script also adds an image. To do this, it searches the module's repo for an image that contains "screenshot" or "example" in it's name. If it doesn't find anything like that, it takes the first image it finds in the repo.
101
-
102
-
_Note_: Images will only be included if a free license is specified in the `package.json`.
103
-
104
-
### check_modules_js.js
105
-
106
-
This script does some additional checks on the modules like if the main js file is named correctly or minified.
107
-
108
-
### check_modules.py
109
-
110
-
This script goes through all cloned modules and performs various checks. The result is written to the files [`result.html`](https://modules.magicmirror.builders/result.html) and [`modules.json`](./website/data/modules.json).
111
-
112
-
### Special script: create_own_module_list.js
113
-
114
-
This script is for developers who want to test their own modules themselves. It can also be used to test other branches.
115
-
116
-
This script replaces the first script `create_module_list.js` for this case.
117
-
118
-
How can you use it?
119
-
120
-
1. Write the module or modules you want to test in a new file [`ownModuleList.json`](ownModuleList.json) (use `ownModuleList_sample.json` as template). The only obligatory field is "url", but you can also enter a "branch".
121
-
2. Execute `node --run ownList`.
122
-
3. You can see the result in [`result.html`](https://modules.magicmirror.builders/result.html).
123
-
124
-
## Running the produced container image locally
125
-
126
-
We are running this project as container. For testing the produced container you can run it locally by executing
127
-
128
-
```bash
129
-
docker run --rm -p 8080:8080 ghcr.io/magicmirrororg/magicmirror-3rd-party-modules:main
130
-
```
131
-
132
-
You can access the content with a webbrowser under http://localhost:8080.
60
+
Contributor setup instructions—including required runtimes and installation steps—now live in the [Contributing Guide](docs/CONTRIBUTING.md). Casual readers can skip straight to the module catalogue.
133
61
134
62
## Ideas / To do
135
63
136
64
See [GitHub issues](https://github.com/MagicMirrorOrg/MagicMirror-3rd-Party-Modules/issues) for ideas and tasks.
137
65
138
-
Track pipeline modernization progress in [`pipeline-refactor-roadmap.md`](pipeline-refactor-roadmap.md).
@@ -146,14 +72,6 @@ Track pipeline modernization progress in [`pipeline-refactor-roadmap.md`](pipeli
146
72
- Move screenshot to repository: <https://github.com/joschi27/MMM-flatastic/issues/3>
147
73
- Reference to the check results: <https://github.com/Fabrizz/MMM-OnSpotify/issues/48>
148
74
149
-
### Discarded ideas
150
-
151
-
- New test: Is `moment` in use? <https://momentjs.com/docs/#/-project-status/>.
152
-
-`moment` is not really dead yet (it is no longer being developed, but it is still being maintained), so there is no urgent reason to change now. This is a test for the future when the Temporal API is ready.
153
-
- Use data from GitHub API: <https://api.github.com/repos/MagicMirrorOrg/MagicMirror>
154
-
- Is there also a GitLab API? Yes, example: <https://gitlab.com/khassel/MMM-RepoStats/-/blob/master/node_helper.js?ref_type=heads#L116>
155
-
- Unfortunately, the queries are blocked relatively quickly when we query information from each module via the API.
156
-
157
75
## License
158
76
159
77
This project is licensed under the MIT License - see the [LICENSE](LICENSE.md) file for details.
0 commit comments