This commit is contained in:
Philipp Kunz 2017-10-26 14:23:13 +02:00
commit 59999a05b3
9 changed files with 135 additions and 0 deletions

5
.gitignore vendored Normal file
View File

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

86
.gitlab-ci.yml Normal file
View File

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

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

18
package.json Normal file
View File

@ -0,0 +1,18 @@
{
"name": "ppal",
"version": "1.0.1",
"description": "mojoio PayPal API abstraction",
"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"
}
}

8
test/test.ts Normal file
View File

@ -0,0 +1,8 @@
import { expect, tap } from 'tapbundle'
import * as ppal from '../ts/index'
tap.test('first test', async () => {
console.log(ppal.standardExport)
})
tap.start()

3
ts/index.ts Normal file
View File

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

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

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

3
tslint.json Normal file
View File

@ -0,0 +1,3 @@
{
"extends": "tslint-config-standard"
}