tnp-core 16.100.19 → 16.100.20

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.
@@ -12,7 +12,9 @@ export declare namespace CoreModels {
12
12
  export type HttpMethod = 'get' | 'post' | 'put' | 'delete' | 'patch' | 'head' | 'jsonp';
13
13
  export type ParamType = 'Path' | 'Query' | 'Cookie' | 'Header' | 'Body';
14
14
  export type TsUsage = 'import' | 'export';
15
- export type LibType = 'unknow' | 'isomorphic-lib' | 'container' | 'docker' | 'vscode-ext' | 'chrome-ext' | 'unknow-npm-project';
15
+ export type BaseProjectType = 'typescript' | 'angular' | 'angular-lib' | 'unknow' | 'unknow-npm-project';
16
+ export const BaseProjectTypeArr: string[];
17
+ export type LibType = BaseProjectType | 'isomorphic-lib' | 'container' | 'docker' | 'vscode-ext' | 'chrome-ext' | 'unknow-npm-project';
16
18
  export type NewFactoryType = LibType | 'model' | 'single-file-project';
17
19
  export type CoreLibCategory = LibType | 'common';
18
20
  export type FileEvent = 'created' | 'changed' | 'removed' | 'rename';
@@ -102,7 +102,24 @@ export declare class HelpersCore extends HelpersMessages {
102
102
  }): Promise<any>;
103
103
  killProcess(byPid: number): void;
104
104
  run(command: string, options?: CoreModels.RunOptions): {
105
+ /**
106
+ * start command as synchronous nodej proces
107
+ */
108
+ sync(): any;
109
+ /**
110
+ * start command as asynchronous nodej proces
111
+ * @param detach (default: false) - if true process will be detached
112
+ */
105
113
  async(detach?: boolean, mockFun?: (stdoutCallback: (dataForStdout: any) => any, stdErrcCallback: (dataForStder: any) => any, shouldProcesBeDead?: () => boolean) => Promise<number> | number): any;
114
+ /**
115
+ * start command as asynchronous nodej proces inside promise
116
+ */
117
+ asyncAsPromise(): Promise<void>;
118
+ /**
119
+ * start command as asynchronous nodej proces inside promise
120
+ * and wait until output contains some string
121
+ */
122
+ unitlOutputContains(stdoutMsg: string | string[], stderMsg?: string | string[], timeout?: number, stdoutOutputContainsCallback?: () => any): any;
106
123
  };
107
124
  questionYesNo(message: string, callbackTrue?: () => any, callbackFalse?: () => any, defaultValue?: boolean,
108
125
  /**