File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -54,16 +54,21 @@ type Exports = {
54
54
export default Exports ;
55
55
```
56
56
57
- When adding a new module, or adding types to an existing module:
57
+ When adding a new module:
58
+
59
+ - ` node generate.js imports --write ` to write the new ` src/modules.ts `
60
+
61
+ When adding types to a module:
58
62
59
63
- Add its path and a name to ` generate.js `
60
64
- Name should be the last part of the path except in cases where it breaks syntax (e.g. ` highlight.js ` -> ` HighlightJS ` )
61
65
- Mappings for CSS class names should replace ` .css ` with ` CSS `
62
66
- ` node generate.js types --write ` to generate the new type index
63
- - Format with Prettier
64
67
- ` node generate.js declares "@moonlight-mod/wp/" > ../moonlight/packages/types/src/mappings.d.ts ` to update import statements in moonlight
65
68
- You don't have to do this unless you're a moonlight core developer
66
69
70
+ Remember to format with Prettier!
71
+
67
72
## Finding names
68
73
69
74
Names in the mappings repo are a combination of:
You can’t perform that action at this time.
0 commit comments