5 Commits

Author SHA1 Message Date
dc5457996b 1.0.7 2020-01-30 11:50:36 +00:00
065592df59 fix(core): update 2020-01-30 11:50:35 +00:00
4d4e2483cf 1.0.6 2019-06-15 18:35:10 +02:00
7f3b28f27b 1.0.5 2019-06-15 18:10:09 +02:00
e3d6dced15 fix(core): update 2019-06-15 18:10:09 +02:00
7 changed files with 71 additions and 32 deletions

View File

@ -1,4 +1,4 @@
# gitzone standard
# gitzone ci_default
image: hosttoday/ht-docker-node:npmci
cache:
@ -78,19 +78,11 @@ release:
# ====================
codequality:
stage: metadata
image: docker:stable
allow_failure: true
services:
- docker:stable-dind
script:
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
- docker run
--env SOURCE_CODE="$PWD"
--volume "$PWD":/code
--volume /var/run/docker.sock:/var/run/docker.sock
"registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
artifacts:
paths: [codeclimate.json]
- npmci command npm install -g tslint typescript
- npmci npm install
- npmci command "tslint -c tslint.json ./ts/**/*.ts"
tags:
- docker
- priv

View File

@ -14,4 +14,4 @@
"npmGlobalTools": [],
"npmAccessLevel": "public"
}
}
}

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartmanifest",
"version": "1.0.4",
"version": "1.0.7",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartmanifest",
"version": "1.0.4",
"version": "1.0.7",
"private": false,
"description": "a module for creating web app manifests",
"main": "dist/index.js",
@ -20,5 +20,15 @@
"tslint": "^5.17.0",
"tslint-config-prettier": "^1.15.0"
},
"dependencies": {}
"dependencies": {},
"files": [
"ts/*",
"ts_web/*",
"dist/*",
"dist_web/*",
"assets/*",
"cli.js",
"npmextra.json",
"readme.md"
]
}

26
readme.md Normal file
View File

@ -0,0 +1,26 @@
# @pushrocks/smartmanifest
a module for creating web app manifests
## Availabililty and Links
* [npmjs.org (npm package)](https://www.npmjs.com/package/@pushrocks/smartmanifest)
* [gitlab.com (source)](https://gitlab.com/pushrocks/smartmanifest)
* [github.com (source mirror)](https://github.com/pushrocks/smartmanifest)
* [docs (typedoc)](https://pushrocks.gitlab.io/smartmanifest/)
## Status for master
[![build status](https://gitlab.com/pushrocks/smartmanifest/badges/master/build.svg)](https://gitlab.com/pushrocks/smartmanifest/commits/master)
[![coverage report](https://gitlab.com/pushrocks/smartmanifest/badges/master/coverage.svg)](https://gitlab.com/pushrocks/smartmanifest/commits/master)
[![npm downloads per month](https://img.shields.io/npm/dm/@pushrocks/smartmanifest.svg)](https://www.npmjs.com/package/@pushrocks/smartmanifest)
[![Known Vulnerabilities](https://snyk.io/test/npm/@pushrocks/smartmanifest/badge.svg)](https://snyk.io/test/npm/@pushrocks/smartmanifest)
[![TypeScript](https://img.shields.io/badge/TypeScript->=%203.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/)
[![node](https://img.shields.io/badge/node->=%2010.x.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/)
[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-prettier-ff69b4.svg)](https://prettier.io/)
## Usage
For further information read the linked docs at the top of this readme.
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
[![repo-footer](https://pushrocks.gitlab.io/assets/repo-footer.svg)](https://maintainedby.lossless.com)

View File

@ -8,13 +8,15 @@ export interface ISmartManifestConstructorOptions {
orientation?: string;
background_color?: string;
theme_color?: string;
icons?: [
{
src: string;
type: string;
sizes: string;
}
];
icons?: Array<{
src: string;
type: string;
sizes: string;
}>;
related_applications?: Array<{
platform: 'play' | string;
id: string;
}>;
}
const defaultConstructorOptions: ISmartManifestConstructorOptions = {
@ -23,16 +25,27 @@ const defaultConstructorOptions: ISmartManifestConstructorOptions = {
start_url: '/',
display: 'standalone',
orientation: 'any',
background_color: '#fff',
theme_color: '#f78f21',
background_color: '#000000',
theme_color: '#000000',
icons: [
{
src: '/assets/icon-large.png',
src: '/assetbroker/manifest/icon-large.png',
type: 'image/png',
sizes: '1024x1024',
sizes: '1024x1024'
},
{
src: '/assetbroker/manifest/icon-144x144.png',
sizes: '144x144',
type: 'image/png'
},
{
src: '/assetbroker/manifest/icon-512x512.png',
sizes: '512x512',
type: 'image/png'
}
]
}
],
related_applications: []
};
export class SmartManifest {
public options: ISmartManifestConstructorOptions;

View File

@ -1,4 +1,2 @@
const removeme = {};
export {
removeme
}
export { removeme };