-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Dennis Rosenbaum edited this page Sep 8, 2024
·
7 revisions
This template project can be used for creating new MagicMirror² modules.
This wiki will give you an in depth overview of how to get started.
- Click here to create a new MagicMirror² module based on this template
- Select an owner of the new MagicMirror² module
- Give your module a name, the naming convention is PascalCase and prefix with MMM, like so:
MMM-FooBar, in this wiki we call this yourmodule name - Choose whether you want this to be a public or private repository
- Click on Create repository to create the module
Example
- Replace all instances of
MMM-Templatewith your module name - In
package.jsonmake the module name lowercase - Replace all instances of
[GitHub url]with your GitHub url, like so:https://github.com/Dennis-Rosenbaum/MMM-Template - Replace all instances of
[Module description]with the description of your MagicMirror² module - Replace all instances of
[Author]with your name, like so:Dennis Rosenbaum - In
MMM-Template.js, replacetemplate.csswith your module name lowercase and without the prefix, like so:foo-bar.css - Rename the file
template.cssto the same name as the previous step - Rename the file
MMM-Template.jsto your module name - Start building your awesome MagicMirror² module