fix(core): update

This commit is contained in:
2022-03-16 00:21:05 +01:00
parent d5753019cf
commit 63d35e2ce8
19 changed files with 817 additions and 285 deletions

View File

@ -1,27 +1,39 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as tsbundle from '../dist_ts/index.js';
import * as tsbundle from '../ts/index.js';
import * as path from 'path';
tap.test('should bundle test', async () => {
tap.test('should bundle with esbuild', async () => {
const tsbundleInstance = new tsbundle.TsBundle();
await tsbundleInstance.buildTest(
await tsbundleInstance.build(
process.cwd() + '/test',
'./ts_web/index.ts',
'./dist_manual/test.js',
'rollup',
{}
{
bundler: 'esbuild'
}
);
});
tap.test('should bundle production', async () => {
tap.test('should bundle with parcel', async () => {
const tsbundleInstance = new tsbundle.TsBundle();
await tsbundleInstance.buildProduction(
await tsbundleInstance.build(
process.cwd() + '/test',
'./ts_web/index.ts',
'./dist_manual/test.js',
{
bundler: 'parcel'
}
);
});
tap.test('should bundle with rollup', async () => {
const tsbundleInstance = new tsbundle.TsBundle();
await tsbundleInstance.build(
process.cwd(),
'./test/ts_web/index.ts',
'./test/dist_manual/production.js',
'rollup',
{}
{bundler: 'rollup'}
);
});