@objectstack/cli 1.0.10 → 1.0.12
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/.turbo/turbo-build.log +14 -9
- package/CHANGELOG.md +24 -0
- package/README.md +132 -13
- package/dist/bin.js +1488 -178
- package/dist/index.d.ts +97 -1
- package/dist/index.js +1938 -5
- package/package.json +9 -9
- package/src/bin.ts +53 -6
- package/src/commands/compile.ts +66 -39
- package/src/commands/create.ts +15 -11
- package/src/commands/dev.ts +12 -16
- package/src/commands/doctor.ts +13 -9
- package/src/commands/generate.ts +297 -0
- package/src/commands/info.ts +111 -0
- package/src/commands/init.ts +313 -0
- package/src/commands/serve.ts +134 -48
- package/src/commands/studio.ts +40 -0
- package/src/commands/test.ts +2 -2
- package/src/commands/validate.ts +130 -0
- package/src/index.ts +9 -0
- package/src/utils/config.ts +78 -0
- package/src/utils/console.ts +319 -0
- package/src/utils/format.ts +261 -0
- package/test/commands.test.ts +26 -1
- package/tsup.config.ts +18 -9
- package/dist/bin.d.ts +0 -2
- package/dist/chunk-2YXVEYO7.js +0 -64
package/dist/index.d.ts
CHANGED
|
@@ -2,4 +2,100 @@ import { Command } from 'commander';
|
|
|
2
2
|
|
|
3
3
|
declare const compileCommand: Command;
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
declare const validateCommand: Command;
|
|
6
|
+
|
|
7
|
+
declare const infoCommand: Command;
|
|
8
|
+
|
|
9
|
+
declare const initCommand: Command;
|
|
10
|
+
|
|
11
|
+
declare const generateCommand: Command;
|
|
12
|
+
|
|
13
|
+
declare const templates: {
|
|
14
|
+
plugin: {
|
|
15
|
+
description: string;
|
|
16
|
+
files: {
|
|
17
|
+
'package.json': (name: string) => {
|
|
18
|
+
name: string;
|
|
19
|
+
version: string;
|
|
20
|
+
description: string;
|
|
21
|
+
main: string;
|
|
22
|
+
types: string;
|
|
23
|
+
scripts: {
|
|
24
|
+
build: string;
|
|
25
|
+
dev: string;
|
|
26
|
+
test: string;
|
|
27
|
+
};
|
|
28
|
+
keywords: string[];
|
|
29
|
+
author: string;
|
|
30
|
+
license: string;
|
|
31
|
+
dependencies: {
|
|
32
|
+
'@objectstack/spec': string;
|
|
33
|
+
zod: string;
|
|
34
|
+
};
|
|
35
|
+
devDependencies: {
|
|
36
|
+
'@types/node': string;
|
|
37
|
+
typescript: string;
|
|
38
|
+
vitest: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
'tsconfig.json': () => {
|
|
42
|
+
extends: string;
|
|
43
|
+
compilerOptions: {
|
|
44
|
+
outDir: string;
|
|
45
|
+
rootDir: string;
|
|
46
|
+
};
|
|
47
|
+
include: string[];
|
|
48
|
+
};
|
|
49
|
+
'src/index.ts': (name: string) => string;
|
|
50
|
+
'README.md': (name: string) => string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
example: {
|
|
54
|
+
description: string;
|
|
55
|
+
files: {
|
|
56
|
+
'package.json': (name: string) => {
|
|
57
|
+
name: string;
|
|
58
|
+
version: string;
|
|
59
|
+
private: boolean;
|
|
60
|
+
description: string;
|
|
61
|
+
scripts: {
|
|
62
|
+
build: string;
|
|
63
|
+
dev: string;
|
|
64
|
+
test: string;
|
|
65
|
+
};
|
|
66
|
+
dependencies: {
|
|
67
|
+
'@objectstack/spec': string;
|
|
68
|
+
'@objectstack/cli': string;
|
|
69
|
+
zod: string;
|
|
70
|
+
};
|
|
71
|
+
devDependencies: {
|
|
72
|
+
'@types/node': string;
|
|
73
|
+
tsx: string;
|
|
74
|
+
typescript: string;
|
|
75
|
+
vitest: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
'objectstack.config.ts': (name: string) => string;
|
|
79
|
+
'README.md': (name: string) => string;
|
|
80
|
+
'tsconfig.json': () => {
|
|
81
|
+
extends: string;
|
|
82
|
+
compilerOptions: {
|
|
83
|
+
outDir: string;
|
|
84
|
+
rootDir: string;
|
|
85
|
+
};
|
|
86
|
+
include: string[];
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
declare const createCommand: Command;
|
|
92
|
+
|
|
93
|
+
declare const devCommand: Command;
|
|
94
|
+
|
|
95
|
+
declare const serveCommand: Command;
|
|
96
|
+
|
|
97
|
+
declare const testCommand: Command;
|
|
98
|
+
|
|
99
|
+
declare const doctorCommand: Command;
|
|
100
|
+
|
|
101
|
+
export { compileCommand, createCommand, devCommand, doctorCommand, generateCommand, infoCommand, initCommand, serveCommand, templates, testCommand, validateCommand };
|