Skip to content
This repository has been archived by the owner on May 3, 2020. It is now read-only.

Commit

Permalink
feat: Add support for types per @randy.tarampi/generic-icon-splash-…
Browse files Browse the repository at this point in the history
…generate@1.3.0.
  • Loading branch information
randytarampi committed Mar 17, 2019
1 parent 5e88b2a commit 8f0fcd5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"@randy.tarampi/android-icons": "^3.0.0",
"@randy.tarampi/android-splash": "^2.0.0",
"@randy.tarampi/generic-icon-splash-generate": "^1.2.0",
"@randy.tarampi/generic-icon-splash-generate": "^1.3.0",
"@randy.tarampi/ios-icons": "^4.0.0",
"@randy.tarampi/ios-splash": "^3.0.0",
"commander": "^2.19.0"
Expand Down
8 changes: 4 additions & 4 deletions src/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ const icons = [...androidIcons(), ...iosIcons()];
const splashes = [...androidSplash(), ...iosSplash()];
const images = [...icons, ...splashes];

const generateIconsGenerator = icons => (inputFile, outputDirectory = process.cwd(), format) => iconsGenerator(
icons, inputFile, outputDirectory, format);
const generateIconsGenerator = icons => (inputFile, outputDirectory = process.cwd(), format, type) => iconsGenerator(
icons, inputFile, outputDirectory, format, type);
const generateSplashScreensGenerator = splashes => (
inputFile, outputDirectory = process.cwd(), format) => splashScreensGenerator(splashes, inputFile,
outputDirectory, format);
inputFile, outputDirectory = process.cwd(), format, type) => splashScreensGenerator(splashes, inputFile,
outputDirectory, format, type);

module.exports = {
icons,
Expand Down

0 comments on commit 8f0fcd5

Please sign in to comment.