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
This file contains suggested best practices for creating a README file for your MagicMirror² module.
1
+
# Best Practices for README Files
2
2
3
-
# Installation Instructions
3
+
This file contains suggested best practices for creating a README file for your MagicMirror² module.
4
+
5
+
## Installation Instructions
4
6
5
7
Your README file should have an "Installation" section that includes a code block that can be pasted into a user's terminal to fully install your module. Here is a good example of an install code block:
* The code block should not be broken up into multiple separate blocks for each line of code so that users can copy and paste the entire block into their terminal and execute the install with one click.
30
-
* The opening `` ``` `` of your code block should be followed by "`sh`" or "`bash`" so that the code block is styled as shell script.
31
-
* If your module has required dependencies, `npm ci` is preferable to `npm install` in many circumstances because it will repeatably instruct users' machines not to recreate the `package-lock.json` file.
32
-
* Adding `--omit=dev` to the `npm ci` or `npm install` command will instruct users' machines not to install developer dependencies that are unneeded by most users, which will save on install time and disk space.
31
+
- The code block should not be broken up into multiple separate blocks for each line of code so that users can copy and paste the entire block into their terminal and execute the install with one click.
32
+
- The opening ` ``` ` of your code block should be followed by "`sh`" or "`bash`" so that the code block is styled as shell script.
33
+
- If your module has required dependencies, `npm ci` is preferable to `npm install` in many circumstances because it will repeatably instruct users' machines not to recreate the `package-lock.json` file.
34
+
- Adding `--omit=dev` to the `npm ci` or `npm install` command will instruct users' machines not to install developer dependencies that are unneeded by most users, which will save on install time and disk space.
33
35
34
-
# Update Instructions
36
+
##Update Instructions
35
37
36
38
Your README file should have an "Update" section that includes a code block that can be pasted into a user's terminal to update your module.
37
39
38
-
# Config Instructions
40
+
##Config Instructions
39
41
40
-
Your README file should have a "Config" or "Configuration" section that includes an example config block that can be pasted into user's `config.js` files. Here is a good example of a config code block:
42
+
Your README file should have a "Config" or "Configuration" section that includes an example config block that can be pasted into user's `config.js` files. Here is a good example of a config code block:
41
43
42
-
````
44
+
````markdown
43
45
```js
44
46
{
45
47
module: MMM-MyModule,
@@ -52,8 +54,8 @@ Your README file should have a "Config" or "Configuration" section that includes
52
54
```
53
55
````
54
56
55
-
## Tips
57
+
###Tips
56
58
57
-
* The opening `` ``` `` of your code block should be followed by "`js`" or "`javascript`" so that the code block is styled as javasript.
58
-
* The final `}` should be followed by a `,` so that the block can be copied and pasted straight into users' `config.js` files without throwing errors.
59
-
* The example config should provide a minimal demo configuration that will get your module working if pasted directly into a user's `config.js` file.
59
+
- The opening ` ``` ` of your code block should be followed by "`js`" or "`javascript`" so that the code block is styled as JavaScript.
60
+
- The final `}` should be followed by a `,` so that the block can be copied and pasted straight into users' `config.js` files without throwing errors.
61
+
- The example config should provide a minimal demo configuration that will get your module working if pasted directly into a user's `config.js` file.
"ownList": "node create_own_module_list.js && npm run updateGitHubData && npm run getModules && npm run expandModuleList && npm run checkModulesJs && npm run checkModules",
0 commit comments