Skip to content

Commit 0546b79

Browse files
DZakhcristianoc
authored andcommitted
Use res prefix for convenience npm scripts
1 parent 6078f39 commit 0546b79

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pages/docs/manual/latest/installation.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ If you already have a JavaScript project into which you'd like to add ReScript:
3131

3232
- Install ReScript locally as a [devDependency](https://docs.npmjs.com/specifying-dependencies-and-devdependencies-in-a-package-json-file):
3333
```sh
34-
npm install rescript --save-dev
34+
npm install rescript --save-dev
3535
```
3636
- Create a ReScript build configuration at the root:
3737
```json
@@ -57,14 +57,15 @@ If you already have a JavaScript project into which you'd like to add ReScript:
5757
- Add convenience `npm` scripts to `package.json`:
5858
```json
5959
"scripts": {
60-
"re:build": "rescript",
61-
"re:start": "rescript build -w"
60+
"res:build": "rescript",
61+
"res:start": "rescript build -w"
6262
}
6363
```
6464

6565
Since ReScript compiles to clean readable JS files, the rest of your existing toolchain (e.g. Babel and Webpack) should just work!
6666

6767
Helpful guides:
68+
6869
- [Converting from JS](converting-from-js).
6970
- [Shared Data Types](shared-data-types).
7071
- [Import from/Export to JS](import-from-export-to-js).

0 commit comments

Comments
 (0)