Skip to content

Commit 2b5da05

Browse files
DZakhcristianoc
authored andcommitted
Add res prefix to templates npm script names
1 parent 0546b79 commit 2b5da05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/docs/manual/latest/installation.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ canonical: "/docs/manual/latest/installation"
1717
git clone https://github.com/rescript-lang/rescript-project-template
1818
cd rescript-project-template
1919
npm install
20-
npm run build
20+
npm run res:build
2121
node src/Demo.bs.js
2222
```
2323

2424
That compiles your ReScript into JavaScript, then uses Node.js to run said JavaScript. **We recommend you use our unique workflow of keeping a tab open for the generated `.bs.js` file**, so that you can learn how ReScript transforms into JavaScript. Not many languages output clean JavaScript code you can inspect and learn from!
2525

26-
During development, instead of running `npm run build` each time to compile, use `npm run start` to start a watcher that recompiles automatically after file changes.
26+
During development, instead of running `npm run res:build` each time to compile, use `npm run res:start` to start a watcher that recompiles automatically after file changes.
2727

2828
## Integrate Into an Existing JS Project
2929

0 commit comments

Comments
 (0)