agmd 0.3.12 → 0.3.13
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.EN.md +1 -1
- package/README.md +2 -0
- package/es6/package.json +81 -0
- package/es6/script/cli/handle.js +20 -0
- package/es6/script/cli/handle.js.map +1 -0
- package/es6/script/cli/index.js +23 -0
- package/es6/script/cli/index.js.map +1 -0
- package/es6/script/help/index.js +24 -0
- package/es6/script/help/index.js.map +1 -0
- package/es6/src/bin.js +7 -0
- package/es6/src/bin.js.map +1 -0
- package/es6/src/commands/agmd.js +24 -0
- package/es6/src/commands/agmd.js.map +1 -0
- package/es6/src/commands/change-path.js +119 -0
- package/es6/src/commands/change-path.js.map +1 -0
- package/es6/src/commands/command-actions.js +101 -0
- package/es6/src/commands/command-actions.js.map +1 -0
- package/es6/src/commands/command-handler.js +123 -0
- package/es6/src/commands/command-handler.js.map +1 -0
- package/es6/src/commands/get-file.js +163 -0
- package/es6/src/commands/get-file.js.map +1 -0
- package/es6/src/commands/get-router.js +110 -0
- package/es6/src/commands/get-router.js.map +1 -0
- package/es6/src/commands/mark-file.js +130 -0
- package/es6/src/commands/mark-file.js.map +1 -0
- package/es6/src/commands/mark-write-file.js +53 -0
- package/es6/src/commands/mark-write-file.js.map +1 -0
- package/es6/src/commands/rename-path.js +186 -0
- package/es6/src/commands/rename-path.js.map +1 -0
- package/es6/src/commands/wirte-md.js +82 -0
- package/es6/src/commands/wirte-md.js.map +1 -0
- package/{lib/index.d.ts → es6/src/index.js} +1 -0
- package/es6/src/index.js.map +1 -0
- package/es6/src/shared/constant.js +5 -0
- package/es6/src/shared/constant.js.map +1 -0
- package/es6/src/types.js +2 -0
- package/es6/src/types.js.map +1 -0
- package/es6/src/utils/router-utils.js +37 -0
- package/es6/src/utils/router-utils.js.map +1 -0
- package/lib/package.json +81 -0
- package/lib/script/cli/handle.js +25 -0
- package/lib/script/cli/handle.js.map +1 -0
- package/lib/script/cli/index.js +28 -0
- package/lib/script/cli/index.js.map +1 -0
- package/lib/script/help/index.js +26 -0
- package/lib/script/help/index.js.map +1 -0
- package/lib/src/bin.js +9 -0
- package/lib/src/bin.js.map +1 -0
- package/lib/src/commands/agmd.js +29 -0
- package/lib/src/commands/agmd.js.map +1 -0
- package/lib/src/commands/change-path.js +132 -0
- package/lib/src/commands/change-path.js.map +1 -0
- package/lib/src/commands/command-actions.js +117 -0
- package/lib/src/commands/command-actions.js.map +1 -0
- package/lib/src/commands/command-handler.js +131 -0
- package/lib/src/commands/command-handler.js.map +1 -0
- package/lib/src/commands/get-file.js +173 -0
- package/lib/src/commands/get-file.js.map +1 -0
- package/lib/src/commands/get-router.js +143 -0
- package/lib/src/commands/get-router.js.map +1 -0
- package/lib/src/commands/mark-file.js +143 -0
- package/lib/src/commands/mark-file.js.map +1 -0
- package/lib/src/commands/mark-write-file.js +61 -0
- package/lib/src/commands/mark-write-file.js.map +1 -0
- package/lib/src/commands/rename-path.js +201 -0
- package/lib/src/commands/rename-path.js.map +1 -0
- package/lib/src/commands/wirte-md.js +90 -0
- package/lib/src/commands/wirte-md.js.map +1 -0
- package/lib/src/index.js +8 -0
- package/lib/src/index.js.map +1 -0
- package/lib/src/shared/constant.js +8 -0
- package/lib/src/shared/constant.js.map +1 -0
- package/lib/src/types.js +3 -0
- package/lib/src/types.js.map +1 -0
- package/lib/src/utils/router-utils.js +43 -0
- package/lib/src/utils/router-utils.js.map +1 -0
- package/package.json +26 -27
- package/bin/bin.js +0 -160
- package/bin/bin.js.map +0 -7
- package/lib/commands/change-path.d.ts +0 -12
- package/lib/commands/get-file.d.ts +0 -26
- package/lib/commands/wirte-md.d.ts +0 -9
- package/lib/index.cjs.js +0 -1251
- package/lib/index.cjs.js.map +0 -7
- package/lib/index.esm.js +0 -1243
- package/lib/index.esm.js.map +0 -7
- package/lib/shared/logger.d.ts +0 -7
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ItemType } from './get-file';
|
|
2
|
-
export declare function changePath(nodes: ItemType[], nochangePath?: Boolean): Promise<void>;
|
|
3
|
-
export declare function getRelatPath(absoluteImport: string, fullPath: string): string;
|
|
4
|
-
export declare function makeSuffix(filePath: string, fullPath: string): string;
|
|
5
|
-
export declare function getImportName(ele: string, dependencies: string[]): string;
|
|
6
|
-
export declare function changeImport(ele: string, fullPath: string, dependencies: string[], nochangePath?: Boolean): {
|
|
7
|
-
impName: string;
|
|
8
|
-
filePath: string;
|
|
9
|
-
absoluteImport: string;
|
|
10
|
-
};
|
|
11
|
-
export declare function witeFile(node: ItemType, isRelative?: Boolean, nochangePath?: Boolean): void;
|
|
12
|
-
export declare function wirteJsNodes(data: string, filePath: string): void;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export declare function getFile(fullPath: string): {
|
|
2
|
-
note: string;
|
|
3
|
-
size: number;
|
|
4
|
-
rowSize: number;
|
|
5
|
-
imports: string[];
|
|
6
|
-
};
|
|
7
|
-
export declare function getImport(sarr: any[], fullPath: string): string[];
|
|
8
|
-
export type ItemType = {
|
|
9
|
-
name: string;
|
|
10
|
-
copyed?: boolean;
|
|
11
|
-
isDir: boolean;
|
|
12
|
-
level: number;
|
|
13
|
-
note: string;
|
|
14
|
-
size?: number;
|
|
15
|
-
suffix?: string;
|
|
16
|
-
rowSize?: number;
|
|
17
|
-
fullPath: string;
|
|
18
|
-
belongTo: string[];
|
|
19
|
-
imports: string[];
|
|
20
|
-
children?: ItemType[];
|
|
21
|
-
};
|
|
22
|
-
export declare function getFileNodes(dir?: string, option?: {
|
|
23
|
-
ignore: string[] | undefined;
|
|
24
|
-
include: string[] | undefined;
|
|
25
|
-
} | undefined, nodes?: ItemType[], level?: number): ItemType[];
|
|
26
|
-
export declare function getNote(datas: ItemType[], keys?: string[]): string[];
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ItemType } from './get-file';
|
|
2
|
-
export declare function wirteMd(data: string, filePath: string): void;
|
|
3
|
-
export declare function getMd(option?: {
|
|
4
|
-
ignore: string[] | undefined;
|
|
5
|
-
include: string[] | undefined;
|
|
6
|
-
} | undefined): {
|
|
7
|
-
md: string;
|
|
8
|
-
nodes: ItemType[];
|
|
9
|
-
};
|