fix(core): update

This commit is contained in:
Philipp Kunz 2019-03-27 14:40:06 +01:00
parent f5f51ac1a6
commit 4a45262124
8 changed files with 48 additions and 34 deletions

View File

@ -34,28 +34,6 @@ snyk:
- docker - docker
- notpriv - notpriv
sast:
stage: security
image: docker:stable
variables:
DOCKER_DRIVER: overlay2
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 SAST_CONFIDENCE_LEVEL="${SAST_CONFIDENCE_LEVEL:-3}"
--volume "$PWD:/code"
--volume /var/run/docker.sock:/var/run/docker.sock
"registry.gitlab.com/gitlab-org/security-products/sast:$SP_VERSION" /app/bin/run /code
artifacts:
reports:
sast: gl-sast-report.json
tags:
- docker
- priv
# ==================== # ====================
# test stage # test stage
# ==================== # ====================

View File

@ -2,5 +2,15 @@
"npmci": { "npmci": {
"npmGlobalTools": [], "npmGlobalTools": [],
"npmAccessLevel": "public" "npmAccessLevel": "public"
},
"gitzone": {
"module": {
"githost": "gitlab.com",
"gitscope": "pushrocks",
"gitrepo": "websetup",
"shortDescription": "setup basic page properties",
"npmPackagename": "@pushrocks/websetup",
"license": "MIT"
}
} }
} }

View File

@ -24,4 +24,4 @@
"tslint-config-prettier": "^1.15.0" "tslint-config-prettier": "^1.15.0"
}, },
"dependencies": {} "dependencies": {}
} }

26
readme.md Normal file
View File

@ -0,0 +1,26 @@
# @pushrocks/websetup
setup basic page properties
## Availabililty and Links
* [npmjs.org (npm package)](https://www.npmjs.com/package/@pushrocks/websetup)
* [gitlab.com (source)](https://gitlab.com/pushrocks/websetup)
* [github.com (source mirror)](https://github.com/pushrocks/websetup)
* [docs (typedoc)](https://pushrocks.gitlab.io/websetup/)
## Status for master
[![build status](https://gitlab.com/pushrocks/websetup/badges/master/build.svg)](https://gitlab.com/pushrocks/websetup/commits/master)
[![coverage report](https://gitlab.com/pushrocks/websetup/badges/master/coverage.svg)](https://gitlab.com/pushrocks/websetup/commits/master)
[![npm downloads per month](https://img.shields.io/npm/dm/@pushrocks/websetup.svg)](https://www.npmjs.com/package/@pushrocks/websetup)
[![Known Vulnerabilities](https://snyk.io/test/npm/@pushrocks/websetup/badge.svg)](https://snyk.io/test/npm/@pushrocks/websetup)
[![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

@ -1,8 +1,8 @@
import { expect, tap } from '@pushrocks/tapbundle'; import { expect, tap } from '@pushrocks/tapbundle';
import * as websetup from '../ts/index' import * as websetup from '../ts/index';
tap.test('first test', async () => { tap.test('first test', async () => {
console.log('Waiting for proper puppeteer support here'); console.log('Waiting for proper puppeteer support here');
}) });
tap.start(); tap.start();

View File

@ -22,8 +22,8 @@ export class WebSetup {
} }
async setup(optionsArg: IWebSetupConstructorOptions) { async setup(optionsArg: IWebSetupConstructorOptions) {
if(optionsArg.serviceworker) { if (optionsArg.serviceworker) {
await setupServiceWoker() await setupServiceWoker();
} }
if (optionsArg.googleAnalyticsCode) { if (optionsArg.googleAnalyticsCode) {
@ -31,7 +31,7 @@ export class WebSetup {
} }
if (optionsArg.fsCode) { if (optionsArg.fsCode) {
await setupFullStory(optionsArg.fsCode) await setupFullStory(optionsArg.fsCode);
} }
} }
} }

View File

@ -2,7 +2,9 @@ export const setupServiceWoker = async () => {
// serviceworker // serviceworker
const script = document.createElement('script'); const script = document.createElement('script');
script.onload = () => { script.onload = () => {
console.log('Loaded Serviceworker. The serviceworker helps us with notifications and offline capabilities, so you can also read this site when your device is offline.'); console.log(
'Loaded Serviceworker. The serviceworker helps us with notifications and offline capabilities, so you can also read this site when your device is offline.'
);
}; };
script.src = 'serviceworker/mainthread.js'; script.src = 'serviceworker/mainthread.js';
document.head.appendChild(script); document.head.appendChild(script);

View File

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