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

tech.jhipster.lite.module.infrastructure.secondary.npm.JHipsterLiteFileSystemNpmVersionReader Maven / Gradle / Ivy

There is a newer version: 1.23.0
Show newest version
package tech.jhipster.lite.module.infrastructure.secondary.npm;

import java.util.List;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Repository;
import tech.jhipster.lite.module.domain.ProjectFiles;
import tech.jhipster.lite.module.domain.npm.JHLiteNpmVersionSource;
import tech.jhipster.lite.module.domain.npm.NpmPackagesVersions;

@Order
@Repository
public class JHipsterLiteFileSystemNpmVersionReader implements NpmVersionsReader {

  private final FileSystemNpmVersionReader reader;

  public JHipsterLiteFileSystemNpmVersionReader(ProjectFiles projectFiles) {
    reader = new FileSystemNpmVersionReader(projectFiles, List.of(JHLiteNpmVersionSource.values()), "/generator/dependencies/");
  }

  @Override
  public NpmPackagesVersions get() {
    return reader.get();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy