io.quarkiverse.web.bundler.deployment.items.InstalledWebDependenciesBuildItem Maven / Gradle / Ivy
package io.quarkiverse.web.bundler.deployment.items;
import java.nio.file.Path;
import java.util.List;
import io.mvnpm.esbuild.model.WebDependency;
import io.quarkiverse.web.bundler.deployment.items.WebDependenciesBuildItem.Dependency;
import io.quarkus.builder.item.SimpleBuildItem;
public final class InstalledWebDependenciesBuildItem extends SimpleBuildItem {
private final Path nodeModulesDir;
private final List list;
public InstalledWebDependenciesBuildItem(Path nodeModulesDir, List list) {
this.list = list;
this.nodeModulesDir = nodeModulesDir;
}
public Path nodeModulesDir() {
return nodeModulesDir;
}
public List list() {
return list;
}
public boolean isEmpty() {
return list.isEmpty();
}
public List toEsBuildWebDependencies() {
return list().stream().map(Dependency::toEsBuildWebDependency).toList();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy