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.
- package/_/basic/package.json +1 -1
- package/_/blog/package.json +1 -1
- package/cli/bin.d.ts +1 -1
- package/cli/bin.d.ts.map +1 -1
- package/cli/bin.js +161 -350
- package/cli/bin.js.map +5 -18
- package/cli/index.d.ts +2 -0
- package/cli/index.d.ts.map +1 -0
- package/cli/index.js +147 -0
- package/cli/index.js.map +10 -0
- package/cli/src/{index.d.ts → cli.d.ts} +1 -1
- package/cli/src/cli.d.ts.map +1 -0
- package/cli/src/commands/gen.d.ts.map +1 -1
- package/cli/src/libs/index.d.ts +2 -0
- package/cli/src/libs/index.d.ts.map +1 -0
- package/cli/src/libs/tailwind.d.ts +31 -4
- package/cli/src/libs/tailwind.d.ts.map +1 -1
- package/core/index.js +189 -168
- package/core/index.js.map +6 -6
- package/core/src/bundler/transpile.d.ts.map +1 -1
- package/core/src/index.d.ts +0 -1
- package/core/src/index.d.ts.map +1 -1
- package/elysia/index.js +230 -398
- package/elysia/index.js.map +7 -8
- package/elysia/src/plugin.d.ts.map +1 -1
- package/package.json +5 -1
- package/cli/src/index.d.ts.map +0 -1
- package/core/src/tailwind.d.ts +0 -15
- package/core/src/tailwind.d.ts.map +0 -1
|
@@ -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
|
|
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":"
|
|
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"}
|