initial
This commit is contained in:
commit
42eda7bbf2
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
node_modules/
|
||||
public/
|
||||
pages/
|
||||
coverage/
|
53
.gitlab-ci.yml
Normal file
53
.gitlab-ci.yml
Normal file
@ -0,0 +1,53 @@
|
||||
image: hosttoday/ht-docker-node:npmci
|
||||
stages:
|
||||
- test
|
||||
- release
|
||||
- trigger
|
||||
- pages
|
||||
testLEGACY:
|
||||
stage: test
|
||||
script:
|
||||
- npmci test legacy
|
||||
tags:
|
||||
- docker
|
||||
allow_failure: true
|
||||
testLTS:
|
||||
stage: test
|
||||
script:
|
||||
- npmci test lts
|
||||
tags:
|
||||
- docker
|
||||
|
||||
testSTABLE:
|
||||
stage: test
|
||||
script:
|
||||
- npmci test stable
|
||||
tags:
|
||||
- docker
|
||||
release:
|
||||
stage: release
|
||||
script:
|
||||
- npmci publish
|
||||
only:
|
||||
- tags
|
||||
tags:
|
||||
- docker
|
||||
trigger:
|
||||
stage: trigger
|
||||
script:
|
||||
- npmci trigger
|
||||
only:
|
||||
- tags
|
||||
tags:
|
||||
- docker
|
||||
pages:
|
||||
image: hosttoday/ht-docker-node:npmpage
|
||||
stage: pages
|
||||
script:
|
||||
- npmci command npmpage --host gitlab
|
||||
only:
|
||||
- tags
|
||||
artifacts:
|
||||
expire_in: 1 week
|
||||
paths:
|
||||
- public
|
0
npmextra.json
Normal file
0
npmextra.json
Normal file
28
package.json
Normal file
28
package.json
Normal file
@ -0,0 +1,28 @@
|
||||
{
|
||||
"name": "smartlog",
|
||||
"version": "1.0.0",
|
||||
"description": "ultra stable logging API, that allows registering third party log tools",
|
||||
"main": "dist/index.js",
|
||||
"scripts": {
|
||||
"test": "(npmts)"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+ssh://git@gitlab.com/pushrocks/smartlog.git"
|
||||
},
|
||||
"keywords": [
|
||||
"log",
|
||||
"stable",
|
||||
"register",
|
||||
"beautylog"
|
||||
],
|
||||
"author": "Lossless GmbH",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://gitlab.com/pushrocks/smartlog/issues"
|
||||
},
|
||||
"homepage": "https://gitlab.com/pushrocks/smartlog#README",
|
||||
"dependencies": {
|
||||
"typings-global": "^1.0.14"
|
||||
}
|
||||
}
|
21
ts/index.ts
Normal file
21
ts/index.ts
Normal file
@ -0,0 +1,21 @@
|
||||
import 'typings-global'
|
||||
|
||||
export registerLogger = () => {
|
||||
|
||||
}
|
||||
|
||||
export error = (logString: string) => {
|
||||
console.error(logString)
|
||||
}
|
||||
|
||||
export info = (logString: string) => {
|
||||
console.info()
|
||||
}
|
||||
|
||||
export log = (logString: string) => {
|
||||
console.log(logString)
|
||||
}
|
||||
|
||||
export warn = (logString: string) => {
|
||||
console.warn(logString)
|
||||
}
|
3
tslint.json
Normal file
3
tslint.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "tslint-config-standard"
|
||||
}
|
Loading…
Reference in New Issue
Block a user