Package ch.nerdin.esbuild
Class Bundler
java.lang.Object
ch.nerdin.esbuild.Bundler
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Pathbundle(BundleOptions bundleOptions) Use esbuild to bundle either webjar or mvnpm dependencies into a bundle.protected static ProcessesBuild(EsBuildConfig esBuildConfig, BuildEventListener listener) protected static Pathextract(Path bundleDirectory, List<Path> dependencies, Bundler.BundleType type) static Stringstatic Watchwatch(BundleOptions bundleOptions, BuildEventListener eventListener)
-
Constructor Details
-
Bundler
public Bundler()
-
-
Method Details
-
getDefaultVersion
-
bundle
Use esbuild to bundle either webjar or mvnpm dependencies into a bundle.- Parameters:
bundleOptions-- Returns:
- the folder that has the result of the transformation
- Throws:
IOException- when something could not be written
-
watch
public static Watch watch(BundleOptions bundleOptions, BuildEventListener eventListener) throws IOException - Throws:
IOException
-
extract
protected static Path extract(Path bundleDirectory, List<Path> dependencies, Bundler.BundleType type) throws IOException - Throws:
IOException
-
esBuild
protected static Process esBuild(EsBuildConfig esBuildConfig, BuildEventListener listener) throws IOException - Throws:
IOException
-