From e484efa8da555a8753e93e6d77f21a266cc46781 Mon Sep 17 00:00:00 2001 From: Hernan Alvarado Date: Sun, 27 Oct 2024 15:18:32 -0500 Subject: [PATCH] chore: add cleanup scripts to `package.json` - Add `clean:build` to remove `dist` folder - Add `clean:modules` to remoe `node_modules` folder - Add `clean` to join `clean:build` and `clean:modules` --- package.json | 7 +++++-- packages/tailwindcss-animations/package.json | 5 ++++- packages/tailwindcss-core/package.json | 5 ++++- packages/tailwindcss-utilities/package.json | 5 ++++- turbo.json | 9 +++++++++ 5 files changed, 26 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 37808db..fba3558 100644 --- a/package.json +++ b/package.json @@ -6,12 +6,15 @@ "description": "A monorepo project for managing multiple packages with features and utilities for TailwindCSS.", "scripts": { "dev": "turbo dev --parallel", - "build": "turbo build --filter @halvaradop/*core && turbo build --filter=!@halvaradop/*core --parallel", + "build": "turbo build --filter *core && turbo build --filter=!*core --parallel", "format": "prettier --cache --write .", "format:check": "prettier --cache --check .", "test": "turbo test --parallel", "test:watch": "turbo test:watch --parallel", - "test:coverage": "vitest --coverage" + "test:coverage": "vitest --coverage", + "clean": "turbo clean --parallel", + "clean:dist": "turbo clean:dist --parallel", + "clean:modules": "turbo clean:modules --parallel" }, "publishConfig": { "access": "public", diff --git a/packages/tailwindcss-animations/package.json b/packages/tailwindcss-animations/package.json index 639d8e8..89c485e 100644 --- a/packages/tailwindcss-animations/package.json +++ b/packages/tailwindcss-animations/package.json @@ -7,7 +7,10 @@ "build": "tsup", "dev": "tsup --watch", "test": "vitest --run", - "test:watch": "vitest" + "test:watch": "vitest", + "clean": "npm run clean:dist && npm run clean:modules", + "clean:dist": "rm -rf dist", + "clean:modules": "rm -rf node_modules" }, "repository": { "type": "git", diff --git a/packages/tailwindcss-core/package.json b/packages/tailwindcss-core/package.json index 0c11a76..2f04dac 100644 --- a/packages/tailwindcss-core/package.json +++ b/packages/tailwindcss-core/package.json @@ -7,7 +7,10 @@ "build": "tsup", "dev": "tsup --watch", "test": "vitest --run", - "test:watch": "vitest" + "test:watch": "vitest", + "clean": "npm run clean:dist && npm run clean:modules", + "clean:dist": "rm -rf dist", + "clean:modules": "rm -rf node_modules" }, "repository": { "type": "git", diff --git a/packages/tailwindcss-utilities/package.json b/packages/tailwindcss-utilities/package.json index 6546a9f..d5fa940 100644 --- a/packages/tailwindcss-utilities/package.json +++ b/packages/tailwindcss-utilities/package.json @@ -7,7 +7,10 @@ "build": "tsup", "dev": "tsup --watch", "test": "vitest --run", - "test:watch": "vitest" + "test:watch": "vitest", + "clean": "npm run clean:dist && npm run clean:modules", + "clean:dist": "rm -rf dist", + "clean:modules": "rm -rf node_modules" }, "publishConfig": { "access": "public", diff --git a/turbo.json b/turbo.json index 126a672..cd78e1f 100644 --- a/turbo.json +++ b/turbo.json @@ -17,6 +17,15 @@ "test:watch": { "cache": false, "inputs": ["test"] + }, + "clean": { + "cache": false + }, + "clean:dist": { + "cache": false + }, + "clean:modules": { + "cache": false } }, "cacheDir": ".turbo/cache"