Skip to content

Commit 85be585

Browse files
committed
Add project structure overview to README
1 parent 82d3609 commit 85be585

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,20 @@ All the index data is stored in `index_data`, but will not be tracked by git.
4848
Make sure to build the index after a fresh clone, otherwise Next might not
4949
build specific pages (file `index_data/x.json` not found).
5050

51+
## Project Structure Overview
52+
53+
- `pages`: All Next pages. Those are written in JS / MDX, some pages are re-exporting ReScript based pages from `src/MyPage.res`
54+
- `styles`: Contains all extra CSS that cannot be expressed with Tailwind
55+
- `src`: Contains all ReScript related code for the UI
56+
- `/`: Within `src`, you will find all ReScript based Next pages that are re-exported in the `pages` directory
57+
- `/bindings`: (Zero-cost) bindings to JS libraries / apis
58+
- `/common`: ReScript modules that are neither `bindings`, nor `components`
59+
- `/components`: ReScript / React components used by multiple pages
60+
- `/ffi`: (to be deprecated) Plain JS that some ReScript code binds to (use `raw` statements for that)
61+
- `/layouts`: All Next layouts used in our pages. Check out `src/common/App.res` for mapping layouts to routes
62+
- `scripts`: Contains a mix of JS / ReScript based scripts that do all kind of code generation / code introspection logic
63+
- `tailwind.config.js`: Contains our Tailwind configuration for all the low level design tokens
64+
5165
## Run Tests
5266

5367
### Markdown Codeblock Tests

0 commit comments

Comments
 (0)