commit 42eda7bbf25f0a4e084f538f884c91cfcbc60807 Author: PhilKunz Date: Sat Oct 15 19:00:52 2016 +0200 initial diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..85c4869 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +node_modules/ +public/ +pages/ +coverage/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..ccd25c4 --- /dev/null +++ b/.gitlab-ci.yml @@ -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 \ No newline at end of file diff --git a/npmextra.json b/npmextra.json new file mode 100644 index 0000000..e69de29 diff --git a/package.json b/package.json new file mode 100644 index 0000000..0d4d7be --- /dev/null +++ b/package.json @@ -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" + } +} diff --git a/ts/index.ts b/ts/index.ts new file mode 100644 index 0000000..987ca72 --- /dev/null +++ b/ts/index.ts @@ -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) +} diff --git a/tslint.json b/tslint.json new file mode 100644 index 0000000..45052ad --- /dev/null +++ b/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "tslint-config-standard" +}