@simplysm/sd-cli 5.0.21 → 5.0.26

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.
Files changed (39) hide show
  1. package/dist-types/builders/SdCliPackage.d.ts +1 -2
  2. package/package.json +7 -7
  3. package/dist-types/bin/sd-cli.d.ts +0 -2
  4. package/dist-types/build-tools/SdCliClientCompiler.d.ts +0 -19
  5. package/dist-types/build-tools/SdCliCordovaTool.d.ts +0 -6
  6. package/dist-types/build-tools/SdCliGenDbMigration.d.ts +0 -4
  7. package/dist-types/build-tools/SdCliIndexFileGenerateWatcher.d.ts +0 -9
  8. package/dist-types/build-tools/SdCliLinter.d.ts +0 -8
  9. package/dist-types/build-tools/SdCliLocalUpdater.d.ts +0 -8
  10. package/dist-types/build-tools/SdCliNgMetadataGenerator.d.ts +0 -17
  11. package/dist-types/build-tools/SdCliNgModuleGenerator.d.ts +0 -13
  12. package/dist-types/build-tools/SdCliServerCompiler.d.ts +0 -19
  13. package/dist-types/build-tools/SdCliTsProgramWatcher.d.ts +0 -24
  14. package/dist-types/builders/SdCliCheck.d.ts +0 -4
  15. package/dist-types/builders/SdCliCordova.d.ts +0 -3
  16. package/dist-types/builders/SdCliElectron.d.ts +0 -4
  17. package/dist-types/builders/SdCliFileCrypto.d.ts +0 -7
  18. package/dist-types/builders/SdCliProject.d.ts +0 -30
  19. package/dist-types/commons.d.ts +0 -125
  20. package/dist-types/index.d.ts +0 -35
  21. package/dist-types/loaders/inline-sass-loader.d.ts +0 -3
  22. package/dist-types/metadata/SdArrayMetadata.d.ts +0 -11
  23. package/dist-types/metadata/SdCallMetadata.d.ts +0 -15
  24. package/dist-types/metadata/SdClassMetadata.d.ts +0 -16
  25. package/dist-types/metadata/SdErrorMetadata.d.ts +0 -9
  26. package/dist-types/metadata/SdFunctionMetadata.d.ts +0 -11
  27. package/dist-types/metadata/SdMetadataCollector.d.ts +0 -57
  28. package/dist-types/metadata/SdMetadataError.d.ts +0 -6
  29. package/dist-types/metadata/SdModuleMetadata.d.ts +0 -10
  30. package/dist-types/metadata/SdObjectMetadata.d.ts +0 -11
  31. package/dist-types/utils/SdAngularUtil.d.ts +0 -6
  32. package/dist-types/utils/SdCliPathUtil.d.ts +0 -10
  33. package/dist-types/utils/SdCliResultCacheMap.d.ts +0 -7
  34. package/dist-types/utils/SdProjectConfigUtil.d.ts +0 -6
  35. package/dist-types/utils/SdTsDiagnosticUtil.d.ts +0 -5
  36. package/dist-types/utils/SdWebpackSourceStringReplacePlugin.d.ts +0 -10
  37. package/dist-types/utils/SdWebpackUtil.d.ts +0 -5
  38. package/dist-types/utils/SdWebpackWriteFilePlugin.d.ts +0 -9
  39. package/dist-types/workers/build-worker.d.ts +0 -1
@@ -1,6 +1,5 @@
1
1
  /// <reference types="node" />
2
2
  import { INpmConfig, ISdPackageBuildResult } from "../commons";
3
- import { SdProcessWorkManager } from "@simplysm/sd-core-node";
4
3
  import { EventEmitter } from "events";
5
4
  import { SdServiceServer } from "@simplysm/sd-service-node";
6
5
  import { NextHandleFunction } from "connect";
