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/ node_modules/
pages/ coverage/
public/ 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: stages:
- mirror
- test - test
- release - release
- trigger - trigger
- pages - pages
mirror:
stage: mirror
script:
- npmci git mirror
tags:
- docker
testLEGACY: testLEGACY:
stage: test stage: test
script: script:
- npmci test legacy - npmci node install legacy
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/
tags: tags:
- docker - docker
allow_failure: true allow_failure: true
@ -17,21 +34,28 @@ testLEGACY:
testLTS: testLTS:
stage: test stage: test
script: script:
- npmci test lts - npmci node install lts
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/
tags: tags:
- docker - docker
testSTABLE: testSTABLE:
stage: test stage: test
script: script:
- npmci test stable - npmci node install stable
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/
tags: tags:
- docker - docker
release: release:
stage: release stage: release
script: script:
- npmci publish - npmci npm prepare
- npmci npm publish
only: only:
- tags - tags
tags: tags:
@ -47,10 +71,13 @@ trigger:
- docker - docker
pages: pages:
image: hosttoday/ht-docker-node:npmpage image: hosttoday/ht-docker-node:npmci
stage: pages stage: pages
script: script:
- npmci command npmpage --publish gitlab - npmci command yarn global add npmpage
- npmci command npmpage
tags:
- docker
only: only:
- tags - tags
artifacts: 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", "name": "docean",
"version": "1.0.1", "version": "1.0.1",
"description": "digitalocean API wrapper", "description": "Digital Ocean abstracted API package for mojo.io",
"main": "dist/index.js", "main": "dist/index.js",
"typings": "dist/index.d.ts", "typings": "dist/index.d.ts",
"author": "Lossless GmbH",
"license": "MIT",
"scripts": { "scripts": {
"test": "(npmts)" "test": "(npmts)"
}, },
"repository": { "devDependencies": {
"type": "git", "tapbundle": "^1.0.13"
"url": "git+ssh://git@gitlab.com/mojoio/docean.git"
}, },
"keywords": [ "dependencies": {
"digitalocean", "typings-global": "^1.0.16"
"API" }
],
"author": "Lossless GmbH",
"license": "MIT",
"bugs": {
"url": "https://gitlab.com/mojoio/docean/issues"
},
"homepage": "https://gitlab.com/mojoio/docean#README"
} }

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'