Package ch.nerdin.esbuild
Class BundleDependencies
java.lang.Object
ch.nerdin.esbuild.BundleDependencies
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ESBUILD_VERSION
- See Also:
-
-
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 bundlestype- to indicate the type of bundles, so either web_jar or mvnpmentry- 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
- Throws:
IOException
-