-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(typescript): Basic TypeScript setup
see #47
- Loading branch information
Showing
4 changed files
with
108 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"eslint.enable": false, | ||
"java.configuration.updateBuildConfiguration": "automatic", | ||
"editor.tabSize": 2, | ||
"files.exclude": { | ||
"**/.git": true, | ||
"**/.svn": true, | ||
"**/.hg": true, | ||
"**/CVS": true, | ||
"**/.DS_Store": true, | ||
// exclude .js and .js.map files, when in a TypeScript project | ||
"**/*.js": { | ||
"when": "$(basename).ts" | ||
}, | ||
"**/*.js.map": true, | ||
"**/*.ngfactory.ts": true, | ||
"**/*.ngsummary.json": true | ||
}, | ||
"vsicons.presets.angular": true, | ||
"json.format.enable": false, | ||
"javascript.format.enable": true, | ||
"typescript.format.enable": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
declare interface GridSettings { | ||
browser: string; | ||
browserVersion: string; | ||
platform: string; | ||
size: string; | ||
desiredCapabilities: { key: string, value: string } | ||
} | ||
|
||
declare interface WebDriver { | ||
|
||
} | ||
|
||
export declare function load(jsFilePath: string): void | ||
|
||
export declare function createDriver(url: string, browserSize: string, browserType: string): WebDriver | ||
|
||
export declare function createGridDriver(gridHubUrl: string, settings: GridSettings): WebDriver | ||
|
||
export declare function resize(driver: WebDriver, size: string): void | ||
|
||
export declare function checkLayout(driver: WebDriver, specFile: String, tagsToInclude?: [string], tagsToExclude?: [string]): void | ||
|
||
export declare function checkLayout({}): void | ||
|
||
export declare function checkPageSpecLayout(driver: WebDriver, pageSpec: String, tagsToInclude?: [string], tagsToExclude?: [string]): void | ||
|
||
export declare function parsePageSpec({}): void | ||
|
||
export declare function loadProperties(filePath: String): Map<string, string> | ||
|
||
export declare function readFile(filePath: String): string | ||
|
||
export declare function listDirectory(dirPath: String): [string] | ||
|
||
export declare function makeDirectory(dirPath: String): void | ||
|
||
export declare function fileExists(filePath: String): boolean | ||
|
||
export declare function isDirectory(dirPath: String): boolean | ||
|
||
export declare function retry(tries: number, callback: Function): void | ||
|
||
export declare function takeScreenshot(driver: WebDriver): string | ||
|
||
export declare function cookie(driver: WebDriver, cookieValue: string): void | ||
|
||
export declare function inject(driver: WebDriver, script: string): void | ||
|
||
export declare function createTestDataProvider(varableName: string): any | ||
|
||
export declare function dumpPage({}): void | ||
|
||
export declare function logged(text: string, callback: Function): void | ||
|
||
export declare function loggedFunction(textExpression: string, callback: Function): void |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"compilerOptions": { | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"target": "es5", | ||
"experimentalDecorators": true, | ||
"emitDecoratorMetadata": true, | ||
"noEmitHelpers": true, | ||
"noEmitOnError": true, | ||
"lib": [ | ||
"es2015", | ||
"es2015.iterable", | ||
"dom" | ||
], | ||
"types": [ | ||
"jasmine", | ||
"node" | ||
] | ||
}, | ||
"exclude": [ | ||
"node_modules" | ||
] | ||
} |