tailwint 1.1.4 → 1.1.6
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/bin/tailwint.js +2 -2
- package/dist/index.js +14 -1
- package/dist/ui.js +1 -0
- package/package.json +1 -1
package/bin/tailwint.js
CHANGED
|
@@ -43,8 +43,8 @@ if (args.includes("--version") || args.includes("-v")) {
|
|
|
43
43
|
process.exit(0);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
const fix = args.includes("--fix");
|
|
47
|
-
const patterns = args.filter((a) => a !== "--fix");
|
|
46
|
+
const fix = args.includes("--fix") || args.includes("-f");
|
|
47
|
+
const patterns = args.filter((a) => a !== "--fix" && a !== "-f");
|
|
48
48
|
|
|
49
49
|
run({ fix, patterns: patterns.length > 0 ? patterns : undefined }).then(
|
|
50
50
|
(code) => process.exit(code),
|
package/dist/index.js
CHANGED
|
@@ -57,7 +57,20 @@ export async function run(options = {}) {
|
|
|
57
57
|
const files = [...fileSet];
|
|
58
58
|
await banner();
|
|
59
59
|
if (files.length === 0) {
|
|
60
|
-
|
|
60
|
+
const VP = 54;
|
|
61
|
+
const l1 = "the wind blows";
|
|
62
|
+
const l2 = "but there is nothing here";
|
|
63
|
+
const l3 = "~ no files matched ~";
|
|
64
|
+
const p1 = 4;
|
|
65
|
+
const p2 = Math.floor((VP - l2.length - 2) / 2);
|
|
66
|
+
const p3 = VP - l3.length - 8;
|
|
67
|
+
const lw1 = p1, rw1 = VP - p1 - l1.length - 2;
|
|
68
|
+
const lw2 = p2, rw2 = VP - p2 - l2.length - 2;
|
|
69
|
+
const lw3 = p3, rw3 = VP - p3 - l3.length - 2;
|
|
70
|
+
console.error(` ${windTrail(lw1)} ${c.dim}${l1}${c.reset} ${windTrail(rw1, 4)}`);
|
|
71
|
+
console.error(` ${windTrail(lw2, 2)} ${c.dim}${l2}${c.reset} ${windTrail(rw2, 7)}`);
|
|
72
|
+
console.error(` ${windTrail(lw3, 5)} ${c.dim}${c.italic}${l3}${c.reset} ${windTrail(rw3, 9)}`);
|
|
73
|
+
console.error("");
|
|
61
74
|
return 0;
|
|
62
75
|
}
|
|
63
76
|
// Phase 1: Boot the LSP
|
package/dist/ui.js
CHANGED
|
@@ -147,6 +147,7 @@ export async function banner() {
|
|
|
147
147
|
process.stderr.write(`${c.clear}${c.show}`);
|
|
148
148
|
}
|
|
149
149
|
console.error(` ${windTrail(WIND_SIDE)} ${c.bold}${c.cyan}tailwint${c.reset} ${windTrail(WIND_SIDE, 6)}`);
|
|
150
|
+
console.error("");
|
|
150
151
|
console.error(` ${c.dim}tailwind css linter ${c.gray}// powered by the official lsp${c.reset}`);
|
|
151
152
|
console.error("");
|
|
152
153
|
}
|