From c07457d43e351b6beb9508aa63aba32a14554a96 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sun, 17 Sep 2017 17:35:01 +0200 Subject: [PATCH] initial --- .gitignore | 6 ++--- .gitlab-ci.yml | 57 ++++++++++++++++++++++++++++++++------------ defaults.yml | 4 ++++ npmextra.json | 7 ++++++ package.json | 22 +++++++---------- test/test.ts | 8 +++++++ ts/docean.plugins.ts | 1 + ts/index.ts | 3 +++ 8 files changed, 76 insertions(+), 32 deletions(-) create mode 100644 defaults.yml create mode 100644 npmextra.json create mode 100644 test/test.ts create mode 100644 ts/docean.plugins.ts create mode 100644 ts/index.ts diff --git a/.gitignore b/.gitignore index db24b7d..67b291e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ -coverage/ +.nogit/ node_modules/ -pages/ +coverage/ public/ - +pages/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 72d25cc..1128296 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,56 +1,83 @@ -image: hosttoday/ht-docker-node:npmts +# 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 test legacy + - npmci node install legacy + - npmci npm install + - npmci npm test + coverage: /\d+.?\d+?\%\s*coverage/ tags: - - docker + - docker allow_failure: true testLTS: stage: test script: - - npmci test lts + - npmci node install lts + - npmci npm install + - npmci npm test + coverage: /\d+.?\d+?\%\s*coverage/ tags: - - docker + - docker testSTABLE: stage: test script: - - npmci test stable + - npmci node install stable + - npmci npm install + - npmci npm test + coverage: /\d+.?\d+?\%\s*coverage/ tags: - - docker + - docker release: stage: release script: - - npmci publish + - npmci npm prepare + - npmci npm publish only: - - tags + - tags tags: - - docker + - docker trigger: stage: trigger script: - - npmci trigger + - npmci trigger only: - - tags + - tags tags: - - docker + - docker pages: - image: hosttoday/ht-docker-node:npmpage + image: hosttoday/ht-docker-node:npmci stage: pages script: - - npmci command npmpage --publish gitlab + - npmci command yarn global add npmpage + - npmci command npmpage + tags: + - docker only: - tags artifacts: 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 index 9813df0..a68745e 100644 --- a/package.json +++ b/package.json @@ -1,24 +1,18 @@ { "name": "docean", "version": "1.0.1", - "description": "digitalocean API wrapper", + "description": "Digital Ocean abstracted API package for mojo.io", "main": "dist/index.js", "typings": "dist/index.d.ts", + "author": "Lossless GmbH", + "license": "MIT", "scripts": { "test": "(npmts)" }, - "repository": { - "type": "git", - "url": "git+ssh://git@gitlab.com/mojoio/docean.git" + "devDependencies": { + "tapbundle": "^1.0.13" }, - "keywords": [ - "digitalocean", - "API" - ], - "author": "Lossless GmbH", - "license": "MIT", - "bugs": { - "url": "https://gitlab.com/mojoio/docean/issues" - }, - "homepage": "https://gitlab.com/mojoio/docean#README" + "dependencies": { + "typings-global": "^1.0.16" + } } diff --git a/test/test.ts b/test/test.ts new file mode 100644 index 0000000..34113a0 --- /dev/null +++ b/test/test.ts @@ -0,0 +1,8 @@ +import { expect, tap } from 'tapbundle' +import * as docean from '../ts/index' + +tap.test('first test', async () => { + console.log(docean.standardExport) +}) + +tap.start() diff --git a/ts/docean.plugins.ts b/ts/docean.plugins.ts new file mode 100644 index 0000000..97b63a3 --- /dev/null +++ b/ts/docean.plugins.ts @@ -0,0 +1 @@ +import 'typings-global' diff --git a/ts/index.ts b/ts/index.ts new file mode 100644 index 0000000..0b0d4a0 --- /dev/null +++ b/ts/index.ts @@ -0,0 +1,3 @@ +import * as plugins from './docean.plugins' + +export let standardExport = 'Hi there! :) This is a exported string'