This commit is contained in:
Philipp Kunz 2018-03-07 22:22:15 +01:00
commit b9990c3953
15 changed files with 1344 additions and 0 deletions

5
.gitignore vendored Normal file
View File

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

95
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,95 @@
# gitzone standard
image: hosttoday/ht-docker-node:npmci
cache:
paths:
- .yarn/
key: "$CI_BUILD_STAGE"
stages:
- security
- test
- release
- trigger
- pages
mirror:
stage: security
script:
- npmci git mirror
tags:
- docker
snyk:
stage: security
script:
- npmci command yarn global add snyk
- npmci command yarn install --ignore-scripts
- npmci command snyk test
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

1
dist/index.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export declare let standardExport: string;

4
dist/index.js vendored Normal file
View File

@ -0,0 +1,4 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.standardExport = 'Hi there! :) This is an exported string';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUVXLFFBQUEsY0FBYyxHQUFHLHlDQUF5QyxDQUFDIn0=

2
dist/smartuniverse.plugins.d.ts vendored Normal file
View File

@ -0,0 +1,2 @@
declare const removeme: {};
export { removeme };

5
dist/smartuniverse.plugins.js vendored Normal file
View File

@ -0,0 +1,5 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const removeme = {};
exports.removeme = removeme;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnR1bml2ZXJzZS5wbHVnaW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnR1bml2ZXJzZS5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsTUFBTSxRQUFRLEdBQUcsRUFBRSxDQUFDO0FBQ1gsNEJBQVEifQ==

7
npmextra.json Normal file
View File

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

20
package.json Normal file
View File

@ -0,0 +1,20 @@
{
"name": "smartuniverse",
"version": "1.0.1",
"description": "messaging service for your micro services",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"author": "Lossless GmbH",
"license": "MIT",
"scripts": {
"test": "(npmts)",
"format": "(gitzone format)"
},
"devDependencies": {
"tapbundle": "^1.0.13"
},
"dependencies": {
"smartcli": "^2.0.12",
"smartexpress": "^1.0.19"
}
}

8
test/test.ts Normal file
View File

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

1
ts/index.ts Normal file
View File

@ -0,0 +1 @@
export * from './smartuniverse.classes.smartuniverse';

View File

@ -0,0 +1,5 @@
import * as plugins from './smartuniverse.plugins';
export Smartuniverse {
}

9
ts/smartuniverse.cli.ts Normal file
View File

@ -0,0 +1,9 @@
import * as plugins from './smartuniverse.plugins';
process.env.CLI = 'true';
const universeCli = new plugins.smartcli.Smartcli();
universeCli.standardTask().then(argvArg => {
});

View File

@ -0,0 +1,4 @@
import * as smartcli from 'smartcli';
import * as smartexpress from 'smartexpress';
export { smartcli, smartexpress };

3
tslint.json Normal file
View File

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

1175
yarn.lock Normal file

File diff suppressed because it is too large Load Diff