File tree Expand file tree Collapse file tree 4 files changed +14
-8
lines changed Expand file tree Collapse file tree 4 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 1
1
///<reference path=".d.ts"/>
2
2
"use strict" ;
3
3
4
- import constants = require ( "./constants" ) ;
4
+ import * as constants from "./constants" ;
5
5
import * as path from "path" ;
6
- import * as os from "os" ;
6
+ import { EOL } from "os" ;
7
7
8
8
export class ProjectData implements IProjectData {
9
9
private static OLD_PROJECT_FILE_NAME = ".tnsproject" ;
@@ -40,8 +40,8 @@ export class ProjectData implements IProjectData {
40
40
fileContent = this . $fs . readJson ( this . projectFilePath ) . wait ( ) ;
41
41
data = fileContent [ this . $staticConfig . CLIENT_NAME_KEY_IN_PROJECT_FILE ] ;
42
42
} catch ( err ) {
43
- this . $errors . fail ( { formatStr : "The project file %s is corrupted." + os . EOL +
44
- "Consider restoring an earlier version from your source control or backup." + os . EOL +
43
+ this . $errors . fail ( { formatStr : "The project file %s is corrupted." + EOL +
44
+ "Consider restoring an earlier version from your source control or backup." + EOL +
45
45
"Additional technical info: %s" ,
46
46
suppressCommandHelp : true } ,
47
47
this . projectFilePath , err . toString ( ) ) ;
Original file line number Diff line number Diff line change @@ -123,7 +123,8 @@ function setupProject(): IFuture<any> {
123
123
prepareProject : ( ) => Future . fromResult ( ) ,
124
124
prepareAppResources : ( ) => Future . fromResult ( ) ,
125
125
afterPrepareAllPlugins : ( ) => Future . fromResult ( ) ,
126
- getAppResourcesDestinationDirectoryPath : ( ) => Future . fromResult ( "" )
126
+ getAppResourcesDestinationDirectoryPath : ( ) => Future . fromResult ( "" ) ,
127
+ processConfigurationFilesFromAppResources : ( ) => Future . fromResult ( )
127
128
}
128
129
} ;
129
130
} ;
Original file line number Diff line number Diff line change @@ -220,7 +220,8 @@ describe('Platform Service Tests', () => {
220
220
createProject : ( projectRoot : string , frameworkDir : string ) => Future . fromResult ( ) ,
221
221
interpolateData : ( projectRoot : string ) => Future . fromResult ( ) ,
222
222
afterCreateProject : ( projectRoot : string ) => Future . fromResult ( ) ,
223
- getAppResourcesDestinationDirectoryPath : ( ) => Future . fromResult ( "" )
223
+ getAppResourcesDestinationDirectoryPath : ( ) => Future . fromResult ( "" ) ,
224
+ processConfigurationFilesFromAppResources : ( ) => Future . fromResult ( )
224
225
}
225
226
} ;
226
227
} ;
@@ -279,7 +280,8 @@ describe('Platform Service Tests', () => {
279
280
createProject : ( projectRoot : string , frameworkDir : string ) => Future . fromResult ( ) ,
280
281
interpolateData : ( projectRoot : string ) => Future . fromResult ( ) ,
281
282
afterCreateProject : ( projectRoot : string ) => Future . fromResult ( ) ,
282
- getAppResourcesDestinationDirectoryPath : ( ) => Future . fromResult ( "" )
283
+ getAppResourcesDestinationDirectoryPath : ( ) => Future . fromResult ( "" ) ,
284
+ processConfigurationFilesFromAppResources : ( ) => Future . fromResult ( )
283
285
}
284
286
} ;
285
287
} ;
Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ export class PlatformsDataStub implements IPlatformsData {
267
267
deviceBuildOutputPath : "" ,
268
268
validPackageNamesForDevice : [ ] ,
269
269
frameworkFilesExtensions : [ ] ,
270
- relativeToFrameworkConfigurationFilePath : "" ,
270
+ relativeToFrameworkConfigurationFilePath : ""
271
271
} ;
272
272
}
273
273
@@ -342,6 +342,9 @@ export class PlatformProjectServiceStub implements IPlatformProjectService {
342
342
deploy ( deviceIdentifier : string ) : IFuture < void > {
343
343
return Future . fromResult ( ) ;
344
344
}
345
+ processConfigurationFilesFromAppResources ( ) : IFuture < void > {
346
+ return Future . fromResult ( ) ;
347
+ }
345
348
}
346
349
347
350
export class ProjectDataService implements IProjectDataService {
You can’t perform that action at this time.
0 commit comments