@akanjs/cli 0.0.88 → 0.0.90
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/index.js +1248 -486
- package/package.json +1 -1
- package/pkgs/@akanjs/cli/src/application/application.command.d.ts +6 -6
- package/pkgs/@akanjs/cli/src/application/application.runner.d.ts +15 -7
- package/pkgs/@akanjs/cli/src/application/application.script.d.ts +46 -16
- package/pkgs/@akanjs/cli/src/cloud/cloud.command.d.ts +3 -0
- package/pkgs/@akanjs/cli/src/cloud/cloud.runner.d.ts +2 -0
- package/pkgs/@akanjs/cli/src/cloud/cloud.script.d.ts +3 -0
- package/pkgs/@akanjs/cli/src/library/library.command.d.ts +1 -1
- package/pkgs/@akanjs/cli/src/library/library.runner.d.ts +2 -0
- package/pkgs/@akanjs/cli/src/library/library.script.d.ts +2 -0
- package/pkgs/@akanjs/cli/src/module/module.prompt.d.ts +17 -8
- package/pkgs/@akanjs/cli/src/module/module.runner.d.ts +1 -3
- package/pkgs/@akanjs/cli/src/module/module.script.d.ts +1 -1
- package/pkgs/@akanjs/cli/src/package/package.command.d.ts +1 -1
- package/pkgs/@akanjs/cli/src/package/package.runner.d.ts +3 -2
- package/pkgs/@akanjs/cli/src/package/package.script.d.ts +3 -2
- package/pkgs/@akanjs/devkit/src/aiEditor.d.ts +14 -0
- package/pkgs/@akanjs/devkit/src/constants.d.ts +8 -1
- package/pkgs/@akanjs/devkit/src/executors.d.ts +24 -31
- package/pkgs/@akanjs/devkit/src/getRelatedCnsts.d.ts +52 -8
- package/pkgs/@akanjs/devkit/src/index.d.ts +0 -1
- package/src/templates/workspaceRoot/package.json.template +5 -0
- package/pkgs/@akanjs/devkit/src/installExternalLib.d.ts +0 -2
- /package/pkgs/@akanjs/cli/src/{package/page → page}/page.command.d.ts +0 -0
- /package/pkgs/@akanjs/cli/src/{package/page → page}/page.runner.d.ts +0 -0
- /package/pkgs/@akanjs/cli/src/{package/page → page}/page.script.d.ts +0 -0
|
@@ -61,6 +61,7 @@ export declare class WorkspaceExecutor extends Executor {
|
|
|
61
61
|
getSyss(): Promise<[string[], string[]]>;
|
|
62
62
|
getPkgs(): Promise<string[]>;
|
|
63
63
|
setTsPaths(type: "app" | "lib", name: string): this;
|
|
64
|
+
getDirInModule(basePath: string, name: string): Promise<string[]>;
|
|
64
65
|
commit(message: string, { init, add }?: {
|
|
65
66
|
init?: boolean;
|
|
66
67
|
add?: boolean;
|
|
@@ -69,6 +70,10 @@ export declare class WorkspaceExecutor extends Executor {
|
|
|
69
70
|
filepath: string;
|
|
70
71
|
content: string;
|
|
71
72
|
}[]>;
|
|
73
|
+
getViewFiles(): Promise<{
|
|
74
|
+
filepath: string;
|
|
75
|
+
content: string;
|
|
76
|
+
}[]>;
|
|
72
77
|
}
|
|
73
78
|
interface SysExecutorOptions {
|
|
74
79
|
workspace?: WorkspaceExecutor;
|
|
@@ -81,6 +86,7 @@ export declare class SysExecutor extends Executor {
|
|
|
81
86
|
type: "app" | "lib";
|
|
82
87
|
constructor({ workspace, name, type }: SysExecutorOptions);
|
|
83
88
|
getConfig(command?: string): Promise<LibConfigResult>;
|
|
89
|
+
getModules(): Promise<string[]>;
|
|
84
90
|
scan({ tsconfig, akanConfig, }: {
|
|
85
91
|
tsconfig?: TsConfigJson;
|
|
86
92
|
akanConfig: AppConfigResult | LibConfigResult;
|
|
@@ -94,7 +100,21 @@ export declare class SysExecutor extends Executor {
|
|
|
94
100
|
getDatabaseModules(): Promise<string[]>;
|
|
95
101
|
getServiceModules(): Promise<string[]>;
|
|
96
102
|
getScalarModules(): Promise<string[]>;
|
|
97
|
-
|
|
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
|
+
}[]>;
|
|
98
118
|
getScalarConstantFiles(): Promise<{
|
|
99
119
|
filepath: string;
|
|
100
120
|
content: string;
|
|
@@ -110,20 +130,12 @@ interface AppExecutorOptions {
|
|
|
110
130
|
name: string;
|
|
111
131
|
}
|
|
112
132
|
export declare class AppExecutor extends SysExecutor {
|
|
133
|
+
dist: Executor;
|
|
113
134
|
constructor({ workspace, name }: AppExecutorOptions);
|
|
114
135
|
static from(executor: SysExecutor | WorkspaceExecutor, name: string): AppExecutor;
|
|
115
136
|
getConfig(command?: string): Promise<AppConfigResult>;
|
|
116
137
|
syncAssets(libDeps: string[]): Promise<void>;
|
|
117
138
|
}
|
|
118
|
-
interface DistAppExecutorOptions {
|
|
119
|
-
workspace: WorkspaceExecutor;
|
|
120
|
-
name: string;
|
|
121
|
-
}
|
|
122
|
-
export declare class DistAppExecutor extends Executor {
|
|
123
|
-
name: string;
|
|
124
|
-
constructor({ workspace, name }: DistAppExecutorOptions);
|
|
125
|
-
static from(executor: SysExecutor | WorkspaceExecutor, name: string): DistAppExecutor;
|
|
126
|
-
}
|
|
127
139
|
interface LibExecutorOptions {
|
|
128
140
|
workspace?: WorkspaceExecutor;
|
|
129
141
|
name: string;
|
|
@@ -131,19 +143,11 @@ interface LibExecutorOptions {
|
|
|
131
143
|
export declare class LibExecutor extends SysExecutor {
|
|
132
144
|
workspaceRoot: string;
|
|
133
145
|
repoName: string;
|
|
146
|
+
dist: Executor;
|
|
134
147
|
constructor({ workspace, name }: LibExecutorOptions);
|
|
135
148
|
static from(executor: SysExecutor | WorkspaceExecutor, name: string): LibExecutor;
|
|
136
149
|
getConfig(command?: string): Promise<LibConfigResult>;
|
|
137
150
|
}
|
|
138
|
-
interface DistLibExecutorOptions {
|
|
139
|
-
workspace: WorkspaceExecutor;
|
|
140
|
-
name: string;
|
|
141
|
-
}
|
|
142
|
-
export declare class DistLibExecutor extends Executor {
|
|
143
|
-
name: string;
|
|
144
|
-
constructor({ workspace, name }: DistLibExecutorOptions);
|
|
145
|
-
static from(executor: SysExecutor | WorkspaceExecutor, name: string): DistAppExecutor | DistLibExecutor;
|
|
146
|
-
}
|
|
147
151
|
interface PkgExecutorOptions {
|
|
148
152
|
workspace?: WorkspaceExecutor;
|
|
149
153
|
name: string;
|
|
@@ -151,6 +155,7 @@ interface PkgExecutorOptions {
|
|
|
151
155
|
export declare class PkgExecutor extends Executor {
|
|
152
156
|
workspace: WorkspaceExecutor;
|
|
153
157
|
name: string;
|
|
158
|
+
dist: Executor;
|
|
154
159
|
constructor({ workspace, name }: PkgExecutorOptions);
|
|
155
160
|
static from(executor: SysExecutor | WorkspaceExecutor, name: string): PkgExecutor;
|
|
156
161
|
scan({ packageJson, tsconfig, }?: {
|
|
@@ -158,16 +163,4 @@ export declare class PkgExecutor extends Executor {
|
|
|
158
163
|
tsconfig?: TsConfigJson;
|
|
159
164
|
}): Promise<PkgScanResult>;
|
|
160
165
|
}
|
|
161
|
-
interface DistPkgExecutorOptions {
|
|
162
|
-
workspaceRoot: string;
|
|
163
|
-
repoName: string;
|
|
164
|
-
name: string;
|
|
165
|
-
}
|
|
166
|
-
export declare class DistPkgExecutor extends Executor {
|
|
167
|
-
workspaceRoot: string;
|
|
168
|
-
repoName: string;
|
|
169
|
-
name: string;
|
|
170
|
-
constructor({ workspaceRoot, repoName, name }: DistPkgExecutorOptions);
|
|
171
|
-
static from(workspaceExecutor: WorkspaceExecutor, name: string): DistPkgExecutor;
|
|
172
|
-
}
|
|
173
166
|
export {};
|
|
@@ -1,9 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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>;
|
|
9
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
|
+
}[];
|
|
File without changes
|
|
File without changes
|
|
File without changes
|