All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkiverse.web.bundler.deployment.items.InstalledWebDependenciesBuildItem Maven / Gradle / Ivy

There is a newer version: 1.8.0
Show newest version
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