1
- import process from ' process' ;
2
- import open from ' open' ;
1
+ import process from " process" ;
2
+ import open from " open" ;
3
3
4
- import { createFrontend , InjectExpress } from ' ./app' ;
5
- import { Instances , Options } from ' ./instance' ;
6
- import { getLocation , Location , LocationError } from ' ./location' ;
7
- import { getAppInfo , AppInfo , AppInfoError } from ' ./appInfo' ;
4
+ import { createFrontend , InjectExpress } from " ./app" ;
5
+ import { Instances , Options } from " ./instance" ;
6
+ import { getLocation , Location , LocationError } from " ./location" ;
7
+ import { getAppInfo , AppInfo , AppInfoError } from " ./appInfo" ;
8
8
9
9
export type Inject = {
10
10
injectFrontend : InjectExpress ;
@@ -29,12 +29,12 @@ function actualRun(appInfo: AppInfo, options: Options, inject: Inject): void {
29
29
) ;
30
30
31
31
frontend . listen ( options . basePort , ( ) => {
32
- console . log ( ' Starting webxdc-dev frontend' ) ;
32
+ console . log ( " Starting webxdc-dev frontend" ) ;
33
33
} ) ;
34
34
35
35
instances . start ( ) ;
36
36
37
- open ( ' http://localhost:' + options . basePort ) ;
37
+ open ( " http://localhost:" + options . basePort ) ;
38
38
}
39
39
40
40
export function run ( locationStr : string , options : Options , inject : Inject ) {
@@ -49,13 +49,13 @@ export function run(locationStr: string, options: Options, inject: Inject) {
49
49
throw e ;
50
50
}
51
51
52
- for ( const signal in [ ' SIGINT' , ' SIGTERM' ] ) {
52
+ for ( const signal in [ " SIGINT" , " SIGTERM" ] ) {
53
53
process . on ( signal , ( ) => {
54
54
location . dispose ( ) ;
55
55
} ) ;
56
56
}
57
57
58
- console . log ( ' Starting webxdc project in:' , locationStr ) ;
58
+ console . log ( " Starting webxdc project in:" , locationStr ) ;
59
59
60
60
getAppInfo ( location )
61
61
. then ( ( appInfo ) => {
0 commit comments