blockend-cli 1.5.1 → 2.0.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.
- 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 +27 -29
- package/readme.md +704 -73
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "blockend-cli",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "CLI for
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"description": "Blockend CLI — shadcn/ui-style backend blocks for TypeScript. Generate production-ready rate limiting, validation, logging, and error handling as source code into Express, Fastify, Hono, or Next.js projects. You own the code. Ships an MCP server for AI coding assistants.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"bin": {
|
|
@@ -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",
|
|
@@ -23,34 +23,32 @@
|
|
|
23
23
|
},
|
|
24
24
|
"keywords": [
|
|
25
25
|
"blockend",
|
|
26
|
-
"
|
|
27
|
-
"backend
|
|
28
|
-
"backend
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"backend cli",
|
|
33
|
-
"nodejs",
|
|
34
|
-
"nextjs",
|
|
26
|
+
"shadcn",
|
|
27
|
+
"backend-boilerplate",
|
|
28
|
+
"backend-starter",
|
|
29
|
+
"code-generation",
|
|
30
|
+
"scaffolding",
|
|
31
|
+
"typescript",
|
|
35
32
|
"express",
|
|
36
|
-
"
|
|
37
|
-
"hono",
|
|
33
|
+
"express-middleware",
|
|
38
34
|
"fastify",
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
35
|
+
"fastify-plugin",
|
|
36
|
+
"hono",
|
|
37
|
+
"hono-middleware",
|
|
38
|
+
"nextjs",
|
|
39
|
+
"middleware",
|
|
40
|
+
"rate-limiting",
|
|
41
|
+
"rate-limiter",
|
|
42
|
+
"request-validation",
|
|
43
|
+
"error-handling",
|
|
44
|
+
"logging",
|
|
45
|
+
"idempotency",
|
|
46
|
+
"password-hashing",
|
|
47
|
+
"argon2",
|
|
48
|
+
"api-security",
|
|
49
|
+
"mcp",
|
|
50
|
+
"mcp-server",
|
|
51
|
+
"developer-tools"
|
|
54
52
|
],
|
|
55
53
|
"homepage": "https://blockend.noorulhassan.com",
|
|
56
54
|
"repository": {
|