@@ -10,7 +9,7 @@ export declare class SdCliPackage extends EventEmitter {
10
9
  readonly config?: import("../commons").ISdLibraryPackageConfig | import("../commons").ISdClientPackageConfig | import("../commons").ISdServerPackageConfig | import("../commons").ISdNonePackageConfig | import("../commons").ISdTestPackageConfig | undefined;
11
10
  private readonly _processWorkManager?;
12
11
  get fullDependencies(): string[];
13
- constructor(rootPath: string, npmConfig: INpmConfig, config?: import("../commons").ISdLibraryPackageConfig | import("../commons").ISdClientPackageConfig | import("../commons").ISdServerPackageConfig | import("../commons").ISdNonePackageConfig | import("../commons").ISdTestPackageConfig | undefined, _processWorkManager?: SdProcessWorkManager | undefined);
12
+ constructor(rootPath: string, npmConfig: INpmConfig, config?: import("../commons").ISdLibraryPackageConfig | import("../commons").ISdClientPackageConfig | import("../commons").ISdServerPackageConfig | import("../commons").ISdNonePackageConfig | import("../commons").ISdTestPackageConfig | undefined, _processWorkManager?: any);
14
13
  on(event: "change", listener: (type: "compile" | "check" | "lint" | "ng-gen", target: "node" | "browser" | undefined) => void): this;
15
14
  on(event: "complete", listener: (type: "compile" | "check" | "lint" | "ng-gen", target: "node" | "browser" | undefined, results: ISdPackageBuildResult[], server?: SdServiceServer) => void): this;
16
15
  updateVersionAsync(projectName: string, newVersion: string): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simplysm/sd-cli",
3
- "version": "5.0.21",
3
+ "version": "5.0.26",
4
4
  "description": "심플리즘 패키지 - CLI",
5
5
  "author": "김석래",
6
6
  "repository": "github:kslhunter/simplysm",
@@ -33,12 +33,12 @@
33
33
  "source-map-loader": "^1.1.3",
34
34
  "ts-loader": "^8.0.18",
35
35
  "file-loader": "^6.2.0",
36
- "@simplysm/sd-core-common": "5.0.21",
37
- "@simplysm/sd-core-node": "5.0.21",
38
- "@simplysm/sd-service-node": "5.0.21",
39
- "@simplysm/sd-storage": "5.0.21",
40
- "@simplysm/sd-orm-common": "5.0.21",
41
- "@simplysm/sd-orm-node": "5.0.21",
36
+ "@simplysm/sd-core-common": "5.0.26",
37
+ "@simplysm/sd-core-node": "5.0.26",
38
+ "@simplysm/sd-service-node": "5.0.26",
39
+ "@simplysm/sd-storage": "5.0.26",
40
+ "@simplysm/sd-orm-common": "5.0.26",
41
+ "@simplysm/sd-orm-node": "5.0.26",
42
42
  "connect": "^3.7.0",
43
43
  "webpack-dev-middleware": "^3.7.3",
44
44
  "webpack-hot-middleware": "^2.25.0",
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- import "source-map-support/register";
@@ -1,19 +0,0 @@
1
- /// <reference types="node" />
2
- import { ISdClientPackageConfig, ISdPackageBuildResult, TSdClientPackageConfigPlatform } from "../commons";
3
- import { NextHandleFunction } from "connect";
4
- import { EventEmitter } from "events";
5
- export declare class SdCliClientCompiler extends EventEmitter {
6
- private readonly _rootPath;
7
- private readonly _config;
8
- private readonly _platform;
9
- private readonly _logger;
10
- private readonly _npmConfig;
11
- constructor(_rootPath: string, _config: ISdClientPackageConfig, _platform: TSdClientPackageConfigPlatform);
12
- on(event: "change", listener: () => void): this;
13
- on(event: "complete", listener: (results: ISdPackageBuildResult[]) => void): this;
14
- compileAsync(): Promise<void>;
15
- watchAsync(): Promise<NextHandleFunction[]>;
16
- private _getWebpackConfigAsync;
17
- private _createWebpackInputHost;
18
- private _getConfigEnv;
19
- }
@@ -1,6 +0,0 @@
1
- import { ISdClientPackageConfigAndroidPlatform } from "../commons";
2
- export declare class SdCliCordovaTool {
3
- private readonly _logger;
4
- initializeAsync(rootPath: string, platform: ISdClientPackageConfigAndroidPlatform): Promise<void>;
5
- runDeviceAsync(cordovaProjectPath: string, url: string): Promise<void>;
6
- }
@@ -1,4 +0,0 @@
1
- export declare class SdCliGenDbMigration {
2
- private readonly _logger;
3
- runAsync(config: string | undefined, dbConfigKey: string): Promise<void>;
4
- }
@@ -1,9 +0,0 @@
1
- export declare class SdCliIndexFileGenerateWatcher {
2
- private readonly _rootPath;
3
- private readonly _polyfills;
4
- private readonly _logger;
5
- private _contentCache?;
6
- constructor(_rootPath: string, _polyfills: string[] | undefined);
7
- watchAsync(): Promise<void>;
8
- private _genIndexAsync;
9
- }
@@ -1,8 +0,0 @@
1
- import { ISdPackageBuildResult } from "../commons";
2
- export declare class SdCliLinter {
3
- private readonly _rootPath;
4
- private readonly _target;
5
- private readonly _linter;
6
- constructor(_rootPath: string, _target: "node" | "browser" | undefined);
7
- lintAsync(filePaths: string[], parentResults?: ISdPackageBuildResult[], errCount?: number): Promise<ISdPackageBuildResult[]>;
8
- }
@@ -1,8 +0,0 @@
1
- export declare class SdCliLocalUpdater {
2
- private readonly _configObj;
3
- private readonly _logger;
4
- constructor(_configObj: Record<string, string>);
5
- runAsync(): Promise<void>;
6
- watchAsync(): Promise<void>;
7
- private _getUpdatePathsAsync;
8
- }
@@ -1,17 +0,0 @@
1
- import * as ts from "typescript";
2
- import { ISdPackageBuildResult } from "../commons";
3
- import * as ng from "@angular/compiler-cli";
4
- export declare class SdCliNgMetadataGenerator {
5
- private readonly _rootPath;
6
- private readonly _typesPath;
7
- private readonly _srcPath;
8
- private readonly _collector;
9
- private _getMetadataFilePath;
10
- constructor(_rootPath: string);
11
- removeMetadataAsync(filePath: string): Promise<void>;
12
- genMetadataAsync(sourceFile: ts.SourceFile): Promise<ISdPackageBuildResult[]>;
13
- getMetadata(sourceFile: ts.SourceFile): {
14
- metadata?: ng.ModuleMetadata;
15
- results: ISdPackageBuildResult[];
16
- };
17
- }
@@ -1,13 +0,0 @@
1
- import * as ts from "typescript";
2
- import { ISdPackageBuildResult } from "../commons";
3
- import * as ng from "@angular/compiler-cli";
4
- export declare class SdCliNgModuleGenerator {
5
- private readonly _rootPath;
6
- private readonly _modulesGenPath;
7
- private _sdMetadataCollector?;
8
- private _getSdMetadataCollectorAsync;
9
- constructor(_rootPath: string, _modulesGenPath: string);
10
- registerAsync(sourceFile: ts.SourceFile, metadata?: ng.ModuleMetadata): Promise<void>;
11
- deleteAsync(filePath: string): Promise<void>;
12
- genAsync(): Promise<ISdPackageBuildResult[]>;
13
- }
@@ -1,19 +0,0 @@
1
- /// <reference types="node" />
2
- import { ISdPackageBuildResult, ISdServerPackageConfig } from "../commons";
3
- import { EventEmitter } from "events";
4
- import { SdServiceServer } from "@simplysm/sd-service-node";
5
- export declare class SdCliServerCompiler extends EventEmitter {
6
- private readonly _rootPath;
7
- private readonly _config;
8
- private readonly _npmConfig;
9
- private _server?;
10
- private get _mainFilePath();
11
- constructor(_rootPath: string, _config: ISdServerPackageConfig);
12
- on(event: "change", listener: () => void): this;
13
- on(event: "complete", listener: (results: ISdPackageBuildResult[], server?: SdServiceServer) => void): this;
14
- compileAsync(): Promise<void>;
15
- watchAsync(): Promise<void>;
16
- private _stopServerAsync;
17
- private _startServer;
18
- private _getWebpackConfigAsync;
19
- }
@@ -1,24 +0,0 @@
1
- import * as ts from "typescript";
2
- import { Logger } from "@simplysm/sd-core-node";
3
- export declare class SdCliTsProgramWatcher {
4
- private readonly _rootPath;
5
- private readonly _target;
6
- private readonly _useAngularSassParser;
7
- private readonly _logger;
8
- private readonly _fileCacheMap;
9
- private readonly _outputFileCacheMap;
10
- private _assignFileCache;
11
- constructor(_rootPath: string, _target: "node" | "browser" | undefined, _useAngularSassParser: boolean, _logger: Logger);
12
- deleteOutputFileCache(filePath: string): void;
13
- watchAsync(callback: (program: ts.Program, changeInfos: ISdTsProgramChangeInfo[]) => (void | Promise<void>)): Promise<void>;
14
- private _getCompilerWatchHost;
15
- private _getImportExportDef;
16
- private _getAllDependencyFilePaths;
17
- private _getAllReverseDependencyFilePaths;
18
- private _getExportNames;
19
- private _travelNodes;
20
- }
21
- export interface ISdTsProgramChangeInfo {
22
- eventType: "add" | "change" | "unlink" | "dependency";
23
- filePath: string;
24
- }
@@ -1,4 +0,0 @@
1
- export declare class SdCliCheck {
2
- private readonly _logger;
3
- checkAsync(showAll: boolean): Promise<void>;
4
- }
@@ -1,3 +0,0 @@
1
- export declare class SdCliCordova {
2
- runDeviceAsync(cordovaProjectPath: string, url: string): Promise<void>;
3
- }
@@ -1,4 +0,0 @@
1
- import { ISdClientPackageConfigWindowsPlatform } from "../commons";
2
- export declare class SdCliElectron {
3
- runAsync(url: string, config: ISdClientPackageConfigWindowsPlatform): Promise<void>;
4
- }
@@ -1,7 +0,0 @@
1
- export declare class SdCliFileCrypto {
2
- encryptAsync(filePath: string): Promise<void>;
3
- decryptAsync(encFilePath: string): Promise<void>;
4
- private _encryptFile;
5
- private _decryptFile;
6
- private _readKeyAsync;
7
- }
@@ -1,30 +0,0 @@
1
- export declare class SdCliProject {
2
- private readonly _logger;
3
- private readonly _npmConfigFilePath;
4
- private readonly _npmConfig;
5
- private readonly _serverMap;
6
- private readonly _middlewareMap;
7
- private _defaultServer?;
8
- constructor();
9
- localUpdateAsync(argv: {
10
- options: string[];
11
- config?: string;
12
- }): Promise<void>;
13
- buildAsync(argv: {
14
- watch: boolean;
15
- packages: string[];
16
- options: string[];
17
- config?: string;
18
- }): Promise<void>;
19
- publishAsync(argv: {
20
- build: boolean;
21
- packages: string[];
22
- options: string[];
23
- config?: string;
24
- }): Promise<void>;
25
- private _updateVersionAsync;
26
- private _getPackagesAsync;
27
- private _waitPackageCompleteAsync;
28
- private _setNewServer;
29
- private _addMiddlewares;
30
- }
@@ -1,125 +0,0 @@
1
- export interface ISdPackageBuildResult {
2
- type: "compile" | "check" | "lint" | "metadata";
3
- filePath: string | undefined;
4
- severity: "error" | "warning";
5
- message: string;
6
- }
7
- export interface INpmConfig {
8
- name: string;
9
- version: string;
10
- main: string | undefined;
11
- workspaces?: string[];
12
- dependencies?: Record<string, string>;
13
- devDependencies?: Record<string, string>;
14
- peerDependencies?: Record<string, string>;
15
- }
16
- export interface ITsConfig {
17
- compilerOptions?: {
18
- target?: "es5" | "es2017";
19
- lib?: ("dom" | "es2017")[];
20
- outDir?: string;
21
- declarationDir?: string;
22
- declaration?: boolean;
23
- baseUrl?: string;
24
- paths?: Record<string, string[]>;
25
- };
26
- angularCompilerOptions?: {
27
- enableIvy?: boolean;
28
- };
29
- files?: string[];
30
- }
31
- export interface ISdProjectConfig {
32
- packages: Record<string, TSdPackageConfig>;
33
- afterPublish?: TSdAfterPublishConfig[];
34
- localUpdates?: Record<string, string>;
35
- }
36
- export declare type TSdPackageConfig = ISdLibraryPackageConfig | ISdClientPackageConfig | ISdServerPackageConfig | ISdNonePackageConfig | ISdTestPackageConfig;
37
- export declare type TSdAfterPublishConfig = ISdZipAfterPublishConfig | ISdSshAfterPublishConfig;
38
- export declare type TSdPublishConfig = ISdSFtpPublishConfig | ISdLocalDirectoryPublishConfig | ISdFtpPublishConfig;
39
- export interface ISdLibraryPackageConfig {
40
- type: "library";
41
- targets?: ("node" | "browser")[];
42
- polyfills?: string[];
43
- publish?: "npm";
44
- }
45
- export interface ISdClientPackageConfig {
46
- type: "client";
47
- platforms?: TSdClientPackageConfigPlatform[];
48
- env?: Record<string, string>;
49
- server?: string;
50
- devServer?: {
51
- port: number;
52
- };
53
- configs?: Record<string, any>;
54
- publish?: TSdPublishConfig;
55
- }
56
- export declare type TSdClientPackageConfigPlatform = ISdClientPackageConfigBrowserPlatform | ISdClientPackageConfigWindowsPlatform | ISdClientPackageConfigAndroidPlatform;
57
- export interface ISdClientPackageConfigBrowserPlatform {
58
- type: "browser";
59
- }
60
- export interface ISdClientPackageConfigWindowsPlatform {
61
- type: "windows";
62
- width?: number;
63
- height?: number;
64
- }
65
- export interface ISdClientPackageConfigAndroidPlatform {
66
- type: "android";
67
- appId: string;
68
- appName: string;
69
- plugins?: string[];
70
- icon?: string;
71
- sign?: {
72
- keystore: string;
73
- storePassword: string;
74
- alias: string;
75
- password: string;
76
- keystoreType: string;
77
- };
78
- }
79
- export interface ISdServerPackageConfig {
80
- type: "server";
81
- env?: Record<string, string>;
82
- configs?: Record<string, any>;
83
- publish?: TSdPublishConfig;
84
- pm2?: {
85
- watchIgnoreDirectories?: string[];
86
- };
87
- sourceStringReplaces?: {
88
- filePath: string;
89
- search: string;
90
- replace: string;
91
- }[];
92
- }
93
- export interface ISdNonePackageConfig {
94
- type: "none";
95
- }
96
- export interface ISdTestPackageConfig {
97
- type: "test";
98
- }
99
- export interface ISdSFtpPublishConfig {
100
- type: "sftp";
101
- host: string;
102
- port?: number;
103
- path: string;
104
- username: string;
105
- password: string;
106
- }
107
- export interface ISdFtpPublishConfig {
108
- type: "ftp";
109
- host: string;
110
- port?: number;
111
- path: string;
112
- username: string;
113
- password: string;
114
- }
115
- export interface ISdLocalDirectoryPublishConfig {
116
- type: "local-directory";
117
- path: string;
118
- }
119
- export interface ISdZipAfterPublishConfig {
120
- type: "zip";
121
- path: string;
122
- }
123
- export interface ISdSshAfterPublishConfig {
124
- type: "ssh";
125
- }
@@ -1,35 +0,0 @@
1
- import "@simplysm/sd-core-common";
2
- export * from "./build-tools/SdCliClientCompiler";
3
- export * from "./build-tools/SdCliCordovaTool";
4
- export * from "./build-tools/SdCliGenDbMigration";
5
- export * from "./build-tools/SdCliIndexFileGenerateWatcher";
6
- export * from "./build-tools/SdCliLinter";
7
- export * from "./build-tools/SdCliLocalUpdater";
8
- export * from "./build-tools/SdCliNgMetadataGenerator";
9
- export * from "./build-tools/SdCliNgModuleGenerator";
10
- export * from "./build-tools/SdCliServerCompiler";
11
- export * from "./build-tools/SdCliTsProgramWatcher";
12
- export * from "./builders/SdCliCheck";
13
- export * from "./builders/SdCliCordova";
14
- export * from "./builders/SdCliElectron";
15
- export * from "./builders/SdCliFileCrypto";
16
- export * from "./builders/SdCliPackage";
17
- export * from "./builders/SdCliProject";
18
- export * from "./commons";
19
- export * from "./metadata/SdArrayMetadata";
20
- export * from "./metadata/SdCallMetadata";
21
- export * from "./metadata/SdClassMetadata";
22
- export * from "./metadata/SdErrorMetadata";
23
- export * from "./metadata/SdFunctionMetadata";
24
- export * from "./metadata/SdMetadataCollector";
25
- export * from "./metadata/SdMetadataError";
26
- export * from "./metadata/SdModuleMetadata";
27
- export * from "./metadata/SdObjectMetadata";
28
- export * from "./utils/SdAngularUtil";
29
- export * from "./utils/SdCliPathUtil";
30
- export * from "./utils/SdCliResultCacheMap";
31
- export * from "./utils/SdProjectConfigUtil";
32
- export * from "./utils/SdTsDiagnosticUtil";
33
- export * from "./utils/SdWebpackSourceStringReplacePlugin";
34
- export * from "./utils/SdWebpackUtil";
35
- export * from "./utils/SdWebpackWriteFilePlugin";
@@ -1,3 +0,0 @@
1
- import * as webpack from "webpack";
2
- declare function loader(this: webpack.loader.LoaderContext, content: string, sourceMap: any): void;
3
- export = loader;
@@ -1,11 +0,0 @@
1
- import { SdMetadataCollector, TSdMetadata } from "./SdMetadataCollector";
2
- import { SdModuleMetadata } from "./SdModuleMetadata";
3
- import { MetadataEntry } from "@angular/compiler-cli";
4
- export declare class SdArrayMetadata {
5
- collector: SdMetadataCollector;
6
- module: SdModuleMetadata;
7
- metadata: MetadataEntry[];
8
- constructor(collector: SdMetadataCollector, module: SdModuleMetadata, metadata: MetadataEntry[]);
9
- get(index: number): TSdMetadata | undefined;
10
- getArray(): TSdMetadata[];
11
- }
@@ -1,15 +0,0 @@
1
- import { SdMetadataCollector } from "./SdMetadataCollector";
2
- import { SdModuleMetadata } from "./SdModuleMetadata";
3
- import { MetadataSymbolicCallExpression } from "@angular/compiler-cli";
4
- import { SdArrayMetadata } from "./SdArrayMetadata";
5
- export declare class SdCallMetadata {
6
- collector: SdMetadataCollector;
7
- module: SdModuleMetadata;
8
- metadata: MetadataSymbolicCallExpression;
9
- constructor(collector: SdMetadataCollector, module: SdModuleMetadata, metadata: MetadataSymbolicCallExpression);
10
- getExpression(): {
11
- moduleName: string;
12
- name: string;
13
- };
14
- getArguments(): SdArrayMetadata | undefined;
15
- }
@@ -1,16 +0,0 @@
1
- import { SdMetadataCollector } from "./SdMetadataCollector";
2
- import { ClassMetadata } from "@angular/compiler-cli";
3
- import { SdModuleMetadata } from "./SdModuleMetadata";
4
- import { SdCallMetadata } from "./SdCallMetadata";
5
- import { SdObjectMetadata } from "./SdObjectMetadata";
6
- import { SdFunctionMetadata } from "./SdFunctionMetadata";
7
- export declare class SdClassMetadata {
8
- collector: SdMetadataCollector;
9
- module: SdModuleMetadata;
10
- name: string;
11
- metadata: ClassMetadata;
12
- constructor(collector: SdMetadataCollector, module: SdModuleMetadata, name: string, metadata: ClassMetadata);
13
- getCallDecorators(): SdCallMetadata[] | undefined;
14
- getFuncDecorators(): SdFunctionMetadata[] | undefined;
15
- getStaticsObj(): SdObjectMetadata | undefined;
16
- }
@@ -1,9 +0,0 @@
1
- import { SdMetadataCollector } from "./SdMetadataCollector";
2
- import { SdModuleMetadata } from "./SdModuleMetadata";
3
- import { MetadataError } from "@angular/compiler-cli";
4
- export declare class SdErrorMetadata {
5
- collector: SdMetadataCollector;
6
- module: SdModuleMetadata;
7
- metadata: MetadataError;
8
- constructor(collector: SdMetadataCollector, module: SdModuleMetadata, metadata: MetadataError);
9
- }
@@ -1,11 +0,0 @@
1
- import { SdMetadataCollector, TSdMetadata } from "./SdMetadataCollector";
2
- import { SdModuleMetadata } from "./SdModuleMetadata";
3
- import { FunctionMetadata } from "@angular/compiler-cli";
4
- export declare class SdFunctionMetadata {
5
- collector: SdMetadataCollector;
6
- module: SdModuleMetadata;
7
- name: string;
8
- metadata: FunctionMetadata;
9
- constructor(collector: SdMetadataCollector, module: SdModuleMetadata, name: string, metadata: FunctionMetadata);
10
- getValue(): TSdMetadata;
11
- }
@@ -1,57 +0,0 @@
1
- import { MetadataEntry, ModuleMetadata } from "@angular/compiler-cli";
2
- import { SdModuleMetadata } from "./SdModuleMetadata";
3
- import * as ts from "typescript";
4
- import { SdObjectMetadata } from "./SdObjectMetadata";
5
- import { SdClassMetadata } from "./SdClassMetadata";
6
- import { SdCallMetadata } from "./SdCallMetadata";
7
- import { SdErrorMetadata } from "./SdErrorMetadata";
8
- import { SdArrayMetadata } from "./SdArrayMetadata";
9
- import { SdFunctionMetadata } from "./SdFunctionMetadata";
10
- export declare class SdMetadataCollector {
11
- private readonly _rootPath;
12
- private readonly _modulesGenPath;
13
- private readonly _logger;
14
- private readonly _packageSourcePath;
15
- private readonly _packageSourceRoutePagesPath;
16
- private readonly _packageSourceLazyPagesPath;
17
- private readonly _routesGenFilePath;
18
- private readonly _lazyComponentsGenFilePath;
19
- private readonly _filePathToModuleMap;
20
- private readonly _filePathToSourceFileMap;
21
- private _changedInfos;
22
- private readonly _moduleGenCacheMap;
23
- private _moduleNameToFilePathsMap?;
24
- private readonly _filePathToSdNgModuleInfoCacheMap;
25
- private readonly _filePathToSdNgModuleDefCacheMap;
26
- private readonly _filePathToSdNgRoutingModuleDefCacheMap;
27
- private readonly _filePathToSdNgLazyComponentCacheMap;
28
- constructor(_rootPath: string, _modulesGenPath: string);
29
- initializeAsync(): Promise<void>;
30
- register(sourceFile: ts.SourceFile, metadata: ModuleMetadata): void;
31
- delete(filePath: string): void;
32
- generateAsync(): Promise<void>;
33
- findRealMetadataInfo(info: ISdMetadataInfo): ISdMetadataInfo;
34
- getSdMetadata(module: SdModuleMetadata, metadata: any, targetName?: string): TSdMetadata;
35
- private _getNgModuleInfos;
36
- private _getNewNgModuleDefAsync;
37
- private _getNewNgRoutingModuleDefAsync;
38
- private _getLazyComponent;
39
- private _getRouteChildrenText;
40
- private _getNgModuleExportInfo;
41
- private _getModuleMetadataEntry;
42
- private _getNgModuleProviderClassMetadata;
43
- private _getPackageNameAsync;
44
- private _getRoutingModuleChildrenAsync;
45
- private _convertToNgModuleFilePath;
46
- private _convertToNgModuleClassName;
47
- private _convertToNgRoutingModuleFilePath;
48
- private _convertToNgRoutingModuleClassName;
49
- private _convertFilePathToKebabCaseName;
50
- private _getRequirePath;
51
- }
52
- interface ISdMetadataInfo {
53
- module: SdModuleMetadata;
54
- metadata: MetadataEntry;
55
- }
56
- export declare type TSdMetadata = undefined | string | number | boolean | SdClassMetadata | SdCallMetadata | SdFunctionMetadata | SdArrayMetadata | SdObjectMetadata | SdErrorMetadata;
57
- export {};
@@ -1,6 +0,0 @@
1
- import { SdError } from "@simplysm/sd-core-common";
2
- export declare class SdMetadataError extends SdError {
3
- filePath: string;
4
- message: string;
5
- constructor(filePath: string, message: string);
6
- }
@@ -1,10 +0,0 @@
1
- import { MetadataEntry } from "@angular/compiler-cli";
2
- import { SdMetadataCollector, TSdMetadata } from "./SdMetadataCollector";
3
- export declare class SdModuleMetadata {
4
- collector: SdMetadataCollector;
5
- filePath: string;
6
- name: string;
7
- metadataObj: Record<string, MetadataEntry>;
8
- constructor(collector: SdMetadataCollector, filePath: string, name: string, metadataObj: Record<string, MetadataEntry>);
9
- getMetadatas(): TSdMetadata[];
10
- }
@@ -1,11 +0,0 @@
1
- import { SdMetadataCollector, TSdMetadata } from "./SdMetadataCollector";
2
- import { SdModuleMetadata } from "./SdModuleMetadata";
3
- import { MetadataObject } from "@angular/compiler-cli";
4
- export declare class SdObjectMetadata {
5
- collector: SdMetadataCollector;
6
- module: SdModuleMetadata;
7
- metadata: MetadataObject;
8
- constructor(collector: SdMetadataCollector, module: SdModuleMetadata, metadata: MetadataObject);
9
- get(key: string): TSdMetadata | undefined;
10
- getObject(): Record<string, TSdMetadata>;
11
- }
@@ -1,6 +0,0 @@
1
- export declare class SdAngularUtil {
2
- static replaceScssToCss(filePath: string, content: string): {
3
- content: string;
4
- dependencies: string[];
5
- };
6
- }
@@ -1,10 +0,0 @@
1
- export declare class SdCliPathUtil {
2
- static getTsConfigBaseFilePath(rootPath: string): string;
3
- static getTsConfigBuildFilePath(rootPath: string, target: "node" | "browser" | undefined): string;
4
- static getSourcePath(rootPath: string): string;
5
- static getDistTypesPath(rootPath: string): string;
6
- static getDistPath(rootPath: string, target?: "node" | "browser"): string;
7
- static getMetadataFilePath(rootPath: string, filePath: string): string | undefined;
8
- static getNpmConfigFilePath(rootPath: string): string;
9
- static getIndexFilePath(rootPath: string): string;
10
- }
@@ -1,7 +0,0 @@
1
- import { ISdPackageBuildResult } from "../commons";
2
- export declare class SdCliResultCacheMap {
3
- private readonly _resultMap;
4
- get results(): ISdPackageBuildResult[];
5
- save(...results: ISdPackageBuildResult[]): void;
6
- delete(filePath: string): void;
7
- }
@@ -1,6 +0,0 @@
1
- import { ISdProjectConfig } from "../commons";
2
- export declare class SdProjectConfigUtil {
3
- private static _loadConfigAsync;
4
- private static _checkPackageConfig;
5
- static loadConfigAsync(devMode: boolean, options: string[], configFilePath?: string): Promise<ISdProjectConfig>;
6
- }
@@ -1,5 +0,0 @@
1
- import * as ts from "typescript";
2
- import { ISdPackageBuildResult } from "../commons";
3
- export declare class SdTsDiagnosticUtil {
4
- static convertDiagnosticsToResult(type: "compile" | "check", diag: ts.Diagnostic): ISdPackageBuildResult | undefined;
5
- }
@@ -1,10 +0,0 @@
1
- import * as webpack from "webpack";
2
- export declare class SdWebpackSourceStringReplacePlugin implements webpack.Plugin {
3
- private readonly _map;
4
- constructor(options: {
5
- filePath: string;
6
- search: RegExp;
7
- replace: string;
8
- }[]);
9
- apply(compiler: webpack.Compiler): void;
10
- }
@@ -1,5 +0,0 @@
1
- import * as webpack from "webpack";
2
- import { ISdPackageBuildResult } from "../commons";
3
- export declare class SdWebpackUtil {
4
- static getWebpackResults(err: Error | null, stats?: webpack.Stats): ISdPackageBuildResult[];
5
- }
@@ -1,9 +0,0 @@
1
- import * as webpack from "webpack";
2
- export declare class SdWebpackWriteFilePlugin implements webpack.Plugin {
3
- private readonly _files;
4
- constructor(_files: {
5
- path: string;
6
- content: string | undefined;
7
- }[]);
8
- apply(compiler: webpack.Compiler): void;
9
- }
@@ -1 +0,0 @@
1
- import "source-map-support/register";