@@ -7,7 +7,7 @@ When `rescript`, `@rescript/react` and `rescript-react-native` are installed, yo
77can run the following command
88
99``` console 
10- yarn bsb -make-world 
10+ npm run rescript 
1111``` 
1212
1313⚠️ _ If this process looks fast to you, don't be surprised, that's because ReScript is fast!_ 
@@ -51,17 +51,19 @@ extension if you have existing JavaScript covered by Flow.
5151⚠️ If you don’t want to use VSCode, we still recommend you to
5252[ get a ReScript editor plugin] ( https://rescript-lang.org/docs/manual/latest/editor-plugins ) .
5353
54- By having an IDE that handle ReScript compilation, you will not have to run a
55- command in the terminal to handle this & will just have to follow the standard
54+ 🎉  ** By having an IDE that handle ReScript compilation, you will not have to run a
55+ command in the terminal**  to handle this & will just have to follow the standard
5656React Native workflow, your ReScript files being compiled to JavaScript.
5757
58- You  will also have inline errors & much more feature that won't be provided by
59- using a CLI workflow.
58+ _ You  will also have inline errors & much more feature that won't be provided by
59+ using a CLI workflow._ 
6060
6161## Vscode workflow  
6262
6363When you open VSCode with the ReScript plugin, you won't have to do anything.
64- The plugin will detect ReScript & will offer you to handle compilation.
64+ The plugin will detect ReScript & will offer you to handle compilation by just clicking a button.
65+ 
66+ ![ VSCode ReScript plugin] ( /usage/vscode-alert.png ) 
6567
6668⛑ _ Even if you decide to use Vscode or a smiliar IDE to ease your day to day
6769development workflow, you should have a look to CLI workflow so you know how it
@@ -73,35 +75,29 @@ When you use React Native, you usually always have a terminal opened around with
7375Metro Bundler running, which bundle the JavaScript files.
7476
7577Now you need to also have a process watching for your ReScript files to compile
76- then to JavaScript. The easiest way is to rely on ReScript ` bsb `  watch
78+ then to JavaScript. The easiest way is to rely on ReScript ` rescript `  watch
7779option ` -w ` :
7880
7981``` console 
80- yarn bsb -make-world  -w
82+ npm run rescript build  -w
8183``` 
8284
83- If you are not familiar with ReScript ` bsb `  you should know that you might
85+ If you are not familiar with ReScript ` rescript `  you should know that you might
8486sometimes have weird compilation errors due to outdated build artifacts. This
8587should not happen often but in case you are facing something weird, you can try
86- using ` bsb `  ` - clean-world `  option
88+ using ` rescript `  ` clean `  option
8789
8890``` console 
89- yarn bsb -clean-world 
90- ``` 
91- 
92- On a daily basis, you can use this complete command that will clean, build &
93- watch for changes
94- 
95- ``` console 
96- yarn bsb -clean-world -make-world -w 
91+ npm run rescript clean 
9792``` 
9893
9994You might want to add this two commands in your ` package.json `  scripts:
10095
10196``` json 
10297  "scripts" : {
103-     "re:build" : " bsb -clean-world -make-world" 
104-     "re:watch" : " bsb -clean-world -make-world -w" 
98+     "res:clean" : " rescript clean" 
99+     "res:build" : " rescript build" 
100+     "res:watch" : " rescript build -w" 
105101    "start" : " react-native start" 
106102    "ios" : " react-native run-ios" 
107103    "android" : " react-native run-android" 
@@ -118,7 +114,7 @@ workflow
118114** In one terminal:** 
119115
120116``` console 
121- yarn re :watch
117+ npm run res :watch
122118``` 
123119
124120As soon as ` .res `  files are being compiled to ` .bs.js ` , you can either start the
@@ -129,13 +125,13 @@ are unfamiliar with _Android Studio_, you might be interested by
129125** In another terminal:** 
130126
131127``` console 
132- yarn  ios
128+ npm run  ios
133129``` 
134130
135131or
136132
137133``` console 
138- yarn  android
134+ npm run  android
139135``` 
140136
141137This commands should open up a virtual device & start React Native
@@ -150,7 +146,7 @@ Now you can start coding by editing files in `src/`!
150146just run** 
151147
152148``` console 
153- yarn  start
149+ npm  start
154150``` 
155151
156152This avoid rebuilding the entire native parts & will just start React Native
@@ -162,18 +158,14 @@ metro bundler.
162158
163159### Using JavaScript components from Reason  
164160
165- @todo  
166- 
167- Meanwhile, check out
161+ Check out
168162[ ReScript _ Import from/Export to JS_  page] ( https://rescript-lang.org/docs/manual/latest/import-from-export-to-js ) .
169163
170164You can also browse the source of
171- [ rescript-react-native] ( https://github.com/rescript-react-native/rescript-react-native/tree/master /src ) 
165+ [ rescript-react-native] ( https://github.com/rescript-react-native/rescript-react-native/tree/main /src ) 
172166because that's exactly what this project is doing!
173167
174168### Using ReScript React Native components from JavaScript  
175169
176- @todo  
177- 
178- Meanwhile, check out
170+ Check out
179171[ ReScript _ Import from/Export to JS_  page] ( https://rescript-lang.org/docs/manual/latest/import-from-export-to-js ) 
0 commit comments