From dac56d4cadcff35e95188d7a684f0b882683c679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96nder=20Ceylan?= Date: Thu, 7 May 2020 22:27:34 +0200 Subject: [PATCH] feat(main): exported appleDeviceSpecsForLaunchImages from module API Exposed fallback spec data as a json file so that people can access it over the module. fix #248 --- src/main.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index da4a80fa..8fe6d5fd 100644 --- a/src/main.ts +++ b/src/main.ts @@ -5,6 +5,7 @@ import preLogger from './helpers/logger'; import { CLIOptions, Options } from './models/options'; import { Result } from './models/result'; import { LoggerFunction } from './models/logger'; +import constants from './config/constants'; /** Generates PWA assets based on a source input and saves generated images in the output folder provided @@ -113,4 +114,10 @@ async function generateImages( return { savedImages, htmlMeta, manifestJsonContent }; } -export { generateImages }; +/** + Fallback data for Apple Device specs for launch images + */ +const appleDeviceSpecsForLaunchImages = + constants.APPLE_HIG_SPLASH_SCREEN_FALLBACK_DATA; + +export { generateImages, appleDeviceSpecsForLaunchImages };