Guest User

Untitled

a guest
Jun 22nd, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. <?php
  2. require __DIR__ . '/vendor/autoload.php';
  3.  
  4. $config = new \Hostnet\Component\Resolver\Config\SimpleConfig(
  5. false,
  6. __DIR__ . '/benchmark/',
  7. [],
  8. [
  9. 'main.ts'
  10. ],
  11. [],
  12. 'angular',
  13. 'dist',
  14. 'angular/src',
  15. __DIR__ . '/benchmark/var',
  16. [
  17. new \Hostnet\Component\Resolver\Plugin\CorePlugin(),
  18. new \Hostnet\Component\Resolver\Plugin\TsPlugin(),
  19. new \Hostnet\Component\Resolver\Plugin\MinifyPlugin()
  20. ],
  21. new \Hostnet\Component\Resolver\Import\Nodejs\Executable('node', __DIR__ . '/node_modules'),
  22. null,
  23. null,
  24. new \Hostnet\Component\Resolver\Split\OneOnOneSplittingStrategy('angular/src')
  25. );
  26.  
  27. $start = microtime(true);
  28.  
  29. \Hostnet\Component\Resolver\Packer::pack($config);
  30.  
  31. echo 'Test completed in: ', round((microtime(true) - $start) * 1000, 3), " ms\n";
  32.  
  33. $fs = new \Symfony\Component\Filesystem\Filesystem();
  34. $fs->remove([__DIR__ . '/benchmark/angular/dist', __DIR__ . '/benchmark/var']);
Add Comment
Please, Sign In to add comment