Skip to content

Commit

Permalink
More wording changes because I'm dumb
Browse files Browse the repository at this point in the history
  • Loading branch information
NotNite committed Jan 29, 2025
1 parent ccdd0fd commit e15e5db
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/content/docs/dev/mappings.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,21 @@ type Exports = {
export default Exports;
```

When adding a new module, or adding types to an existing module:
When adding a new module:

- `node generate.js imports --write` to write the new `src/modules.ts`

When adding types to a module:

- Add its path and a name to `generate.js`
- Name should be the last part of the path except in cases where it breaks syntax (e.g. `highlight.js` -> `HighlightJS`)
- Mappings for CSS class names should replace `.css` with `CSS`
- `node generate.js types --write` to generate the new type index
- Format with Prettier
- `node generate.js declares "@moonlight-mod/wp/" > ../moonlight/packages/types/src/mappings.d.ts` to update import statements in moonlight
- You don't have to do this unless you're a moonlight core developer

Remember to format with Prettier!

## Finding names

Names in the mappings repo are a combination of:
Expand Down

0 comments on commit e15e5db

Please sign in to comment.