npm安装generator-jhipster 6.8.0,它与来自github的地方不同

问题描述 投票:0回答:1

[当我使用[npm i generator-jhipster]下载Downloader-jhipster时,我发现与github的位置有所不同,例如[generators \ server \ templates \ src \ main \ java \ package \ repository \ PersistenceAuditEventRepository。 java.ejs]

<%_ if (reactive) { _%>
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
<%_ } _%>

import java.time.Instant;
<%_ if (!reactive) { _%>
import java.util.List;
<%_ } _%>

/**
 * Spring Data <% if (databaseType === 'sql') { %>JPA<% } else if (databaseType === 'mongodb') { %>MongoDB<% } else if (databaseType === 'couchbase') { %>Couchbase<% } %> repository for the {@link PersistentAuditEvent} entity.
 */

这是来自githup的代码

<%_ if (reactive) { _%>
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
<%_ } _%>

import java.time.Instant;
<%_ if (databaseType === 'sql' && reactive) { _%>
import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.util.Map;
<%_ } _%>
<%_ if (!reactive) { _%>
import java.util.List;
<%_ } _%>

/**
 * Spring Data <% if (databaseType === 'sql' && !reactive) { %>JPA<% } else if (databaseType === 'sql' && reactive) { %>R2DBC<% } else if (databaseType === 'mongodb') { %>MongoDB<% } else if (databaseType === 'couchbase') { %>Couchbase<% } %> repository for the {@link PersistentAuditEvent} entity.
 */

https://github.com/jhipster/generator-jhipster/blob/master/generators/server/templates/src/main/java/package/repository/PersistenceAuditEventRepository.java.ejs

我们可以清楚地看到在npm安装位置的代码中,[[databaseType ==='sql'&& react)]尚无定论。重要的是,它们的package.json均为6.8.0,我完全感到困惑

jhipster
1个回答
1
投票

您在GitHub中看到的内容不必与您安装的内容相匹配,因为在GitHub上您看到的更改尚未发布。

特别是,版本6.8.02020年3月8日]为[C0,而您提到的更改是在版本released2020年3月12日here)上提交的。已发布。

存储库包含最新的更改,而版本发布是特定日期的回购快照(被认为是稳定的。)>]

© www.soinside.com 2019 - 2024. All rights reserved.