commit 59999a05b3792071382a26783d31a5ce45921963 Author: Phil Kunz Date: Thu Oct 26 14:23:13 2017 +0200 initial diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..67b291e --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +.nogit/ +node_modules/ +coverage/ +public/ +pages/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..1128296 --- /dev/null +++ b/.gitlab-ci.yml @@ -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 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 new file mode 100644 index 0000000..8979726 --- /dev/null +++ b/package.json @@ -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" + } +} diff --git a/test/test.ts b/test/test.ts new file mode 100644 index 0000000..c8ebafd --- /dev/null +++ b/test/test.ts @@ -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() diff --git a/ts/index.ts b/ts/index.ts new file mode 100644 index 0000000..a241938 --- /dev/null +++ b/ts/index.ts @@ -0,0 +1,3 @@ +import * as plugins from './ppal.plugins' + +export let standardExport = 'Hi there! :) This is a exported string' diff --git a/ts/ppal.plugins.ts b/ts/ppal.plugins.ts new file mode 100644 index 0000000..97b63a3 --- /dev/null +++ b/ts/ppal.plugins.ts @@ -0,0 +1 @@ +import 'typings-global' diff --git a/tslint.json b/tslint.json new file mode 100644 index 0000000..45052ad --- /dev/null +++ b/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "tslint-config-standard" +}