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

com.github.sdorra.buildfrontend.NpmPackageManager Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
package com.github.sdorra.buildfrontend;

public class NpmPackageManager implements PackageManager {

    private final Node node;
    private final String executable;

    NpmPackageManager(Node node, String executable) {
        this.node = node;
        this.executable = executable;
    }

    @Override
    public void install() {
        node.execute(executable, "--color=false", "--parseable", "install");
    }

    @Override
    public void run(String script) {
        node.execute(executable, "--color=false", "--parseable", "run", script);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy