@quasar/icongenie 4.0.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -1
- package/bin/icongenie.js +22 -22
- package/lib/cmd/generate.js +36 -41
- package/lib/cmd/help.js +1 -1
- package/lib/cmd/profile.js +34 -38
- package/lib/cmd/verify.js +18 -17
- package/lib/generators/icns.js +7 -3
- package/lib/generators/ico.js +7 -3
- package/lib/generators/index.js +0 -1
- package/lib/generators/png.js +7 -6
- package/lib/generators/splashscreen.js +6 -12
- package/lib/generators/svg.js +3 -4
- package/lib/modes/index.js +1 -8
- package/lib/modes/{quasar-app-v2 → v2}/bex.js +1 -2
- package/lib/modes/{quasar-app-v1 → v2}/capacitor.js +28 -35
- package/lib/modes/{quasar-app-v1 → v2}/cordova.js +40 -47
- package/lib/modes/v2/electron.js +32 -0
- package/lib/modes/{quasar-app-v1 → v2}/index.js +0 -1
- package/lib/modes/v2/pwa.js +71 -0
- package/lib/modes/{quasar-app-v2 → v2}/spa.js +1 -2
- package/lib/modes/{quasar-app-v1 → v2}/ssr.js +1 -2
- package/lib/mount/index.js +4 -7
- package/lib/mount/mount-cordova.js +71 -63
- package/lib/mount/mount-tag.js +3 -6
- package/lib/runner/generate.js +57 -55
- package/lib/runner/profile.js +18 -26
- package/lib/runner/verify.js +29 -27
- package/lib/utils/app-paths.js +8 -9
- package/lib/utils/default-params.js +0 -1
- package/lib/utils/filter-argv-params.js +3 -4
- package/lib/utils/get-argv.js +47 -0
- package/lib/utils/get-assets-files.js +9 -12
- package/lib/utils/get-compression.js +31 -19
- package/lib/utils/get-file-size.js +5 -6
- package/lib/utils/get-files-options.js +18 -21
- package/lib/utils/get-png-size.js +10 -12
- package/lib/utils/get-profile-content.js +3 -7
- package/lib/utils/get-profile-files.js +10 -13
- package/lib/utils/get-square-icon.js +5 -4
- package/lib/utils/logger.js +6 -7
- package/lib/utils/merge-objects.js +5 -6
- package/lib/utils/node-version-check.js +11 -11
- package/lib/utils/package-json.js +1 -5
- package/lib/utils/parse-argv.js +63 -74
- package/lib/utils/spawn-sync.js +8 -10
- package/lib/utils/validate-profile-object.js +34 -27
- package/package.json +46 -48
- package/samples/icongenie-profile.json +9 -17
- package/.editorconfig +0 -13
- package/.eslintignore +0 -1
- package/.eslintrc.cjs +0 -50
- package/lib/modes/quasar-app-v1/bex.js +0 -9
- package/lib/modes/quasar-app-v1/electron.js +0 -24
- package/lib/modes/quasar-app-v1/pwa.js +0 -74
- package/lib/modes/quasar-app-v1/spa.js +0 -17
- package/lib/modes/quasar-app-v2/capacitor.js +0 -155
- package/lib/modes/quasar-app-v2/cordova.js +0 -159
- package/lib/modes/quasar-app-v2/electron.js +0 -24
- package/lib/modes/quasar-app-v2/index.js +0 -45
- package/lib/modes/quasar-app-v2/pwa.js +0 -74
- package/lib/modes/quasar-app-v2/ssr.js +0 -4
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import spaEntries from './spa.js'
|
|
3
|
-
|
|
4
|
-
/* def: width, height, pixel-ratio */
|
|
5
|
-
function getAppleLaunch (def) {
|
|
6
|
-
const media = `(device-width: ${ def[ 0 ] / def[ 2 ] }px) and (device-height: ${ def[ 1 ] / def[ 2 ] }px) and (-webkit-device-pixel-ratio: ${ def[ 2 ] })`
|
|
7
|
-
|
|
8
|
-
return {
|
|
9
|
-
generator: 'splashscreen',
|
|
10
|
-
name: 'apple-launch-{size}.png',
|
|
11
|
-
folder: 'public/icons',
|
|
12
|
-
sizes: [
|
|
13
|
-
[ def[ 0 ], def[ 1 ] ]
|
|
14
|
-
],
|
|
15
|
-
tag: `${ def[ 3 ] }\n<link rel="apple-touch-startup-image" media="${ media }" href="icons/{name}">`
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export default [
|
|
20
|
-
...spaEntries,
|
|
21
|
-
|
|
22
|
-
{
|
|
23
|
-
generator: 'png',
|
|
24
|
-
name: 'apple-icon-{size}x{size}.png',
|
|
25
|
-
folder: 'public/icons',
|
|
26
|
-
background: true,
|
|
27
|
-
sizes: [ 120, 152, 167, 180 ]
|
|
28
|
-
// tag is auto-injected by @quasar/app
|
|
29
|
-
// <link rel="apple-touch-icon" sizes="{size}x{size}" href="icons/{name}">
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
{
|
|
33
|
-
generator: 'svg',
|
|
34
|
-
name: 'safari-pinned-tab.svg',
|
|
35
|
-
folder: 'public/icons',
|
|
36
|
-
// tag is auto-injected by @quasar/app
|
|
37
|
-
// <link rel="mask-icon" color="#..." href="icons/{name}">
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
{
|
|
41
|
-
generator: 'png',
|
|
42
|
-
name: 'ms-icon-{size}x{size}.png',
|
|
43
|
-
folder: 'public/icons',
|
|
44
|
-
sizes: [ 144 ],
|
|
45
|
-
// tag is auto-injected by @quasar/app
|
|
46
|
-
// <meta name="msapplication-TileImage" content="icons/{name}">
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
{
|
|
50
|
-
generator: 'png',
|
|
51
|
-
name: 'icon-{size}x{size}.png',
|
|
52
|
-
folder: 'public/icons',
|
|
53
|
-
sizes: [ 128, 192, 256, 384, 512 ]
|
|
54
|
-
// manifest icons
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
...[
|
|
58
|
-
[ 1290, 2796, 3, '<!-- iPhone 14 Pro, 14 Pro Max -->' ],
|
|
59
|
-
[ 1179, 2556, 3, '<!-- iPhone 14, 14 Pro -->' ],
|
|
60
|
-
[ 1284, 2778, 3, '<!-- iPhone 12 Pro Max, 13 Pro Max -->' ],
|
|
61
|
-
[ 1170, 2532, 3, '<!-- iPhone 12, 12 Pro, 13, 13 Pro -->' ],
|
|
62
|
-
[ 1080, 2340, 3, '<!-- iPhone 13 Mini -->' ],
|
|
63
|
-
[ 828, 1792, 2, '<!-- iPhone XR, 11 -->' ],
|
|
64
|
-
[ 1125, 2436, 3, '<!-- iPhone X, XS, 12 mini, 11 Pro -->' ],
|
|
65
|
-
[ 1242, 2688, 3, '<!-- iPhone XS Max, 11 Pro Max -->' ],
|
|
66
|
-
[ 750, 1334, 2, '<!-- iPhone 8, 7, 6s, 6 -->' ],
|
|
67
|
-
[ 1242, 2208, 3, '<!-- iPhone 8 Plus, 7 Plus, 6s Plus, 6 Plus -->' ],
|
|
68
|
-
[ 1620, 2160, 2, '<!-- iPad 10.2" -->' ],
|
|
69
|
-
[ 1536, 2048, 2, '<!-- iPad Mini, Air, 9.7" -->' ],
|
|
70
|
-
[ 1668, 2224, 2, '<!-- iPad Pro 10.5" -->' ],
|
|
71
|
-
[ 1668, 2388, 2, '<!-- iPad Pro 11" -->' ],
|
|
72
|
-
[ 2048, 2732, 2, '<!-- iPad Pro 12.9" -->' ]
|
|
73
|
-
].map(getAppleLaunch)
|
|
74
|
-
]
|