From cd8f7a23e3c30f4b6753e31b55b4b34fd727cafd Mon Sep 17 00:00:00 2001 From: Iku-turso Date: Thu, 1 Jun 2023 18:21:39 +0300 Subject: [PATCH] chore: Make "start-dev" start faster by caching icons and binaries Co-authored-by: Janne Savolainen Signed-off-by: Mikko Aspiala Signed-off-by: Iku-turso --- open-lens/package.json | 16 ++++++++++++++-- package.json | 1 - 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/open-lens/package.json b/open-lens/package.json index f6a7b82cd0..14fc749095 100644 --- a/open-lens/package.json +++ b/open-lens/package.json @@ -73,6 +73,16 @@ "{workspaceRoot}/dist/" ] }, + "build:tray-icons": { + "outputs": [ + "{workspaceRoot}/static/build/tray/" + ] + }, + "download:binaries": { + "outputs": [ + "{workspaceRoot}/binaries/" + ] + }, "test:integration": { "dependsOn": [ "build:app" @@ -80,12 +90,14 @@ }, "dev:main": { "dependsOn": [ - "^build" + "^build", + "download:binaries" ] }, "dev:renderer": { "dependsOn": [ - "^build" + "^build", + "build:tray-icons" ] }, "dev-run": { diff --git a/package.json b/package.json index 42d953366b..32e6f9b50a 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,6 @@ "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", - "prestart-dev": "cd ./open-lens && npm run build:tray-icons && npm run download:binaries", "start-dev": "lerna run dev:main,dev:renderer,dev-run --stream --scope open-lens", "postinstall": "linkable", "lint": "lerna run lint --stream --no-bail",