From f8e25518391ed1e6b1b5105ff7e877f0d32d3a19 Mon Sep 17 00:00:00 2001 From: Emil Ivanichkov Date: Mon, 22 Jan 2024 16:15:45 +0200 Subject: [PATCH] build(yarn): Add `clean`, `clean:all` etc. scripts --- package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package.json b/package.json index 2b161891..70e6878d 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,11 @@ "libs/*" ], "scripts": { + "clean": "yarn clean:normal", + "clean:normal": "yarn clean:nx-cache && EXCL_NM='-e node_modules' yarn clean:untracked_artifacts", + "clean:all": "yarn clean:nx-cache && EXCL_NM='' yarn clean:untracked_artifacts", + "clean:nx-cache": "rm -rvf \"$(git rev-parse --show-toplevel)/node_modules/.cache\"", + "clean:untracked_artifacts": "git clean -fdx -e .env -e .direnv -e .yarn -e .netlify -e .vscode $EXCL_NM -- $(git rev-parse --show-toplevel)", "dev": "NODE_ENV=development vite", "build": "tsc -p . && vite build", "build-lib": "yarn nx build",