Skip to content

Commit

Permalink
feat(main): exported appleDeviceSpecsForLaunchImages from module API
Browse files Browse the repository at this point in the history
Exposed fallback spec data as a json file so that people can access it over the module.

fix #248
  • Loading branch information
onderceylan committed May 15, 2020
1 parent 0d38116 commit dac56d4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 };

0 comments on commit dac56d4

Please sign in to comment.