tail_draft 0.0.0
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 +7 -0
- data/README.md +67 -0
- data/bin/tail_draft +4 -0
- data/lib/tail_draft/cli.rb +14 -0
- data/lib/tail_draft.rb +3 -0
- data/test/test_tailwind_buddy.rb +21 -0
- metadata +48 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f30d8239dec0137fe43faf3bc180d3f5f324692f5c8956142e83dccccc45b2e5
|
4
|
+
data.tar.gz: fffc03509339e9670f7bc144bf84db2880a335b27820d72956a657a8a9877bd4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 2e014f7b18c7cb4e42b2651d8b2e13383889ac7d4199e976dbb2e4aaab43f1e9f5415d8942697d2aff3797bfca1cac42b94d99094495dcaa85507d8f888d1bfa
|
7
|
+
data.tar.gz: 5b702808d18214415e73e51b6a6fd5a5e505118b2de96de15ca448f74407eb46287cc3a433e526076469976d5a0431642b8137e64f8212bf9998345d7f3a26e4
|
data/README.md
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
## Tailwind Buddy
|
2
|
+
|
3
|
+
Spam this buddy with your bulky TailwindCSS class, and sort it out later.
|
4
|
+
|
5
|
+
## Goal
|
6
|
+
|
7
|
+
Helping you stay focused and develop faster with your project.
|
8
|
+
|
9
|
+
## Concept
|
10
|
+
|
11
|
+
### 1 - Basic Cleanup
|
12
|
+
```bash
|
13
|
+
# standard button
|
14
|
+
$ tailwind_buddy -n border rounded-md px-4 py-2
|
15
|
+
|
16
|
+
# standard card
|
17
|
+
$ tailwind_buddy -n border rounded-md bg-white
|
18
|
+
|
19
|
+
$ tailwind_buddy --organize
|
20
|
+
[1/2] What do you want to do with this class?
|
21
|
+
'border rounded-md px-4 py-2'
|
22
|
+
name: .btn
|
23
|
+
Continue? [y/N]
|
24
|
+
|
25
|
+
[1/2] What do you want to do with this class?
|
26
|
+
'border rounded-md bg-white'
|
27
|
+
name: .card
|
28
|
+
Continue? [y/N]
|
29
|
+
|
30
|
+
Done!
|
31
|
+
Exported to compiled.css
|
32
|
+
```
|
33
|
+
|
34
|
+
Generated Output
|
35
|
+
|
36
|
+
```css
|
37
|
+
/* compiled.css */
|
38
|
+
.btn {
|
39
|
+
@apply border rounded-md px-4 py-2;
|
40
|
+
}
|
41
|
+
|
42
|
+
.card {
|
43
|
+
@apply border rounded-md bg-white;
|
44
|
+
}
|
45
|
+
```
|
46
|
+
|
47
|
+
### 2 - Guided cleanup
|
48
|
+
|
49
|
+
```bash
|
50
|
+
$ tailwind_buddy guided
|
51
|
+
|
52
|
+
[1/2] Cleanup progress
|
53
|
+
1. Global find this in your project:
|
54
|
+
class="border rounded-md px-4 py-2"
|
55
|
+
|
56
|
+
2. Replace with:
|
57
|
+
class="btn"
|
58
|
+
|
59
|
+
[2/2] Cleanup progress
|
60
|
+
1. Global find this in your project:
|
61
|
+
class="border rounded-md bg-white"
|
62
|
+
|
63
|
+
2. Replace with:
|
64
|
+
class="card"
|
65
|
+
|
66
|
+
Done!
|
67
|
+
```
|
data/bin/tail_draft
ADDED
data/lib/tail_draft.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'minitest/autorun'
|
4
|
+
require 'tail_draft'
|
5
|
+
|
6
|
+
class TailwindBuddyTest < Minitest::Test
|
7
|
+
def test_english_hello
|
8
|
+
assert_equal 'hello world',
|
9
|
+
TailDraft::CLI.hello('english')
|
10
|
+
end
|
11
|
+
|
12
|
+
def test_any_hello
|
13
|
+
assert_equal 'hello world',
|
14
|
+
TailDraft::CLI.hello('ruby')
|
15
|
+
end
|
16
|
+
|
17
|
+
def test_spanish_hello
|
18
|
+
assert_equal 'hola mundo',
|
19
|
+
TailDraft::CLI.hello('spanish')
|
20
|
+
end
|
21
|
+
end
|
metadata
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tail_draft
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Zafranudin Zafrin
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-08-30 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Your buddy to skyrocket your development with TailwindCSS.
|
14
|
+
email: coffee@zafranudin.dev
|
15
|
+
executables:
|
16
|
+
- tail_draft
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- README.md
|
21
|
+
- bin/tail_draft
|
22
|
+
- lib/tail_draft.rb
|
23
|
+
- lib/tail_draft/cli.rb
|
24
|
+
- test/test_tailwind_buddy.rb
|
25
|
+
homepage: https://rubygems.org/gems/tailwind_buddy
|
26
|
+
licenses:
|
27
|
+
- MIT
|
28
|
+
metadata: {}
|
29
|
+
post_install_message:
|
30
|
+
rdoc_options: []
|
31
|
+
require_paths:
|
32
|
+
- lib
|
33
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - ">="
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '0'
|
43
|
+
requirements: []
|
44
|
+
rubygems_version: 3.4.18
|
45
|
+
signing_key:
|
46
|
+
specification_version: 4
|
47
|
+
summary: Quickly develop with TailwindCSS without worries.
|
48
|
+
test_files: []
|