Skip to content

Commit 2e778c7

Browse files
authored
Merge pull request #147 from reason-association/project-cleanup
Project cleanup
2 parents 1f901e6 + cfd445b commit 2e778c7

File tree

219 files changed

+3126
-2819
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

219 files changed

+3126
-2819
lines changed

README.md

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

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

5872
### Markdown Codeblock Tests

_blogposts/2020-08-28-new-rescript-logo.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: |
88
Today, our resident designer Bettina is unveiling to us the fresh new ReScript branding we've been long waiting for. We hope you're as excited about the result as us!
99
---
1010

11-
import Image from "components/Image";
11+
import Image from "src/components/Image";
1212

1313
## Why the Rebranding?
1414

_blogposts/2020-11-17-editor-support-custom-operators-and-more.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description: |
1010
canonical: https://rescript-lang.org/blog/rescript-the-road-ahead
1111
---
1212

13-
import Video from "components/Video"
13+
import Video from "src/components/Video"
1414

1515
## Upcoming Improvements
1616

_blogposts/archive/state-of-reasonml-org-2020-q2-pt1.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description: |
1010
to expect in the future. The first part is an introduction to our project.
1111
---
1212

13-
import Image from "components/Image";
13+
import Image from "src/components/Image";
1414

1515
## Hello World!
1616

_blogposts/archive/state-of-reasonml-org-2020-q2-pt3.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description: |
99
talk about upcoming tools and features.
1010
---
1111

12-
import Image from "components/Image";
12+
import Image from "src/components/Image";
1313

1414
## Future Tools for the Community
1515

_blogposts/archive/state-of-reasonml-org-2020-q2-pt4.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description: |
1010
This is the final part of the series about our vision of a more accessible Reason platform.
1111
---
1212

13-
import Image from "components/Image";
13+
import Image from "src/components/Image";
1414

1515
## It's all Opinions
1616

bindings/IntlDateTimeFormat.js

Lines changed: 0 additions & 143 deletions
This file was deleted.

bindings/IntlDateTimeFormat.res

Lines changed: 0 additions & 71 deletions
This file was deleted.

bindings/Next.js

Lines changed: 0 additions & 42 deletions
This file was deleted.

bindings/NodeGlob.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

bindings/NodeGlob.res

Lines changed: 0 additions & 1 deletion
This file was deleted.

bindings/Worker.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

bsconfig.json

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,14 @@
1515
"ppx-flags": [],
1616
"sources": [
1717
{
18-
"dir": "common"
19-
},
20-
{
21-
"dir": "bindings"
22-
},
23-
{
24-
"dir": "pages",
25-
"subdirs": true
26-
},
27-
{
28-
"dir": "re_pages",
18+
"dir": "src",
2919
"subdirs": true
3020
},
3121
{
3222
"dir": "scripts",
3323
"subdirs": true,
3424
"type": "dev"
35-
},
36-
{
37-
"dir": "components",
38-
"subdirs": true
39-
},
40-
"layouts"
25+
}
4126
],
4227
"package-specs": {
4328
"module": "es6",

0 commit comments

Comments
 (0)