fix(core): update

This commit is contained in:
2021-07-23 15:45:23 +02:00
parent 07718ba618
commit ba44efe4cc
7 changed files with 449 additions and 147 deletions

View File

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