@tmlmobilidade/repo-rinse 20250628.1104.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,30 @@
1
+ ### @tmlmobilidade/repo-rinse 🧼
2
+
3
+ Repo Rinse is a simple CLI tool that scrubs your project clean by removing common build artifacts and lockfiles. It’s perfect for fresh starts, CI cleanup, or clearing out stale dev cruft.
4
+
5
+ This is sometimes required as large package-lock.json files may become out-of-sync after a lot of package updates.
6
+
7
+ #### What it removes:
8
+ - `node_modules/`
9
+ - `dist/`
10
+ - `.next/`
11
+ - `.turbo/`
12
+ - `.source/`
13
+ - `pnpm-lock.yaml`
14
+ - `package-lock.json`
15
+
16
+ ### ⚠️ WARNING
17
+
18
+ **This script removes files and directories. Use it with caution!**
19
+
20
+ Currently, the script deletes files and folders recursively from the directory where it is executed.
21
+
22
+ If you run it from `/` (root), it will remove **all** matching files and directories from your entire machine.
23
+
24
+ #### Usage:
25
+
26
+ **Always double-check your current working directory before running!**
27
+
28
+ ```
29
+ npx @tmlmobilidade/repo-rinse
30
+ ```
package/package.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@tmlmobilidade/repo-rinse",
3
+ "version": "20250628.1104.39",
4
+ "type": "module",
5
+ "files": [
6
+ "dist"
7
+ ],
8
+ "bin": {
9
+ "repo-rinse": "./src/repo-rinse.sh"
10
+ },
11
+ "scripts": {
12
+ "start": "sh ./src/repo-rinse.sh"
13
+ },
14
+ "devDependencies": {
15
+ "@carrismetropolitana/eslint": "20250622.1204.50"
16
+ }
17
+ }
@@ -0,0 +1,48 @@
1
+ #!/bin/sh
2
+
3
+ echo "β†’ Starting cleanup..."
4
+ echo ""
5
+
6
+ # # #
7
+
8
+ echo "β†’ Removing 'node_modules' directories..."
9
+ find . -type d -name "node_modules" -prune | xargs rm -rf
10
+ echo "βœ“ Done"
11
+ echo ""
12
+
13
+ echo "β†’ Removing 'dist' directories..."
14
+ find . -type d -name "dist" -prune | xargs rm -rf
15
+ echo "βœ“ Done"
16
+ echo ""
17
+
18
+ echo "β†’ Removing '.next' directories..."
19
+ find . -type d -name ".next" -prune | xargs rm -rf
20
+ echo "βœ“ Done"
21
+ echo ""
22
+
23
+ echo "β†’ Removing '.turbo' directories..."
24
+ find . -type d -name ".turbo" -prune | xargs rm -rf
25
+ echo "βœ“ Done"
26
+ echo ""
27
+
28
+ echo "β†’ Removing '.source' directories..."
29
+ find . -type d -name ".source" -prune | xargs rm -rf
30
+ echo "βœ“ Done"
31
+ echo ""
32
+
33
+ # # #
34
+
35
+ echo "β†’ Removing 'pnpm-lock.yaml' files..."
36
+ find . -type f -name "pnpm-lock.yaml" | xargs rm -f
37
+ echo "βœ“ Done"
38
+ echo ""
39
+
40
+ echo "β†’ Removing 'package-lock.json' files..."
41
+ find . -type f -name "package-lock.json" | xargs rm -f
42
+ echo "βœ“ Done"
43
+ echo ""
44
+
45
+ # # #
46
+
47
+ echo "βœ“ Cleanup complete!"
48
+ echo ""