fix(core): update

This commit is contained in:
2021-07-22 21:55:08 +02:00
parent dadd0b70b3
commit 38426a24bc
7 changed files with 14521 additions and 34 deletions

View File

@@ -1,8 +1,15 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as tsbundle from '../ts/index';
tap.test('first test', async () => {
import * as path from 'path';
tap.skip.test('first test', async () => {
await tsbundle.runCli();
});
tap.test('should run a custom function', async () => {
const tsbundleInstance = new tsbundle.TsBundle();
await tsbundleInstance.buildProduction(process.cwd(), './test/ts_web/index.ts', './test/dist_manual/index.js')
})
tap.start();

View File

@@ -1,3 +1,18 @@
const myConst = 'hello';
const myConst: string = 'hello';
function sealed(constructor: Function) {
Object.seal(constructor);
Object.seal(constructor.prototype);
}
@sealed
class BugReport {
type = "report";
title: string;
constructor(t: string) {
this.title = t;
}
}
console.log(myConst);