blockend-cli 1.5.1 → 2.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.
- package/dist/commands/add.d.ts +44 -0
- package/dist/commands/detect.d.ts +3 -0
- package/dist/commands/diff.d.ts +16 -0
- package/dist/commands/doctor.d.ts +13 -0
- package/dist/commands/init.d.ts +26 -0
- package/dist/commands/list.d.ts +3 -0
- package/dist/commands/mcp.d.ts +8 -0
- package/dist/commands/update.d.ts +29 -0
- package/dist/detectors/framework.d.ts +2 -0
- package/dist/detectors/index.d.ts +2 -0
- package/dist/detectors/package-manager.d.ts +2 -0
- package/dist/detectors/readers/filesystem.d.ts +1 -0
- package/dist/detectors/readers/package.d.ts +10 -0
- package/dist/detectors/readers/read-template.d.ts +1 -0
- package/dist/detectors/readers/tsconfig.d.ts +10 -0
- package/dist/detectors/runtime.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1298 -139
- package/dist/types/index.d.ts +1 -0
- package/dist/types/types.d.ts +45 -0
- package/dist/ui/format.d.ts +9 -0
- package/dist/ui/theme.d.ts +22 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types.js";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export interface ProjectContext {
|
|
2
|
+
root: string;
|
|
3
|
+
language: "typescript" | "javascript";
|
|
4
|
+
runtime: "node" | "bun" | "deno";
|
|
5
|
+
framework: "express" | "fastify" | "hono" | "next" | "none";
|
|
6
|
+
packageManager: "npm" | "pnpm" | "yarn" | "bun";
|
|
7
|
+
hasRedis: boolean;
|
|
8
|
+
hasPrisma: boolean;
|
|
9
|
+
hasDrizzle: boolean;
|
|
10
|
+
aliasMap: Record<string, string>;
|
|
11
|
+
srcDir: string;
|
|
12
|
+
blocksDir: string;
|
|
13
|
+
importRewriteStrategy: "rewrite" | "remove";
|
|
14
|
+
}
|
|
15
|
+
export interface BlockManifest {
|
|
16
|
+
name: string;
|
|
17
|
+
version: string;
|
|
18
|
+
description: string;
|
|
19
|
+
dependencies: string[];
|
|
20
|
+
devDependencies: string[];
|
|
21
|
+
optionalDependencies: Record<string, string>;
|
|
22
|
+
files: string[];
|
|
23
|
+
adapters: Array<"express" | "fastify" | "hono">;
|
|
24
|
+
tags: string[];
|
|
25
|
+
}
|
|
26
|
+
export interface RegistryFile {
|
|
27
|
+
path: string;
|
|
28
|
+
content: string;
|
|
29
|
+
}
|
|
30
|
+
export interface TransformedFile {
|
|
31
|
+
outputPath: string;
|
|
32
|
+
content: string;
|
|
33
|
+
}
|
|
34
|
+
export interface BlockendConfig {
|
|
35
|
+
$schema: string;
|
|
36
|
+
framework: ProjectContext["framework"];
|
|
37
|
+
language: ProjectContext["language"];
|
|
38
|
+
blocksDir: string;
|
|
39
|
+
aliases: Record<string, string>;
|
|
40
|
+
installed: Array<{
|
|
41
|
+
name: string;
|
|
42
|
+
version: string;
|
|
43
|
+
installedAt: string;
|
|
44
|
+
}>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const format: {
|
|
2
|
+
title: (text: string) => string;
|
|
3
|
+
success: (text: string) => string;
|
|
4
|
+
error: (text: string) => string;
|
|
5
|
+
warning: (text: string) => string;
|
|
6
|
+
muted: (text: string) => string;
|
|
7
|
+
info: (text: string) => string;
|
|
8
|
+
highlight: (text: string) => string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const theme: {
|
|
2
|
+
readonly brand: {
|
|
3
|
+
readonly primary: import("picocolors/types.js").Formatter;
|
|
4
|
+
readonly title: import("picocolors/types.js").Formatter;
|
|
5
|
+
readonly logo: import("picocolors/types.js").Formatter;
|
|
6
|
+
};
|
|
7
|
+
readonly text: {
|
|
8
|
+
readonly normal: import("picocolors/types.js").Formatter;
|
|
9
|
+
readonly muted: import("picocolors/types.js").Formatter;
|
|
10
|
+
readonly subtle: import("picocolors/types.js").Formatter;
|
|
11
|
+
};
|
|
12
|
+
readonly state: {
|
|
13
|
+
readonly success: import("picocolors/types.js").Formatter;
|
|
14
|
+
readonly warning: import("picocolors/types.js").Formatter;
|
|
15
|
+
readonly error: import("picocolors/types.js").Formatter;
|
|
16
|
+
readonly info: import("picocolors/types.js").Formatter;
|
|
17
|
+
};
|
|
18
|
+
readonly emphasis: {
|
|
19
|
+
readonly strong: import("picocolors/types.js").Formatter;
|
|
20
|
+
readonly dim: import("picocolors/types.js").Formatter;
|
|
21
|
+
};
|
|
22
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "blockend-cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "CLI for installing production-ready backend blocks into Next.js, Express, Hono, NestJS, and other Node.js applications.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"README.md"
|
|
16
16
|
],
|
|
17
17
|
"scripts": {
|
|
18
|
-
"build": "tsup src/index.ts --format esm --
|
|
18
|
+
"build": "tsup src/index.ts --format esm --clean --out-dir dist && tsc --emitDeclarationOnly --declaration",
|
|
19
19
|
"typecheck": "tsc --noEmit",
|
|
20
20
|
"test": "vitest run",
|
|
21
21
|
"test:watch": "vitest",
|