You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`typeScriptService` was required in the past for `Proton` product (Universal AppBuilder Desktop Client). As this product does not exist anymore, we do not need this service.
*`transpile(projectDir: string, typeScriptFiles?: string[], definitionFiles?: string[], options?: ITypeScriptTranspileOptions): Promise<string>` - Transpiles specified files or all files in the project directory.
1075
-
If `options` are not specified the method will search for tsconfig.json file and get them from it.
1076
-
If there is no tsconfig.json file the method will use default options.
1077
-
If there are no `typeScriptFiles` all the files in the `projectDir` will be transpiled.
1078
-
The returned result is the output of the TypeScript compiler.
1079
-
1080
-
Sample usage:
1081
-
```JavaScript
1082
-
// Transpile only 2 files.
1083
-
var projectDir ="D:\\test\\project";
1084
-
var filesToTranspile = [path.join(projectDir,"app","components", "homeView", "homeView.ts"),
Copy file name to clipboardExpand all lines: lib/common/declarations.d.ts
-36Lines changed: 0 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -827,42 +827,6 @@ interface IHook {
827
827
fullPath: string;
828
828
}
829
829
830
-
/**
831
-
* Describes TypeScript compilation methods.
832
-
*/
833
-
interfaceITypeScriptService{
834
-
/**
835
-
* Transpiles specified files or all files in the project directory. The default passed options are overriden by the ones in tsconfig.json file. The options from tsconfig.json file are overriden by the passed compiler options.
836
-
* @param {string} projectDir: Specifies the directory of the project.
837
-
* @param {string[]} typeScriptFiles @optional The files that will be compiled.
838
-
* @param {string[]} definitionFiles @optional The definition files used for compilation.
839
-
* @param {ITypeScriptTranspileOptions} options @optional The transpilation options.
* Checks if the project language is TypeScript by enumerating all files and checking if there are at least one TypeScript file (.ts), that is not definition file(.d.ts)
853
-
* @param {string} projectDir The directory of the project.
854
-
* @return {boolean} true when the project contains .ts files and false otherwise.
855
-
*/
856
-
isTypeScriptProject(projectDir: string): boolean;
857
-
858
-
/**
859
-
* Checks if the file is TypeScript file.
860
-
* @param {string} file The file name.
861
-
* @return {boolean} true when the file is TypeScript file.
862
-
*/
863
-
isTypeScriptFile(file: string): boolean;
864
-
}
865
-
866
830
interfaceIDynamicHelpService{
867
831
/**
868
832
* Checks if current project's framework is one of the specified as arguments.
0 commit comments