You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code is used to generate https://reasonml.github.io. It pulls in files from `docs/` and `website/` to generate html files served on the site.
3
+
This code is used to generate https://reasonml.github.io. It pulls in files from `docs/` and `website/` to generate HTML files served on the site.
4
4
5
-
`website/` contains the JS, CSS, images and other files (and blog, which contains some markdown files too, these are separated from `docs/`, not too important).
5
+
`website/` contains the JS, CSS, images and other files (and some markdown files in `blog` which are separated from `docs/`; it's not too important).
6
6
7
-
`cd website && yarn && yarn start` to start the development server & watcher.
7
+
`cd website && npm install && npm run start` to start the development server & watcher.
8
8
9
-
Don't use `yarn build`. It's mostly for debugging.
9
+
Don't use `npm run build`. It's mostly for debugging.
10
10
11
-
In the end, we spit out normal HTML, with all the JS dependencies (barring a few critical ones) removed, including ReactJS itself. It's a full, static website, super lightweight, portable, unfancy but good looking. Works with JS turned off too.
11
+
In the end, we spit out normal HTML with all but a few critical JS dependencies removed, including ReactJS itself. It's a full static website: super lightweight, portable, unfancy, but good looking. And it works with JS turned off!
12
12
13
13
Two special files:
14
14
@@ -19,23 +19,23 @@ During your development, most changes will be picked up at each browser refresh.
19
19
20
20
## Translations
21
21
22
-
The entire site can be translated via the [Crowdin project](https://crowdin.com/project/reason). This repo only has the canonical english documentation. Don't manually edit things in `i18n/`.
22
+
The entire site can be translated via the [Crowdin project](https://crowdin.com/project/reason). This repo only has the canonical English documentation. Don't manually edit things in `i18n/`.
23
23
24
24
## Debugging
25
25
26
26
`console.log`s appear in your terminal! Since the site itself is React-free.
27
27
28
28
## Building and Deploying
29
29
30
-
Changes from `source` branch are automatically picked into `master` branch by CI, then published.
30
+
Changes from the `source` branch are automatically picked into `master` branch by CI and then published.
31
31
32
-
# Build the Playground
32
+
# Building the Playground
33
33
34
34
```
35
-
cd website && yarn
35
+
cd website && npm install
36
36
```
37
37
38
-
For modifying the actual try playground source code, run `yarn bundle-try-playground:dev` to start a watcher. Once you're done, run `yarn bundle-try-playground:prod` once.
38
+
For modifying the actual try playground source code, run `npm run bundle-try-playground:dev` to start a watcher. Once you're done, run `npm run bundle-try-playground:prod` once.
39
39
40
40
## Building with custom BuckleScript/etc
41
41
@@ -45,13 +45,14 @@ You'll need to have this repository and the [BuckleScript](https://github.com/Bu
45
45
46
46
1. Inside the BuckleScript repository, follow the [Setup](https://github.com/BuckleScript/bucklescript/blob/master/CONTRIBUTING.md#setup) guide.
47
47
48
-
2. Follow the [BS Playground instructions](https://github.com/BuckleScript/bucklescript/tree/master/playground), with these caveats:
49
-
- Make sure the `reason-react` version in BuckleScript `playground` folder is the same as the one in this project
50
-
- When calling `cmij.exe`, just pass the path to `reason-react`, e.g. `../jscomp/bin/cmij.exe -playground node_modules/reason-react/lib/ocaml`
51
-
- Run `BS_PLAYGROUND=../../reasonml.github.io/website/playground/bs node scripts/repl.js`
48
+
2. Follow the [Contributing to the BS Playground Bundle](https://github.com/BuckleScript/bucklescript/blob/7.0.1/CONTRIBUTING.md#contributing-to-the-bs-playground-bundle) guide.
52
49
53
-
3.Inside the `reasonml.github.io` repository, run `cd website && yarn`
0 commit comments