fix(core): update

This commit is contained in:
2019-10-01 13:05:02 +02:00
parent 3986c0a18b
commit 997d28239f
8 changed files with 72 additions and 19 deletions

View File

@@ -1,3 +1,3 @@
import * as plugins from './smartpersona.plugins';
export let standardExport = 'Hi there! :) This is an exported string';
export * from './smartpersona.classes.company';
export * from './smartpersona.classes.person';
export * from './smartpersona.classes.role';

View File

@@ -0,0 +1,23 @@
import * as plugins from './smartpersona.plugins';
import { foldDec } from '@pushrocks/smartjson';
export class Company extends plugins.smartjson.Smartjson implements plugins.tsclass.ICompany {
@foldDec()
public foundedDate: plugins.tsclass.IDate;
@foldDec()
public closedDate: plugins.tsclass.IDate;
@foldDec()
public name: string;
@foldDec()
public status: plugins.tsclass.TCompanyStatus;
@foldDec()
public contact: plugins.tsclass.IContact;
constructor() {
super();
}
}

View File

@@ -0,0 +1,5 @@
import * as plugins from './smartpersona.plugins';
export class Person extends plugins.smartjson.Smartjson implements plugins.tsclass.IPerson {
}

View File

@@ -1 +1,5 @@
import * as plugins from './smartpersona.plugins';
export class Role {
};

View File

@@ -1,5 +1,13 @@
// @tsclass scope
import * as tsclass from '@tsclass/tsclass';
export {
tsclass
};
};
// @pushrocks scope
import * as smartjson from '@pushrocks/smartjson';
export {
smartjson
};

16
ts/tsconfig.json Normal file
View File

@@ -0,0 +1,16 @@
{
"compilerOptions": {
"target": "es2017",
"module": "es2015",
"moduleResolution": "node",
"lib": ["es2017", "dom"],
"declaration": true,
"inlineSources": true,
"inlineSourceMap": true,
"noUnusedLocals": true,
"noFallthroughCasesInSwitch": true,
"outDir": "dist/",
"skipLibCheck": true,
"experimentalDecorators": true
}
}