From c685c1f340d1b780dd9a358edc366ae1b2645f0a Mon Sep 17 00:00:00 2001 From: Iku-turso Date: Fri, 2 Jun 2023 13:51:57 +0300 Subject: [PATCH] chore: Separate scripts for building and watching in development With this, a dev can more easily understand intent of different scripts, and choose the most fitting one for his use-case. Eg. "build:dev:watch" is very fast to start, when the dev knows that everything is already properly built. Co-authored-by: Janne Savolainen Signed-off-by: Iku-turso --- package.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 32e6f9b50a..925daa664f 100644 --- a/package.json +++ b/package.json @@ -17,8 +17,11 @@ "build:docs": "lerna run --stream build:docs", "clean": "lerna run clean --stream", "clean:node_modules": "lerna clean -y && rimraf node_modules", - "dev": "cross-env NODE_ENV=development lerna watch -- lerna run build --stream --scope \\$LERNA_PACKAGE_NAME", - "start-dev": "lerna run dev:main,dev:renderer,dev-run --stream --scope open-lens", + "build:dev": "cross-env NODE_ENV=development lerna run build --stream", + "build:dev:watch": "cross-env NODE_ENV=development lerna watch -- lerna run build --stream --scope \\$LERNA_PACKAGE_NAME", + "start-dev-application": "cross-env NODE_ENV=development lerna run dev:main,dev:renderer,dev-run --stream --scope open-lens", + "dev": "npm run build:dev && npm run build:dev:watch", + "start-dev": "npm run start-dev-application", "postinstall": "linkable", "lint": "lerna run lint --stream --no-bail", "lint:fix": "lerna run lint:fix --stream",