From ed916c26320b866522328e0584deb8820d6f0ce7 Mon Sep 17 00:00:00 2001 From: Dmitry Zakharov Date: Tue, 11 Oct 2022 20:27:50 +0400 Subject: [PATCH] Add res prefix to templates npm script names --- pages/docs/manual/latest/installation.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/docs/manual/latest/installation.mdx b/pages/docs/manual/latest/installation.mdx index d0f23d171..221ed3d31 100644 --- a/pages/docs/manual/latest/installation.mdx +++ b/pages/docs/manual/latest/installation.mdx @@ -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