From 68eebfeeb6152359c50c7e940c64b0b983bf45c5 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Thu, 14 Sep 2017 07:20:26 +0200 Subject: [PATCH] initial --- .gitignore | 5 +++ .gitlab-ci.yml | 86 +++++++++++++++++++++++++++++++++++++++++++ defaults.yml | 4 ++ npmextra.json | 7 ++++ package.json | 18 +++++++++ readme.md | 29 +++++++++++++++ test/test.ts | 8 ++++ ts/index.ts | 3 ++ ts/slackme.plugins.ts | 1 + tslint.json | 3 ++ 10 files changed, 164 insertions(+) create mode 100644 .gitignore create mode 100644 .gitlab-ci.yml create mode 100644 defaults.yml create mode 100644 npmextra.json create mode 100644 package.json create mode 100644 readme.md create mode 100644 test/test.ts create mode 100644 ts/index.ts create mode 100644 ts/slackme.plugins.ts create mode 100644 tslint.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..67b291e --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.nogit/ +node_modules/ +coverage/ +public/ +pages/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..1128296 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,86 @@ +# gitzone standard +image: hosttoday/ht-docker-node:npmci + +cache: + paths: + - .yarn/ + key: "$CI_BUILD_STAGE" + +stages: +- mirror +- test +- release +- trigger +- pages + +mirror: + stage: mirror + script: + - npmci git mirror + tags: + - docker + +testLEGACY: + stage: test + script: + - npmci node install legacy + - npmci npm install + - npmci npm test + coverage: /\d+.?\d+?\%\s*coverage/ + tags: + - docker + allow_failure: true + +testLTS: + stage: test + script: + - npmci node install lts + - npmci npm install + - npmci npm test + coverage: /\d+.?\d+?\%\s*coverage/ + tags: + - docker + +testSTABLE: + stage: test + script: + - npmci node install stable + - npmci npm install + - npmci npm test + coverage: /\d+.?\d+?\%\s*coverage/ + tags: + - docker + +release: + stage: release + script: + - npmci npm prepare + - npmci npm publish + only: + - tags + tags: + - docker + +trigger: + stage: trigger + script: + - npmci trigger + only: + - tags + tags: + - docker + +pages: + image: hosttoday/ht-docker-node:npmci + stage: pages + script: + - npmci command yarn global add npmpage + - npmci command npmpage + tags: + - docker + only: + - tags + artifacts: + expire_in: 1 week + paths: + - public diff --git a/defaults.yml b/defaults.yml new file mode 100644 index 0000000..5f158cc --- /dev/null +++ b/defaults.yml @@ -0,0 +1,4 @@ +module.name: smartmodule +module.description: a smart description +module.author: Lossless GmbH +module.license: MIT \ No newline at end of file diff --git a/npmextra.json b/npmextra.json new file mode 100644 index 0000000..654a32a --- /dev/null +++ b/npmextra.json @@ -0,0 +1,7 @@ +{ + "npmci": { + "npmGlobalTools": [ + "npmts" + ] + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..0cc3e85 --- /dev/null +++ b/package.json @@ -0,0 +1,18 @@ +{ + "name": "slackme", + "version": "1.0.1", + "description": "API abstraction for mojoio", + "main": "dist/index.js", + "typings": "dist/index.d.ts", + "author": "Lossless GmbH", + "license": "MIT", + "scripts": { + "test": "(npmts)" + }, + "devDependencies": { + "tapbundle": "^1.0.13" + }, + "dependencies": { + "typings-global": "^1.0.16" + } +} diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..3d8580e --- /dev/null +++ b/readme.md @@ -0,0 +1,29 @@ +# slackme +API abstraction for mojoio + +## Availabililty +[![npm](https://mojoio.gitlab.io/assets/repo-button-npm.svg)](https://www.npmjs.com/package/slackme) +[![git](https://mojoio.gitlab.io/assets/repo-button-git.svg)](https://GitLab.com/mojoio/slackme) +[![git](https://mojoio.gitlab.io/assets/repo-button-mirror.svg)](https://github.com/mojoio/slackme) +[![docs](https://mojoio.gitlab.io/assets/repo-button-docs.svg)](https://mojoio.gitlab.io/slackme/) + +## Status for master +[![build status](https://GitLab.com/mojoio/slackme/badges/master/build.svg)](https://GitLab.com/mojoio/slackme/commits/master) +[![coverage report](https://GitLab.com/mojoio/slackme/badges/master/coverage.svg)](https://GitLab.com/mojoio/slackme/commits/master) +[![npm downloads per month](https://img.shields.io/npm/dm/slackme.svg)](https://www.npmjs.com/package/slackme) +[![Dependency Status](https://david-dm.org/mojoio/slackme.svg)](https://david-dm.org/mojoio/slackme) +[![bitHound Dependencies](https://www.bithound.io/github/mojoio/slackme/badges/dependencies.svg)](https://www.bithound.io/github/mojoio/slackme/master/dependencies/npm) +[![bitHound Code](https://www.bithound.io/github/mojoio/slackme/badges/code.svg)](https://www.bithound.io/github/mojoio/slackme) +[![TypeScript](https://img.shields.io/badge/TypeScript-2.x-blue.svg)](https://nodejs.org/dist/latest-v6.x/docs/api/) +[![node](https://img.shields.io/badge/node->=%206.x.x-blue.svg)](https://nodejs.org/dist/latest-v6.x/docs/api/) +[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/) + +## Usage +Use TypeScript for best in class instellisense. + +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://mojoio.gitlab.io/assets/repo-footer.svg)](https://mojo.io) diff --git a/test/test.ts b/test/test.ts new file mode 100644 index 0000000..f9408b5 --- /dev/null +++ b/test/test.ts @@ -0,0 +1,8 @@ +import { expect, tap } from 'tapbundle' +import * as slackme from '../ts/index' + +tap.test('first test', async () => { + console.log(slackme.standardExport) +}) + +tap.start() diff --git a/ts/index.ts b/ts/index.ts new file mode 100644 index 0000000..7b1d634 --- /dev/null +++ b/ts/index.ts @@ -0,0 +1,3 @@ +import * as plugins from './slackme.plugins' + +export let standardExport = 'Hi there! :) This is a exported string' diff --git a/ts/slackme.plugins.ts b/ts/slackme.plugins.ts new file mode 100644 index 0000000..97b63a3 --- /dev/null +++ b/ts/slackme.plugins.ts @@ -0,0 +1 @@ +import 'typings-global' 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" +}