@akanjs/cli 0.0.90 → 0.0.92
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/README.md +24 -0
- package/index.js +104 -91
- package/package.json +1 -1
- package/{pkgs/@akanjs/cli/src → src}/application/application.command.d.ts +7 -7
- package/{pkgs/@akanjs/cli/src → src}/application/application.runner.d.ts +5 -5
- package/{pkgs/@akanjs/cli/src → src}/application/application.script.d.ts +8 -8
- package/pkgs/@akanjs/common/Logger.d.ts +0 -28
- package/pkgs/@akanjs/common/applyMixins.d.ts +0 -3
- package/pkgs/@akanjs/common/capitalize.d.ts +0 -1
- package/pkgs/@akanjs/common/deepObjectify.d.ts +0 -4
- package/pkgs/@akanjs/common/index.d.ts +0 -18
- package/pkgs/@akanjs/common/isDayjs.d.ts +0 -2
- package/pkgs/@akanjs/common/isQueryEqual.d.ts +0 -1
- package/pkgs/@akanjs/common/isValidDate.d.ts +0 -2
- package/pkgs/@akanjs/common/lowerlize.d.ts +0 -1
- package/pkgs/@akanjs/common/mergeVersion.d.ts +0 -10
- package/pkgs/@akanjs/common/objectify.d.ts +0 -1
- package/pkgs/@akanjs/common/pathGet.d.ts +0 -1
- package/pkgs/@akanjs/common/pathSet.d.ts +0 -1
- package/pkgs/@akanjs/common/pluralize.d.ts +0 -2
- package/pkgs/@akanjs/common/randomPick.d.ts +0 -1
- package/pkgs/@akanjs/common/randomPicks.d.ts +0 -1
- package/pkgs/@akanjs/common/sleep.d.ts +0 -1
- package/pkgs/@akanjs/common/splitVersion.d.ts +0 -11
- package/pkgs/@akanjs/common/types.d.ts +0 -15
- package/pkgs/@akanjs/config/index.d.ts +0 -3
- package/pkgs/@akanjs/config/src/akanConfig.d.ts +0 -7
- package/pkgs/@akanjs/config/src/nextConfig.d.ts +0 -14
- package/pkgs/@akanjs/config/src/types.d.ts +0 -135
- package/pkgs/@akanjs/devkit/index.d.ts +0 -1
- package/pkgs/@akanjs/devkit/src/aiEditor.d.ts +0 -31
- package/pkgs/@akanjs/devkit/src/auth.d.ts +0 -9
- package/pkgs/@akanjs/devkit/src/capacitorApp.d.ts +0 -21
- package/pkgs/@akanjs/devkit/src/commandDecorators/argMeta.d.ts +0 -55
- package/pkgs/@akanjs/devkit/src/commandDecorators/command.d.ts +0 -2
- package/pkgs/@akanjs/devkit/src/commandDecorators/commandMeta.d.ts +0 -2
- package/pkgs/@akanjs/devkit/src/commandDecorators/index.d.ts +0 -5
- package/pkgs/@akanjs/devkit/src/commandDecorators/targetMeta.d.ts +0 -18
- package/pkgs/@akanjs/devkit/src/commandDecorators/types.d.ts +0 -1
- package/pkgs/@akanjs/devkit/src/constants.d.ts +0 -26
- package/pkgs/@akanjs/devkit/src/createTunnel.d.ts +0 -8
- package/pkgs/@akanjs/devkit/src/dependencyScanner.d.ts +0 -8
- package/pkgs/@akanjs/devkit/src/executors.d.ts +0 -166
- package/pkgs/@akanjs/devkit/src/extractDeps.d.ts +0 -6
- package/pkgs/@akanjs/devkit/src/getCredentials.d.ts +0 -12
- package/pkgs/@akanjs/devkit/src/getModelFileData.d.ts +0 -16
- package/pkgs/@akanjs/devkit/src/getRelatedCnsts.d.ts +0 -53
- package/pkgs/@akanjs/devkit/src/index.d.ts +0 -16
- package/pkgs/@akanjs/devkit/src/selectModel.d.ts +0 -1
- package/pkgs/@akanjs/devkit/src/streamAi.d.ts +0 -6
- package/pkgs/@akanjs/devkit/src/types.d.ts +0 -20
- package/pkgs/@akanjs/devkit/src/uploadRelease.d.ts +0 -9
- /package/{pkgs/@akanjs/cli/index.d.ts → index.d.ts} +0 -0
- /package/{pkgs/@akanjs/cli/src → src}/application/application.prompt.d.ts +0 -0
- /package/{pkgs/@akanjs/cli/src → src}/cloud/cloud.command.d.ts +0 -0
- /package/{pkgs/@akanjs/cli/src → src}/cloud/cloud.runner.d.ts +0 -0
- /package/{pkgs/@akanjs/cli/src → src}/cloud/cloud.script.d.ts +0 -0
- /package/{pkgs/@akanjs/cli/src → src}/library/library.command.d.ts +0 -0
- /package/{pkgs/@akanjs/cli/src → src}/library/library.runner.d.ts +0 -0
- /package/{pkgs/@akanjs/cli/src → src}/library/library.script.d.ts +0 -0
- /package/{pkgs/@akanjs/cli/src → src}/module/module.command.d.ts +0 -0
- /package/{pkgs/@akanjs/cli/src → src}/module/module.prompt.d.ts +0 -0
- /package/{pkgs/@akanjs/cli/src → src}/module/module.runner.d.ts +0 -0
- /package/{pkgs/@akanjs/cli/src → src}/module/module.script.d.ts +0 -0
- /package/{pkgs/@akanjs/cli/src → src}/package/package.command.d.ts +0 -0
- /package/{pkgs/@akanjs/cli/src → src}/package/package.runner.d.ts +0 -0
- /package/{pkgs/@akanjs/cli/src → src}/package/package.script.d.ts +0 -0
- /package/{pkgs/@akanjs/cli/src → src}/page/page.command.d.ts +0 -0
- /package/{pkgs/@akanjs/cli/src → src}/page/page.runner.d.ts +0 -0
- /package/{pkgs/@akanjs/cli/src → src}/page/page.script.d.ts +0 -0
- /package/{pkgs/@akanjs/cli/src → src}/workspace/workspace.command.d.ts +0 -0
- /package/{pkgs/@akanjs/cli/src → src}/workspace/workspace.runner.d.ts +0 -0
- /package/{pkgs/@akanjs/cli/src → src}/workspace/workspace.script.d.ts +0 -0
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { Logger } from "@akanjs/common";
|
|
2
|
-
import { type AppConfigResult, AppScanResult, type LibConfigResult, LibScanResult, PkgScanResult, WorkspaceScanResult } from "@akanjs/config";
|
|
3
|
-
import { type ExecOptions, type ForkOptions, type SpawnOptions } from "child_process";
|
|
4
|
-
import type { PackageJson, TsConfigJson } from "./types";
|
|
5
|
-
export declare class Executor {
|
|
6
|
-
#private;
|
|
7
|
-
logger: Logger;
|
|
8
|
-
cwdPath: string;
|
|
9
|
-
constructor(name: string, cwdPath: string);
|
|
10
|
-
exec(command: string, options?: ExecOptions): Promise<unknown>;
|
|
11
|
-
spawn(command: string, args?: string[], options?: SpawnOptions): Promise<{
|
|
12
|
-
code: number | null;
|
|
13
|
-
signal: string | null;
|
|
14
|
-
}>;
|
|
15
|
-
fork(modulePath: string, args?: string[], options?: ForkOptions): Promise<unknown>;
|
|
16
|
-
mkdir(dirPath: string): this;
|
|
17
|
-
exists(filePath: string): boolean;
|
|
18
|
-
writeFile(filePath: string, content: string | object, { overwrite }?: {
|
|
19
|
-
overwrite?: boolean;
|
|
20
|
-
}): this;
|
|
21
|
-
writeJson(filePath: string, content: object): this;
|
|
22
|
-
getLocalFile(filePath: string): {
|
|
23
|
-
filepath: string;
|
|
24
|
-
content: string;
|
|
25
|
-
};
|
|
26
|
-
readFile(filePath: string): string;
|
|
27
|
-
readJson(filePath: string): object;
|
|
28
|
-
cp(srcPath: string, destPath: string): Promise<void>;
|
|
29
|
-
log(msg: string): this;
|
|
30
|
-
verbose(msg: string): this;
|
|
31
|
-
getTsConfig(pathname: string): TsConfigJson;
|
|
32
|
-
applyTemplate({ basePath, template, scanResult, dict, overwrite, }: {
|
|
33
|
-
basePath: string;
|
|
34
|
-
template: string;
|
|
35
|
-
scanResult?: AppScanResult | LibScanResult | null;
|
|
36
|
-
dict?: {
|
|
37
|
-
[key: string]: string;
|
|
38
|
-
};
|
|
39
|
-
overwrite?: boolean;
|
|
40
|
-
}): Promise<void>;
|
|
41
|
-
}
|
|
42
|
-
interface ExecutorOptions {
|
|
43
|
-
workspaceRoot: string;
|
|
44
|
-
repoName: string;
|
|
45
|
-
}
|
|
46
|
-
export declare class WorkspaceExecutor extends Executor {
|
|
47
|
-
#private;
|
|
48
|
-
workspaceRoot: string;
|
|
49
|
-
repoName: string;
|
|
50
|
-
constructor({ workspaceRoot, repoName }: ExecutorOptions);
|
|
51
|
-
static fromRoot(): WorkspaceExecutor;
|
|
52
|
-
getBaseDevEnv(): {
|
|
53
|
-
repoName: string;
|
|
54
|
-
serveDomain: string;
|
|
55
|
-
env: "debug" | "testing" | "develop" | "main";
|
|
56
|
-
name?: string | undefined;
|
|
57
|
-
};
|
|
58
|
-
scan(): Promise<WorkspaceScanResult>;
|
|
59
|
-
getApps(): Promise<string[]>;
|
|
60
|
-
getLibs(): Promise<string[]>;
|
|
61
|
-
getSyss(): Promise<[string[], string[]]>;
|
|
62
|
-
getPkgs(): Promise<string[]>;
|
|
63
|
-
setTsPaths(type: "app" | "lib", name: string): this;
|
|
64
|
-
getDirInModule(basePath: string, name: string): Promise<string[]>;
|
|
65
|
-
commit(message: string, { init, add }?: {
|
|
66
|
-
init?: boolean;
|
|
67
|
-
add?: boolean;
|
|
68
|
-
}): Promise<void>;
|
|
69
|
-
getScalarConstantFiles(): Promise<{
|
|
70
|
-
filepath: string;
|
|
71
|
-
content: string;
|
|
72
|
-
}[]>;
|
|
73
|
-
getViewFiles(): Promise<{
|
|
74
|
-
filepath: string;
|
|
75
|
-
content: string;
|
|
76
|
-
}[]>;
|
|
77
|
-
}
|
|
78
|
-
interface SysExecutorOptions {
|
|
79
|
-
workspace?: WorkspaceExecutor;
|
|
80
|
-
name: string;
|
|
81
|
-
type: "app" | "lib";
|
|
82
|
-
}
|
|
83
|
-
export declare class SysExecutor extends Executor {
|
|
84
|
-
workspace: WorkspaceExecutor;
|
|
85
|
-
name: string;
|
|
86
|
-
type: "app" | "lib";
|
|
87
|
-
constructor({ workspace, name, type }: SysExecutorOptions);
|
|
88
|
-
getConfig(command?: string): Promise<LibConfigResult>;
|
|
89
|
-
getModules(): Promise<string[]>;
|
|
90
|
-
scan({ tsconfig, akanConfig, }: {
|
|
91
|
-
tsconfig?: TsConfigJson;
|
|
92
|
-
akanConfig: AppConfigResult | LibConfigResult;
|
|
93
|
-
}, libScanResults?: {
|
|
94
|
-
[key: string]: LibScanResult;
|
|
95
|
-
}): Promise<AppScanResult | LibScanResult>;
|
|
96
|
-
getLocalFile(filePath: string): {
|
|
97
|
-
filepath: string;
|
|
98
|
-
content: string;
|
|
99
|
-
};
|
|
100
|
-
getDatabaseModules(): Promise<string[]>;
|
|
101
|
-
getServiceModules(): Promise<string[]>;
|
|
102
|
-
getScalarModules(): Promise<string[]>;
|
|
103
|
-
getViewComponents(): Promise<string[]>;
|
|
104
|
-
getUnitComponents(): Promise<string[]>;
|
|
105
|
-
getTemplateComponents(): Promise<string[]>;
|
|
106
|
-
getViewsSourceCode(): Promise<{
|
|
107
|
-
filepath: string;
|
|
108
|
-
content: string;
|
|
109
|
-
}[]>;
|
|
110
|
-
getUnitsSourceCode(): Promise<{
|
|
111
|
-
filepath: string;
|
|
112
|
-
content: string;
|
|
113
|
-
}[]>;
|
|
114
|
-
getTemplatesSourceCode(): Promise<{
|
|
115
|
-
filepath: string;
|
|
116
|
-
content: string;
|
|
117
|
-
}[]>;
|
|
118
|
-
getScalarConstantFiles(): Promise<{
|
|
119
|
-
filepath: string;
|
|
120
|
-
content: string;
|
|
121
|
-
}[]>;
|
|
122
|
-
getScalarDictionaryFiles(): Promise<{
|
|
123
|
-
filepath: string;
|
|
124
|
-
content: string;
|
|
125
|
-
}[]>;
|
|
126
|
-
setTsPaths(): this;
|
|
127
|
-
}
|
|
128
|
-
interface AppExecutorOptions {
|
|
129
|
-
workspace?: WorkspaceExecutor;
|
|
130
|
-
name: string;
|
|
131
|
-
}
|
|
132
|
-
export declare class AppExecutor extends SysExecutor {
|
|
133
|
-
dist: Executor;
|
|
134
|
-
constructor({ workspace, name }: AppExecutorOptions);
|
|
135
|
-
static from(executor: SysExecutor | WorkspaceExecutor, name: string): AppExecutor;
|
|
136
|
-
getConfig(command?: string): Promise<AppConfigResult>;
|
|
137
|
-
syncAssets(libDeps: string[]): Promise<void>;
|
|
138
|
-
}
|
|
139
|
-
interface LibExecutorOptions {
|
|
140
|
-
workspace?: WorkspaceExecutor;
|
|
141
|
-
name: string;
|
|
142
|
-
}
|
|
143
|
-
export declare class LibExecutor extends SysExecutor {
|
|
144
|
-
workspaceRoot: string;
|
|
145
|
-
repoName: string;
|
|
146
|
-
dist: Executor;
|
|
147
|
-
constructor({ workspace, name }: LibExecutorOptions);
|
|
148
|
-
static from(executor: SysExecutor | WorkspaceExecutor, name: string): LibExecutor;
|
|
149
|
-
getConfig(command?: string): Promise<LibConfigResult>;
|
|
150
|
-
}
|
|
151
|
-
interface PkgExecutorOptions {
|
|
152
|
-
workspace?: WorkspaceExecutor;
|
|
153
|
-
name: string;
|
|
154
|
-
}
|
|
155
|
-
export declare class PkgExecutor extends Executor {
|
|
156
|
-
workspace: WorkspaceExecutor;
|
|
157
|
-
name: string;
|
|
158
|
-
dist: Executor;
|
|
159
|
-
constructor({ workspace, name }: PkgExecutorOptions);
|
|
160
|
-
static from(executor: SysExecutor | WorkspaceExecutor, name: string): PkgExecutor;
|
|
161
|
-
scan({ packageJson, tsconfig, }?: {
|
|
162
|
-
packageJson?: PackageJson;
|
|
163
|
-
tsconfig?: TsConfigJson;
|
|
164
|
-
}): Promise<PkgScanResult>;
|
|
165
|
-
}
|
|
166
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { AppExecutor } from "./executors";
|
|
2
|
-
export interface AppSecret {
|
|
3
|
-
mongo: {
|
|
4
|
-
account: {
|
|
5
|
-
user: {
|
|
6
|
-
username: string;
|
|
7
|
-
password: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
export declare const getCredentials: (app: AppExecutor, environment: string) => AppSecret;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
interface ModelFileData {
|
|
2
|
-
moduleType: "lib" | "app";
|
|
3
|
-
moduleName: string;
|
|
4
|
-
modelName: string;
|
|
5
|
-
constantFilePath: string;
|
|
6
|
-
importModelNames: string[];
|
|
7
|
-
hasImportScalar: boolean;
|
|
8
|
-
importLibNames: string[];
|
|
9
|
-
constantFileStr: string;
|
|
10
|
-
unitFilePath: string;
|
|
11
|
-
unitFileStr: string;
|
|
12
|
-
viewFilePath: string;
|
|
13
|
-
viewFileStr: string;
|
|
14
|
-
}
|
|
15
|
-
export declare const getModelFileData: (modulePath: string, modelName: string) => ModelFileData;
|
|
16
|
-
export {};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import * as ts from "typescript";
|
|
2
|
-
/**
|
|
3
|
-
* TypeScript 설정 파일을 읽고 파싱하는 함수
|
|
4
|
-
*/
|
|
5
|
-
export declare const parseTsConfig: (tsConfigPath?: string) => ts.ParsedCommandLine;
|
|
6
|
-
/**
|
|
7
|
-
* 파일 내의 임포트를 기반으로 관련 파일을 수집하는 함수
|
|
8
|
-
*/
|
|
9
|
-
export declare const collectImportedFiles: (constantFilePath: string, parsedConfig: ts.ParsedCommandLine) => {
|
|
10
|
-
allFilesToAnalyze: Set<string>;
|
|
11
|
-
analyzedFiles: Set<string>;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* export 선언을 기반으로 관련 파일을 수집하는 함수
|
|
15
|
-
*/
|
|
16
|
-
export declare const collectExportedFiles: (constantFilePath: string, parsedConfig: ts.ParsedCommandLine) => {
|
|
17
|
-
allFilesToAnalyze: Set<string>;
|
|
18
|
-
analyzedFiles: Set<string>;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* TypeScript 프로그램 생성 함수
|
|
22
|
-
*/
|
|
23
|
-
export declare const createTsProgram: (filePaths: Set<string>, options: ts.CompilerOptions) => {
|
|
24
|
-
program: ts.Program;
|
|
25
|
-
checker: ts.TypeChecker;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* 심볼 캐싱 및 조회 함수 생성기
|
|
29
|
-
*/
|
|
30
|
-
export declare const createSymbolCache: (checker: ts.TypeChecker) => (node: ts.Node) => ts.Symbol | undefined;
|
|
31
|
-
/**
|
|
32
|
-
* 파일 속성 분석 함수
|
|
33
|
-
*/
|
|
34
|
-
export declare const analyzeProperties: (filesToAnalyze: Set<string>, program: ts.Program, checker: ts.TypeChecker) => Map<string, {
|
|
35
|
-
filePath: string;
|
|
36
|
-
isLibModule: boolean;
|
|
37
|
-
isImport: boolean;
|
|
38
|
-
isScalar: boolean;
|
|
39
|
-
source: string;
|
|
40
|
-
libName?: string;
|
|
41
|
-
}>;
|
|
42
|
-
/**
|
|
43
|
-
* 메인 함수: 상수 파일 관련 요소 분석
|
|
44
|
-
*/
|
|
45
|
-
export declare const getRelatedCnsts: (constantFilePath: string) => {
|
|
46
|
-
filePath: string;
|
|
47
|
-
isLibModule: boolean;
|
|
48
|
-
isImport: boolean;
|
|
49
|
-
isScalar: boolean;
|
|
50
|
-
source: string;
|
|
51
|
-
libName?: string;
|
|
52
|
-
key: string;
|
|
53
|
-
}[];
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export * from "./createTunnel";
|
|
2
|
-
export * from "./getCredentials";
|
|
3
|
-
export * from "./uploadRelease";
|
|
4
|
-
export * from "./getModelFileData";
|
|
5
|
-
export * from "./getRelatedCnsts";
|
|
6
|
-
export * from "./selectModel";
|
|
7
|
-
export * from "./streamAi";
|
|
8
|
-
export * from "./executors";
|
|
9
|
-
export * from "./dependencyScanner";
|
|
10
|
-
export * from "./constants";
|
|
11
|
-
export * from "./auth";
|
|
12
|
-
export * from "./types";
|
|
13
|
-
export * from "./capacitorApp";
|
|
14
|
-
export * from "./extractDeps";
|
|
15
|
-
export * from "./commandDecorators";
|
|
16
|
-
export * from "./aiEditor";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const selectModel: (modulePath: string) => Promise<string>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export interface PackageJson {
|
|
2
|
-
name: string;
|
|
3
|
-
type?: "module" | "commonjs";
|
|
4
|
-
version: string;
|
|
5
|
-
main?: string;
|
|
6
|
-
description: string;
|
|
7
|
-
scripts?: Record<string, string>;
|
|
8
|
-
dependencies?: Record<string, string>;
|
|
9
|
-
devDependencies?: Record<string, string>;
|
|
10
|
-
peerDependencies?: Record<string, string>;
|
|
11
|
-
engines?: Record<string, string>;
|
|
12
|
-
exports?: Record<string, Record<string, string>>;
|
|
13
|
-
}
|
|
14
|
-
export interface TsConfigJson {
|
|
15
|
-
extends?: string;
|
|
16
|
-
compilerOptions: {
|
|
17
|
-
target: string;
|
|
18
|
-
paths: Record<string, string[]>;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const uploadRelease: (projectName: string, { workspaceRoot, environment, buildNum, platformVersion, local, }: {
|
|
2
|
-
workspaceRoot: string;
|
|
3
|
-
environment: string;
|
|
4
|
-
buildNum: number;
|
|
5
|
-
platformVersion?: string;
|
|
6
|
-
local?: boolean;
|
|
7
|
-
}) => Promise<{
|
|
8
|
-
id: string;
|
|
9
|
-
} | null>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|