fix(core): update

This commit is contained in:
Philipp Kunz 2019-10-30 19:16:37 +01:00
parent 53572dc470
commit 52f370931e
5 changed files with 121 additions and 73 deletions

22
.gitignore vendored Normal file
View File

@ -0,0 +1,22 @@
.nogit/
# artifacts
coverage/
public/
pages/
# installs
node_modules/
# caches
.yarn/
.cache/
.rpt2_cache
# builds
dist/
dist_web/
dist_serve/
dist_ts_web/
# custom

View File

@ -1,71 +1,61 @@
# gitzone docker # gitzone ci_docker
image: hosttoday/ht-docker-dbase:npmci image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
services:
- docker:dind
variables:
DOCKER_DRIVER: overlay
cache:
paths:
- .npmci-cache/
key: '$CI_BUILD_STAGE'
before_script:
- npmci npm prepare
stages: stages:
- buildAndTest
- build
- test - test
- release - release
- trigger - trigger
- pages - pages
before_script: testStable:
- yarn global add npmci
- npmci docker login
buildAndTest:
stage: buildAndTest
script:
- npmci docker build
- npmci docker test
except:
- tags
- triggers
tags:
- lossless
- priv
build:
stage: build
script:
- npmci docker build
- npmci docker push registry.gitlab.com test
only:
- tags
- triggers
tags:
- lossless
- priv
test:
stage: test stage: test
script: script:
- npmci docker pull registry.gitlab.com test - npmci npm prepare
- npmci docker test - npmci node install stable
only: - npmci npm install
- tags - npmci npm test
- triggers coverage: /\d+.?\d+?\%\s*coverage/
tags: tags:
- lossless - lossless
- priv - docker
testBuild:
stage: test
script:
- npmci npm prepare
- npmci node install stable
- npmci npm install
- npmci command npm run build
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- lossless
- docker
- notpriv
release: release:
image: registry.gitlab.com/hosttoday/ht-docker-dbase:npmci
services:
- docker:stable-dind
stage: release stage: release
script: script:
- npmci docker pull registry.gitlab.com test - npmci node install stable
- npmci docker push docker.io - npmci docker login
- npmci docker build
- npmci docker test
- npmci docker push registry.gitlab.com - npmci docker push registry.gitlab.com
only: only:
- tags - tags
- triggers
tags: tags:
- lossless - lossless
- docker
- priv - priv
trigger: trigger:
@ -74,24 +64,6 @@ trigger:
- npmci trigger - npmci trigger
only: only:
- tags - tags
- triggers
tags: tags:
- lossless - lossless
- priv
pages:
before_script:
- 'npmci -v'
image: hosttoday/ht-docker-node:npmci
stage: pages
script:
- npmci command yarn global add npmpage
- npmci command npmpage
only:
- tags
tags:
- docker - docker
artifacts:
expire_in: 1 week
paths:
- public

View File

@ -4,7 +4,8 @@
"description": "elastic stack with full basic authentication", "description": "elastic stack with full basic authentication",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1",
"build": "echo \"Not needed for now\""
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -15,5 +16,17 @@
"bugs": { "bugs": {
"url": "https://gitlab.com/hosttoday/ht-docker-elk/issues" "url": "https://gitlab.com/hosttoday/ht-docker-elk/issues"
}, },
"homepage": "https://gitlab.com/hosttoday/ht-docker-elk#README" "homepage": "https://gitlab.com/hosttoday/ht-docker-elk#README",
} "private": true,
"files": [
"ts/**/*",
"ts_web/**/*",
"dist/**/*",
"dist_web/**/*",
"dist_ts_web/**/*",
"assets/**/*",
"cli.js",
"npmextra.json",
"readme.md"
]
}

View File

@ -1,6 +1,30 @@
# hosttoday/ht-docker-elk # @hosttoday/ht-docker-elk
This image runs the elastic stack and supports full basic authentication elastic stack with full basic authentication
``` ## Availabililty and Links
docker run -d --name elstack -p 80:80 -p 443:443 -p 9200:9201 -e SSL=true -e ELSK_USER="anyuser" -e ELSK_PASS="anypass" hosttoday/ht-docker-elk * [npmjs.org (npm package)](https://www.npmjs.com/package/@hosttoday/ht-docker-node)
``` * [gitlab.com (source)](https://gitlab.com/hosttoday/ht-docker-elk)
* [github.com (source mirror)](https://github.com/hosttoday/ht-docker-elk)
* [docs (typedoc)](https://hosttoday.gitlab.io/ht-docker-elk/)
## Status for master
[![build status](https://gitlab.com/hosttoday/ht-docker-elk/badges/master/build.svg)](https://gitlab.com/hosttoday/ht-docker-elk/commits/master)
[![coverage report](https://gitlab.com/hosttoday/ht-docker-elk/badges/master/coverage.svg)](https://gitlab.com/hosttoday/ht-docker-elk/commits/master)
[![npm downloads per month](https://img.shields.io/npm/dm/@hosttoday/ht-docker-node.svg)](https://www.npmjs.com/package/@hosttoday/ht-docker-node)
[![Known Vulnerabilities](https://snyk.io/test/npm/@hosttoday/ht-docker-node/badge.svg)](https://snyk.io/test/npm/@hosttoday/ht-docker-node)
[![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
## Contribute
We are always happy for code contributions. If you are not the code contributing type that is ok. + Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: [Contribute monthly :)](https://lossless.link/contribute)
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)
[![repo-footer](https://lossless.gitlab.io/publicrelations/repofooter.svg)](https://maintainedby.lossless.com)

17
tslint.json Normal file
View File

@ -0,0 +1,17 @@
{
"extends": ["tslint:latest", "tslint-config-prettier"],
"rules": {
"semicolon": [true, "always"],
"no-console": false,
"ordered-imports": false,
"object-literal-sort-keys": false,
"member-ordering": {
"options":{
"order": [
"static-method"
]
}
}
},
"defaultSeverity": "warning"
}