Skip to content

Align template's npm script names with the ones in the installation guide #576

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pages/docs/manual/latest/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ canonical: "/docs/manual/latest/installation"
git clone https://github.com/rescript-lang/rescript-project-template
cd rescript-project-template
npm install
npm run build
npm run res:build
node src/Demo.bs.js
```

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!

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.
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.

## Integrate Into an Existing JS Project

Expand Down