Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
a2e8b41042 | |||
a0ff9427cb | |||
e37485adbd | |||
e1592f322c | |||
6604a58885 | |||
312b6d0e67 | |||
3565360610 | |||
f71b131d8d |
@ -1,7 +1,5 @@
|
|||||||
# gitzone ci_default
|
# gitzone ci_default
|
||||||
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
|
||||||
variables:
|
|
||||||
GIT_STRATEGY: clone
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
@ -40,11 +38,11 @@ snyk:
|
|||||||
# test stage
|
# test stage
|
||||||
# ====================
|
# ====================
|
||||||
|
|
||||||
testLTS:
|
testStable:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- npmci npm prepare
|
- npmci npm prepare
|
||||||
- npmci node install lts
|
- npmci node install stable
|
||||||
- npmci npm install
|
- npmci npm install
|
||||||
- npmci npm test
|
- npmci npm test
|
||||||
coverage: /\d+.?\d+?\%\s*coverage/
|
coverage: /\d+.?\d+?\%\s*coverage/
|
||||||
@ -56,7 +54,7 @@ testBuild:
|
|||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- npmci npm prepare
|
- npmci npm prepare
|
||||||
- npmci node install lts
|
- npmci node install stable
|
||||||
- npmci npm install
|
- npmci npm install
|
||||||
- npmci command npm run build
|
- npmci command npm run build
|
||||||
coverage: /\d+.?\d+?\%\s*coverage/
|
coverage: /\d+.?\d+?\%\s*coverage/
|
||||||
@ -67,7 +65,7 @@ testBuild:
|
|||||||
release:
|
release:
|
||||||
stage: release
|
stage: release
|
||||||
script:
|
script:
|
||||||
- npmci node install lts
|
- npmci node install stable
|
||||||
- npmci npm publish
|
- npmci npm publish
|
||||||
only:
|
only:
|
||||||
- tags
|
- tags
|
||||||
@ -83,6 +81,7 @@ codequality:
|
|||||||
allow_failure: true
|
allow_failure: true
|
||||||
script:
|
script:
|
||||||
- npmci command npm install -g tslint typescript
|
- npmci command npm install -g tslint typescript
|
||||||
|
- npmci npm prepare
|
||||||
- npmci npm install
|
- npmci npm install
|
||||||
- npmci command "tslint -c tslint.json ./ts/**/*.ts"
|
- npmci command "tslint -c tslint.json ./ts/**/*.ts"
|
||||||
tags:
|
tags:
|
||||||
@ -102,7 +101,7 @@ trigger:
|
|||||||
pages:
|
pages:
|
||||||
image: hosttoday/ht-docker-dbase:npmci
|
image: hosttoday/ht-docker-dbase:npmci
|
||||||
services:
|
services:
|
||||||
- docker:18-dind
|
- docker:stable-dind
|
||||||
stage: metadata
|
stage: metadata
|
||||||
script:
|
script:
|
||||||
- npmci command npm install -g @gitzone/tsdoc
|
- npmci command npm install -g @gitzone/tsdoc
|
||||||
|
2093
package-lock.json
generated
2093
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@tsclass/tsclass",
|
"name": "@tsclass/tsclass",
|
||||||
"version": "2.0.6",
|
"version": "2.0.10",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "common classes for TypeScript",
|
"description": "common classes for TypeScript",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"typings": "dist/index.d.ts",
|
"typings": "dist/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "tsrun test/test.ts",
|
"test": "tstest test/",
|
||||||
"build": "tsbuild"
|
"build": "tsbuild"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
@ -23,10 +23,13 @@
|
|||||||
"url": "https://github.com/tsclass/tsclass/issues"
|
"url": "https://github.com/tsclass/tsclass/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/tsclass/tsclass#readme",
|
"homepage": "https://github.com/tsclass/tsclass#readme",
|
||||||
"dependencies": {},
|
"dependencies": {
|
||||||
|
"@pushrocks/tapbundle": "^3.0.13"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@gitzone/tsbuild": "^2.1.17",
|
"@gitzone/tsbuild": "^2.1.17",
|
||||||
"@gitzone/tsrun": "^1.2.8",
|
"@gitzone/tsrun": "^1.2.8",
|
||||||
|
"@gitzone/tstest": "^1.0.26",
|
||||||
"tslint": "^5.19.0",
|
"tslint": "^5.19.0",
|
||||||
"tslint-config-prettier": "^1.18.0"
|
"tslint-config-prettier": "^1.18.0"
|
||||||
},
|
},
|
||||||
|
9
test/test.node.ts
Normal file
9
test/test.node.ts
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import { tap, expect } from '@pushrocks/tapbundle';
|
||||||
|
|
||||||
|
import * as tsclass from '../ts/index';
|
||||||
|
|
||||||
|
tap.test('should assign a correct type', async () => {
|
||||||
|
let contact: tsclass.IContact;
|
||||||
|
});
|
||||||
|
|
||||||
|
tap.start();
|
@ -1,3 +0,0 @@
|
|||||||
import * as tsclass from '../ts/index';
|
|
||||||
|
|
||||||
let contact: tsclass.IContact;
|
|
@ -14,4 +14,5 @@ export interface ICompany {
|
|||||||
foundedDate: IDate;
|
foundedDate: IDate;
|
||||||
closedDate: IDate;
|
closedDate: IDate;
|
||||||
status: TCompanyStatus;
|
status: TCompanyStatus;
|
||||||
|
contact: IContact;
|
||||||
}
|
}
|
||||||
|
@ -22,6 +22,7 @@ export interface IContact {
|
|||||||
|
|
||||||
email?: string;
|
email?: string;
|
||||||
phone?: string;
|
phone?: string;
|
||||||
|
fax?: string;
|
||||||
|
|
||||||
// =========
|
// =========
|
||||||
// financial
|
// financial
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
export * from './address';
|
export * from './address';
|
||||||
export * from './company';
|
export * from './company';
|
||||||
export * from './contact';
|
export * from './contact';
|
||||||
|
export * from './person';
|
||||||
|
6
ts/business/person.ts
Normal file
6
ts/business/person.ts
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
export interface IPerson {
|
||||||
|
title: string;
|
||||||
|
name: string;
|
||||||
|
surname: string;
|
||||||
|
sex: 'male' | 'female' | 'queer';
|
||||||
|
}
|
@ -3,4 +3,4 @@ export * from './moneyevent';
|
|||||||
export * from './releaseevent';
|
export * from './releaseevent';
|
||||||
export * from './requestevent';
|
export * from './requestevent';
|
||||||
export * from './sessionevent';
|
export * from './sessionevent';
|
||||||
export * from './userevent';
|
export * from './userevent';
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
export interface IEvent_Session {
|
export interface IEvent_Session {
|
||||||
userID: string;
|
userID: string;
|
||||||
sessionType: 'new' | 'reactivated'
|
sessionType: 'new' | 'reactivated';
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1 @@
|
|||||||
export interface IEvent_User {
|
export interface IEvent_User {}
|
||||||
|
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user