reroute-js 0.0.6 → 0.0.8

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.
@@ -1,18 +1,45 @@
1
- #!/usr/bin/env bun
2
1
  /**
3
2
  * Tailwind CSS v4 integration utility
4
3
  *
5
4
  * Manages Tailwind CLI integration for the Reroute framework
6
5
  */
7
6
  import type { ChildProcess } from 'node:child_process';
8
- interface TailwindProcess {
7
+ export interface TailwindProcess {
9
8
  process: ChildProcess;
10
9
  stop: () => void;
11
10
  }
11
+ /**
12
+ * Check if Tailwind CSS v4 is available in the project
13
+ */
14
+ export declare function isTailwindAvailable(cwd: string): boolean;
15
+ /**
16
+ * Get the default paths for Tailwind CSS
17
+ */
18
+ export declare function getTailwindPaths(cwd: string): {
19
+ input: string;
20
+ output: string;
21
+ };
22
+ /**
23
+ * Check if Tailwind input file exists and uses v4 format
24
+ */
25
+ export declare function hasTailwindInput(cwd: string): boolean;
26
+ export declare function resolveTailwindBin(cwd: string): string;
27
+ /**
28
+ * Build Tailwind CSS using the Tailwind CLI
29
+ */
30
+ export declare function buildTailwind(cwd: string): Promise<void>;
31
+ /**
32
+ * Build Tailwind once if installed and input exists.
33
+ * Returns true if a build was attempted (success or failure), false if skipped.
34
+ */
35
+ export declare function buildTailwindIfConfigured(cwd: string): Promise<boolean>;
36
+ /**
37
+ * Start Tailwind CSS in watch mode
38
+ */
39
+ export declare function watchTailwind(cwd: string): TailwindProcess;
12
40
  /**
13
41
  * Initialize Tailwind CSS integration
14
42
  * Returns null if Tailwind is not available or configured
15
43
  */
16
- export declare function initTailwind(cwd: string, watch?: boolean): TailwindProcess | null;
17
- export {};
44
+ export declare function initTailwind(cwd: string): TailwindProcess | null;
18
45
  //# sourceMappingURL=tailwind.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tailwind.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/libs/tailwind.ts"],"names":[],"mappings":";AAEA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAUvD,UAAU,eAAe;IACxB,OAAO,EAAE,YAAY,CAAC;IACtB,IAAI,EAAE,MAAM,IAAI,CAAC;CACjB;AAiCD;;;GAGG;AACH,wBAAgB,YAAY,CAC3B,GAAG,EAAE,MAAM,EACX,KAAK,UAAQ,GACX,eAAe,GAAG,IAAI,CA8BxB"}
1
+ {"version":3,"file":"tailwind.d.ts","sourceRoot":"","sources":["../../../../../../packages/cli/src/libs/tailwind.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAKvD,MAAM,WAAW,eAAe;IAC/B,OAAO,EAAE,YAAY,CAAC;IACtB,IAAI,EAAE,MAAM,IAAI,CAAC;CACjB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAkBxD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM;;;EAK3C;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAcrD;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAiBtD;AAED;;GAEG;AACH,wBAAsB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAyC9D;AAED;;;GAGG;AACH,wBAAsB,yBAAyB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAW7E;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,CA0B1D;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI,CA0BhE"}