Skip to content

Commit

Permalink
chore: add cleanup scripts to package.json
Browse files Browse the repository at this point in the history
- Add `clean:build` to remove `dist` folder
- Add `clean:modules` to remoe `node_modules` folder
- Add `clean` to join `clean:build` and `clean:modules`
  • Loading branch information
halvaradop committed Oct 27, 2024
1 parent edca6c5 commit e484efa
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 5 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 4 additions & 1 deletion packages/tailwindcss-animations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 4 additions & 1 deletion packages/tailwindcss-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 4 additions & 1 deletion packages/tailwindcss-utilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
9 changes: 9 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@
"test:watch": {
"cache": false,
"inputs": ["test"]
},
"clean": {
"cache": false
},
"clean:dist": {
"cache": false
},
"clean:modules": {
"cache": false
}
},
"cacheDir": ".turbo/cache"
Expand Down

0 comments on commit e484efa

Please sign in to comment.