-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathindex.js
More file actions
33 lines (26 loc) · 910 Bytes
/
Copy pathindex.js
File metadata and controls
33 lines (26 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env node
// transpile:main
import yargs from 'yargs';
import { asyncify } from 'asyncbox';
import * as server from './lib/server';
import * as driver from './lib/driver';
import * as helpers from './lib/tizen-helpers';
import * as commands from './lib/commands/index';
import * as caps from './lib/desired-caps';
const { startServer } = server;
const { TizenDriver } = driver;
const { helpers: tizenHelpers } = helpers;
const { commands: tizenCommands } = commands;
const { commonCapConstraints } = caps;
const DEFAULT_HOST = "localhost";
const DEFAULT_PORT = 4723;
async function main () {
let port = yargs.argv.port || DEFAULT_PORT;
let host = yargs.argv.host || DEFAULT_HOST;
return await startServer(port, host);
}
if (require.main === module) {
asyncify(main);
}
export default TizenDriver;
export { tizenHelpers, tizenCommands, TizenDriver, startServer, commonCapConstraints };