Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
7926ced69d | |||
fc0369cded | |||
b0bc321cc2 | |||
8c3214b872 | |||
bc1a89e3c7 | |||
92ae017d0f |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartmanifest",
|
"name": "@pushrocks/smartmanifest",
|
||||||
"version": "1.0.9",
|
"version": "2.0.2",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "a module for creating web app manifests",
|
"description": "a module for creating web app manifests",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@pushrocks/smartmanifest',
|
name: '@pushrocks/smartmanifest',
|
||||||
version: '1.0.9',
|
version: '2.0.2',
|
||||||
description: 'a module for creating web app manifests'
|
description: 'a module for creating web app manifests'
|
||||||
}
|
}
|
||||||
|
@ -12,11 +12,15 @@ export interface ISmartManifestConstructorOptions {
|
|||||||
src: string;
|
src: string;
|
||||||
type: string;
|
type: string;
|
||||||
sizes: string;
|
sizes: string;
|
||||||
|
purpose?: 'any' | 'maskable' | 'monochrome';
|
||||||
}>;
|
}>;
|
||||||
related_applications?: Array<{
|
related_applications?: Array<{
|
||||||
platform: 'play' | string;
|
platform: 'play' | string;
|
||||||
id: string;
|
id: string;
|
||||||
}>;
|
}>;
|
||||||
|
scope: string;
|
||||||
|
lang: string;
|
||||||
|
display_override: 'window-controls-overlay'[];
|
||||||
}
|
}
|
||||||
|
|
||||||
const defaultConstructorOptions: ISmartManifestConstructorOptions = {
|
const defaultConstructorOptions: ISmartManifestConstructorOptions = {
|
||||||
@ -32,6 +36,7 @@ const defaultConstructorOptions: ISmartManifestConstructorOptions = {
|
|||||||
src: '/assetbroker/manifest/icon-large.png',
|
src: '/assetbroker/manifest/icon-large.png',
|
||||||
type: 'image/png',
|
type: 'image/png',
|
||||||
sizes: '1024x1024',
|
sizes: '1024x1024',
|
||||||
|
purpose: 'any',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: '/assetbroker/manifest/icon-144x144.png',
|
src: '/assetbroker/manifest/icon-144x144.png',
|
||||||
@ -45,6 +50,9 @@ const defaultConstructorOptions: ISmartManifestConstructorOptions = {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
related_applications: [],
|
related_applications: [],
|
||||||
|
scope: '/',
|
||||||
|
lang: 'en',
|
||||||
|
display_override: ['window-controls-overlay'],
|
||||||
};
|
};
|
||||||
|
|
||||||
export class SmartManifest {
|
export class SmartManifest {
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
"target": "ES2022",
|
"target": "ES2022",
|
||||||
"module": "ES2022",
|
"module": "ES2022",
|
||||||
"moduleResolution": "nodenext",
|
"moduleResolution": "nodenext",
|
||||||
"esModuleInterop": true
|
"esModuleInterop": true,
|
||||||
|
"verbatimModuleSyntax": true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user