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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66125d708a4ca1e43afea540e13a828653bcde97b942a30a1ac667cda1b6908a
4
- data.tar.gz: ce4fc5daebdb1be25c5c83f4ef9b9e703e1bdeac7abad63ee181085adbd44982
3
+ metadata.gz: dd8e4ea2e0a57f480acc24a90b019e7ad0b0733158ba96db81fd4cf3278197cb
4
+ data.tar.gz: 9b59f08b8f5d70b1133dd6a008f99dbbb167b0e2d354a0dc30759ec12a933f80
5
5
  SHA512:
6
- metadata.gz: e6a1c42df834388a3be38ba709c72ec330ce005b9ce2213993a6a6639bc4642d98a2d74154dc49b9304ec35df40f624a2b65c09e570da1a6f2a2ef4f39ecdaba
7
- data.tar.gz: 0cfc262377d0b96d3b96499c4718b36d745345218884e4b6aea79e2e32952d57c05aceead4333d419edb8c57b67672defe6604e0e9e7df1e5ade7505aa798f5f
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
- $ windclutter install
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
- ```html
73
- <div class="my-class border rounded-md px-4 py-2 bg-primary-100">
74
- <!-- -->
75
- </div>
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
- {"my-class"=>1, "border"=>1, "rounded-md"=>1, "px-4"=>1, "py-2"=>1, "bg-primary-100"=>1}
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!
@@ -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 -a] do |prefix|
61
- prefix.register 'file', Commands::Analysis::FilePath, aliases: ['-p']
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WindClutter
4
- VERSION = '0.0.12'
4
+ VERSION = '0.0.13'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: windclutter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zafranudin Zafrin