Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require __DIR__ . '/vendor/autoload.php';
- $config = new \Hostnet\Component\Resolver\Config\SimpleConfig(
- false,
- __DIR__ . '/benchmark/',
- [],
- [
- 'main.ts'
- ],
- [],
- 'angular',
- 'dist',
- 'angular/src',
- __DIR__ . '/benchmark/var',
- [
- new \Hostnet\Component\Resolver\Plugin\CorePlugin(),
- new \Hostnet\Component\Resolver\Plugin\TsPlugin(),
- new \Hostnet\Component\Resolver\Plugin\MinifyPlugin()
- ],
- new \Hostnet\Component\Resolver\Import\Nodejs\Executable('node', __DIR__ . '/node_modules'),
- null,
- null,
- new \Hostnet\Component\Resolver\Split\OneOnOneSplittingStrategy('angular/src')
- );
- $start = microtime(true);
- \Hostnet\Component\Resolver\Packer::pack($config);
- echo 'Test completed in: ', round((microtime(true) - $start) * 1000, 3), " ms\n";
- $fs = new \Symfony\Component\Filesystem\Filesystem();
- $fs->remove([__DIR__ . '/benchmark/angular/dist', __DIR__ . '/benchmark/var']);
Add Comment
Please, Sign In to add comment