Skip to content

Commit

Permalink
Merge pull request RocketChat#12 from WideChat/master-catchup-0.3.1
Browse files Browse the repository at this point in the history
[Upstream Catchup] Merge Rocket.Chat.Apps-compiler:master to master 0.3.1
  • Loading branch information
Shailesh351 authored Oct 11, 2021
2 parents 23b9cf8 + c31acf6 commit 7775f63
Show file tree
Hide file tree
Showing 81 changed files with 4,244 additions and 7,238 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-function": "off",
"indent": ["error", 4],
"indent": ["error", 4, { "SwitchCase": 1 }],
"no-useless-constructor": "off",
"no-empty-function": "off",
"import/order": ["error", {
Expand Down
38 changes: 12 additions & 26 deletions AppsCompiler.d.ts
Original file line number Diff line number Diff line change
@@ -1,32 +1,18 @@
import * as fallbackTypescript from 'typescript';
import { ModuleResolutionHost, ResolvedModule } from 'typescript';
import { Omit } from './misc/util';
import { ICompilerDescriptor, ICompilerFile, ICompilerResult, IFiles } from './definition';
declare type TypeScript = typeof fallbackTypescript;
import { IBundledCompilerResult, ICompilerDescriptor, ICompilerResult } from './definition';
export declare type TypeScript = typeof fallbackTypescript;
export declare class AppsCompiler {
private readonly compilerDesc;
private readonly ts;
private readonly compilerOptions;
private libraryFiles;
private compiled;
private implemented;
private wd;
private _appRequire;
constructor(compilerDesc: ICompilerDescriptor, ts?: TypeScript);
readonly appRequire: NodeRequire;
compile(path: string): Promise<ICompilerResult>;
output(): IFiles;
getImplemented(): string[];
private readonly sourcePath;
private compilationResult?;
private readonly bundler;
private readonly validator;
private readonly typescriptCompiler;
constructor(compilerDesc: ICompilerDescriptor, sourcePath: string, ts?: TypeScript);
getLatestCompilationResult(): ICompilerResult;
run(outputPath: string): Promise<Buffer>;
compile(): Promise<ICompilerResult>;
bundle(): Promise<IBundledCompilerResult>;
outputZip(outputPath: string): Promise<Buffer>;
private validateAppPermissionsSchema;
private toJs;
private normalizeDiagnostics;
resolvePath(containingFile: string, moduleName: string, cwd: string): string;
resolver(moduleName: string, resolvedModules: Array<ResolvedModule>, containingFile: string, result: Omit<ICompilerResult, 'permissions'>, cwd: string, moduleResHost: ModuleResolutionHost): number;
getLibraryFile(fileName: string): ICompilerFile;
private checkInheritance;
private requireCompiled;
private isValidFile;
}
export {};
//# sourceMappingURL=AppsCompiler.d.ts.map
2 changes: 1 addition & 1 deletion AppsCompiler.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7775f63

Please sign in to comment.