From a202a18bd1a61a49c2da6933e5682280674d3ae5 Mon Sep 17 00:00:00 2001 From: Daniel <30466471+daniel0611@users.noreply.github.com> Date: Fri, 18 Sep 2020 18:56:08 +0200 Subject: [PATCH] Use typescript build mode for incremental compilation --- docs/contribute/create_sample.md | 5 +++-- docs/contribute/create_service.md | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/contribute/create_sample.md b/docs/contribute/create_sample.md index 98373855..bc5ff893 100644 --- a/docs/contribute/create_sample.md +++ b/docs/contribute/create_sample.md @@ -13,8 +13,9 @@ Create a folder in `samples` and add a `package.json` and a `tsconfig.json`: } }, "scripts": { - "build": "tsc", - "watch": "tsc -w" + "build": "tsc -b", + "watch": "tsc -b -w", + "clean": "tsc -b --clean" }, "license": "MIT", "dependencies": { diff --git a/docs/contribute/create_service.md b/docs/contribute/create_service.md index a9680219..661332a4 100644 --- a/docs/contribute/create_service.md +++ b/docs/contribute/create_service.md @@ -31,8 +31,9 @@ Put the following into it: "url": "" }, "scripts": { - "build": "tsc", - "watch": "tsc -w" + "build": "tsc -b", + "watch": "tsc -b -w", + "clean": "tsc -b --clean" }, "keywords": ["", "nodecg-bundle"], "nodecg": {