This commit is contained in:
Philipp Kunz 2017-09-17 17:35:01 +02:00
parent 5b0c0c0d19
commit c07457d43e
8 changed files with 76 additions and 32 deletions

6
.gitignore vendored
View File

@ -1,5 +1,5 @@
coverage/
.nogit/
node_modules/
pages/
coverage/
public/
pages/

View File

@ -1,15 +1,32 @@
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
allow_failure: true
@ -17,21 +34,28 @@ testLEGACY:
testLTS:
stage: test
script:
- npmci test lts
- npmci node install lts
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- 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
release:
stage: release
script:
- npmci publish
- npmci npm prepare
- npmci npm publish
only:
- tags
tags:
@ -47,10 +71,13 @@ trigger:
- 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:

4
defaults.yml Normal file
View File

@ -0,0 +1,4 @@
module.name: smartmodule
module.description: a smart description
module.author: Lossless GmbH
module.license: MIT

7
npmextra.json Normal file
View File

@ -0,0 +1,7 @@
{
"npmci": {
"npmGlobalTools": [
"npmts"
]
}
}

View File

@ -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"
}
}

8
test/test.ts Normal file
View File

@ -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()

1
ts/docean.plugins.ts Normal file
View File

@ -0,0 +1 @@
import 'typings-global'

3
ts/index.ts Normal file
View File

@ -0,0 +1,3 @@
import * as plugins from './docean.plugins'
export let standardExport = 'Hi there! :) This is a exported string'