Class BundleDependencies

java.lang.Object
ch.nerdin.esbuild.BundleDependencies

public class BundleDependencies extends Object
  • Field Details

  • Constructor Details

    • BundleDependencies

      public BundleDependencies()
  • Method Details

    • bundle

      public Path bundle(List<Path> dependencies, ch.nerdin.esbuild.BundleDependencies.BundleType type, Path entry) throws IOException
      Use esbuild to bundle either webjar or mvnpm dependencies into a bundle.
      Parameters:
      dependencies - the locations of the webjar or mvnpm bundles
      type - to indicate the type of bundles, so either web_jar or mvnpm
      entry - the entry javascript file
      Returns:
      the folder that has the result of the transformation
      Throws:
      IOException - when something could not be written
    • bundle

      public Path bundle(List<Path> dependencies, ch.nerdin.esbuild.BundleDependencies.BundleType type, Path entry, Config config) throws IOException
      Throws:
      IOException
    • extract

      protected Path extract(List<Path> dependencies, ch.nerdin.esbuild.BundleDependencies.BundleType type) throws IOException
      Throws:
      IOException
    • esBuild

      protected void esBuild(Config config) throws IOException
      Throws:
      IOException