File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ If you already have a JavaScript project into which you'd like to add ReScript:
31
31
32
32
- Install ReScript locally as a [ devDependency] ( https://docs.npmjs.com/specifying-dependencies-and-devdependencies-in-a-package-json-file ) :
33
33
``` sh
34
- npm install rescript --save-dev
34
+ npm install rescript --save-dev
35
35
```
36
36
- Create a ReScript build configuration at the root:
37
37
``` json
@@ -57,14 +57,15 @@ If you already have a JavaScript project into which you'd like to add ReScript:
57
57
- Add convenience ` npm ` scripts to ` package.json ` :
58
58
``` json
59
59
"scripts" : {
60
- "re :build" : " rescript" ,
61
- "re :start" : " rescript build -w"
60
+ "res :build" : " rescript" ,
61
+ "res :start" : " rescript build -w"
62
62
}
63
63
```
64
64
65
65
Since ReScript compiles to clean readable JS files, the rest of your existing toolchain (e.g. Babel and Webpack) should just work!
66
66
67
67
Helpful guides:
68
+
68
69
- [ Converting from JS] ( converting-from-js ) .
69
70
- [ Shared Data Types] ( shared-data-types ) .
70
71
- [ Import from/Export to JS] ( import-from-export-to-js ) .
You can’t perform that action at this time.
0 commit comments