initial
This commit is contained in:
parent
5b0c0c0d19
commit
c07457d43e
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,5 +1,5 @@
|
|||||||
coverage/
|
.nogit/
|
||||||
node_modules/
|
node_modules/
|
||||||
pages/
|
coverage/
|
||||||
public/
|
public/
|
||||||
|
pages/
|
||||||
|
@ -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:
|
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
|
||||||
|
|
||||||
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:
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
stage: trigger
|
stage: trigger
|
||||||
script:
|
script:
|
||||||
- npmci trigger
|
- npmci trigger
|
||||||
only:
|
only:
|
||||||
- tags
|
- tags
|
||||||
tags:
|
tags:
|
||||||
- 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
4
defaults.yml
Normal 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
7
npmextra.json
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"npmci": {
|
||||||
|
"npmGlobalTools": [
|
||||||
|
"npmts"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
22
package.json
22
package.json
@ -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
8
test/test.ts
Normal 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
1
ts/docean.plugins.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
import 'typings-global'
|
3
ts/index.ts
Normal file
3
ts/index.ts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
import * as plugins from './docean.plugins'
|
||||||
|
|
||||||
|
export let standardExport = 'Hi there! :) This is a exported string'
|
Loading…
Reference in New Issue
Block a user