From 42eda7bbf25f0a4e084f538f884c91cfcbc60807 Mon Sep 17 00:00:00 2001 From: PhilKunz Date: Sat, 15 Oct 2016 19:00:52 +0200 Subject: [PATCH] initial --- .gitignore | 4 ++++ .gitlab-ci.yml | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++ npmextra.json | 0 package.json | 28 ++++++++++++++++++++++++++ ts/index.ts | 21 ++++++++++++++++++++ tslint.json | 3 +++ 6 files changed, 109 insertions(+) create mode 100644 .gitignore create mode 100644 .gitlab-ci.yml create mode 100644 npmextra.json create mode 100644 package.json create mode 100644 ts/index.ts create mode 100644 tslint.json 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" +}