windclutter 0.0.12 → 0.0.13
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.
- checksums.yaml +4 -4
- data/README.md +32 -10
- data/lib/windclutter/cli/core.rb +2 -2
- data/lib/windclutter/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd8e4ea2e0a57f480acc24a90b019e7ad0b0733158ba96db81fd4cf3278197cb
|
4
|
+
data.tar.gz: 9b59f08b8f5d70b1133dd6a008f99dbbb167b0e2d354a0dc30759ec12a933f80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77609004646a587a69ac0122eb5de24df872588cf25ef7809d1db56c4e1ed4b2ad816ff694c0f9e6e817b939278a5ecdb98300b3d3bf07c0d3cb3cc3318dc2fb
|
7
|
+
data.tar.gz: e8d3a3a8d97df76b0ce7c5815dcc0894aad76f14f20dc2f0ddc1444f9cddad1512bbb29743954bf40e61e385f4f85b00b2d7aa935f40a97723f7f69a794e370d
|
data/README.md
CHANGED
@@ -51,33 +51,55 @@ humongous task of Tailwind CSS cleanup.
|
|
51
51
|
|
52
52
|
<hr/>
|
53
53
|
|
54
|
-
## Installation
|
54
|
+
## Quick Installation
|
55
55
|
|
56
56
|
```bash
|
57
57
|
# requires ruby 2.7 and above
|
58
58
|
$ gem install windclutter
|
59
59
|
|
60
|
-
$
|
60
|
+
$ cd your_project
|
61
|
+
$ windclutter use
|
61
62
|
```
|
62
63
|
|
63
64
|
## In Action
|
64
65
|
|
66
|
+
### 1. Single file analysis `-f`
|
67
|
+
```
|
68
|
+
$ windclutter analysis -f src/index.html
|
65
69
|
```
|
66
|
-
$ cd your_project
|
67
70
|
|
68
|
-
$ windclutter project use <your_project_name>
|
69
|
-
$ windclutter analysis file src/index.html
|
70
71
|
```
|
72
|
+
# output
|
71
73
|
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
74
|
+
Analysing src/index.html...
|
75
|
+
Done!
|
76
|
+
{
|
77
|
+
"flex" => 3,
|
78
|
+
"flex-col" => 3,
|
79
|
+
}
|
80
|
+
```
|
81
|
+
|
82
|
+
### 2. Project traversal `-t` (NEW)
|
83
|
+
|
84
|
+
Provide an option with your file extension, and let it do its magic! 🎉
|
85
|
+
|
86
|
+
```
|
87
|
+
$ windclutter analysis -t .html
|
76
88
|
```
|
77
89
|
|
78
90
|
```
|
79
91
|
# output
|
80
|
-
|
92
|
+
|
93
|
+
Analysing .html...
|
94
|
+
Traversed 22 .html file(s)... 🎉
|
95
|
+
{
|
96
|
+
"flex" => 44,
|
97
|
+
"flex-col" => 31,
|
98
|
+
"items-center" => 30,
|
99
|
+
"text-center" => 21,
|
100
|
+
"gap-2" => 14
|
101
|
+
}
|
102
|
+
...and 120 more
|
81
103
|
```
|
82
104
|
|
83
105
|
## Bleeding Edge!
|
data/lib/windclutter/cli/core.rb
CHANGED
@@ -57,8 +57,8 @@ module WindClutter
|
|
57
57
|
prefix.register 'config', Commands::Project::ConfigUpdate, aliases: ['-c']
|
58
58
|
end
|
59
59
|
|
60
|
-
register 'analysis', aliases: %w[a
|
61
|
-
prefix.register 'file', Commands::Analysis::FilePath, aliases: ['-
|
60
|
+
register 'analysis', aliases: %w[a] do |prefix|
|
61
|
+
prefix.register 'file', Commands::Analysis::FilePath, aliases: ['-f']
|
62
62
|
prefix.register 'traverse', Commands::Analysis::Traverse, aliases: ['-t']
|
63
63
|
end
|
64
64
|
|
data/lib/windclutter/version.rb
CHANGED