Skip to content

Commit 6143320

Browse files
ivanovitrosen-vladimirov
authored andcommitted
Expose assets-generation-service
1 parent bd1098d commit 6143320

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/services/assets-generation/assets-generation-service.ts

+3
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,20 @@ import * as path from "path";
22
import * as Jimp from "jimp";
33
import * as Color from "color";
44
import { Icons, SplashScreens, Operations } from "./image-definitions"
5+
import { exported } from "../../common/decorators";
56

67
export class AssetsGenerationService implements IAssetsGenerationService {
78
constructor(private $logger: ILogger) {
89
}
910

11+
@exported("assetsGenerationService")
1012
public async generateIcons(imagePath: string, resourcesPath: string): Promise<void> {
1113
this.$logger.info("Generating icons ...");
1214
await this.generateImagesForDefinitions(imagePath, resourcesPath, Icons)
1315
this.$logger.info("Icons generation completed.");
1416
}
1517

18+
@exported("assetsGenerationService")
1619
public async generateSplashScreens(imagePath: string, resourcesPath: string, background?: string): Promise<void> {
1720
this.$logger.info("Generating splash screens ...");
1821
await this.generateImagesForDefinitions(imagePath, resourcesPath, SplashScreens, background)

0 commit comments

Comments
 (0)