tailwind-sorter 0.4.0 → 0.4.1
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/CHANGELOG.md +4 -0
- data/README.md +6 -0
- data/exe/tailwind_sorter +5 -2
- data/lib/tailwind_sorter/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: 3e1f3de5d352e6a073f1767524d2c7b3ccc16940694a6b876e9a96d6cc0b680b
|
4
|
+
data.tar.gz: e1210fc5d3bfac44ae7a077aa8801299b78a129c1688502b9621bb9a70ebaf0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7bc6b3eb7efe05511fbb215831d7e904ccd2d2988e6b9e7672813f40515a98d35e066066cc2b3640da3b1f8b55130c9eb45600c2773a0286ef054a688ca8063
|
7
|
+
data.tar.gz: 5448c1f0386877c77c50558cf1646cfa75e074a42369b47aa8a927a33dd493d18baf6446e4c7c8360fc235d6378677af9a7abf307bab18b496c16dc3f8205494
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -163,6 +163,12 @@ The script requires the configuration file to be present in `config/tailwind_sor
|
|
163
163
|
bin/tailwind_sorter -c path/to/my/config_file.yml app/views/my_template.html.slim
|
164
164
|
```
|
165
165
|
|
166
|
+
Multiple files can be processed in a single run:
|
167
|
+
|
168
|
+
```sh
|
169
|
+
bin/tailwind_sorter app/views/my_template.html.slim app/views/another_template.html.slim
|
170
|
+
```
|
171
|
+
|
166
172
|
## Running automatically via your IDE / editor
|
167
173
|
|
168
174
|
Perhaps the best way to run the script is using your editor or IDE. Many editors provide the possibility to watch your
|
data/exe/tailwind_sorter
CHANGED
@@ -15,12 +15,15 @@ while (arg = ARGV.shift)
|
|
15
15
|
when "-c"
|
16
16
|
config_file = ARGV.shift
|
17
17
|
else
|
18
|
-
|
18
|
+
ARGV.unshift(arg)
|
19
|
+
break
|
19
20
|
end
|
20
21
|
end
|
21
22
|
|
22
23
|
begin
|
23
|
-
|
24
|
+
while (file_name = ARGV.shift)
|
25
|
+
TailwindSorter::Sorter.run(file_name, warn_only: warn_only, config_file: config_file)
|
26
|
+
end
|
24
27
|
rescue ArgumentError => e
|
25
28
|
STDERR.puts e.message
|
26
29
|
exit 1
|