Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node: let quinoa use new LTS version 20.9.0 #561

Merged
merged 1 commit into from
Nov 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class QuinoaPackageManagerInstallCommandOverrideTest {
@RegisterExtension
static final QuarkusUnitTest config = QuinoaQuarkusUnitTest.create(NAME).toQuarkusUnitTest()
.overrideConfigKey("quarkus.quinoa.package-manager-install", "true")
.overrideConfigKey("quarkus.quinoa.package-manager-install.node-version", "18.17.0")
.overrideConfigKey("quarkus.quinoa.package-manager-install.node-version", "20.9.0")
.overrideConfigKey("quarkus.quinoa.package-manager-install.install-dir", INSTALL_DIR)
.overrideConfigKey("quarkus.quinoa.package-manager-command.build", "run build-something")
.overrideConfigKey("quarkus.quinoa.package-manager-command.build-env.BUILD", "yeahhh")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ public class QuinoaPackageManagerInstallTest {
@RegisterExtension
static final QuarkusUnitTest config = QuinoaQuarkusUnitTest.create(NAME).toQuarkusUnitTest()
.overrideConfigKey("quarkus.quinoa.package-manager-install", "true")
.overrideConfigKey("quarkus.quinoa.package-manager-install.node-version", "18.18.0")
.overrideConfigKey("quarkus.quinoa.package-manager-install.node-version", "20.9.0")
.overrideConfigKey("quarkus.quinoa.package-manager-install.install-dir", INSTALL_DIR)
.assertLogRecords(l -> {
assertThat(l)
.anyMatch(s -> s.getMessage().equals("Running Quinoa package manager build command: %s") &&
((String) s.getParameters()[0])
.endsWith(computeBinary(INSTALL_DIR) + " run build"));
assertThat(l)
.anyMatch(s -> s.getMessage().equals("v18.18.0"));
.anyMatch(s -> s.getMessage().equals("v20.9.0"));
});

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ public class QuinoaPackageManagerInstallWithSpaceTest {
@RegisterExtension
static final QuarkusUnitTest config = QuinoaQuarkusUnitTest.create(NAME).toQuarkusUnitTest()
.overrideConfigKey("quarkus.quinoa.package-manager-install", "true")
.overrideConfigKey("quarkus.quinoa.package-manager-install.node-version", "18.18.0")
.overrideConfigKey("quarkus.quinoa.package-manager-install.node-version", "20.9.0")
.overrideConfigKey("quarkus.quinoa.package-manager-install.install-dir", INSTALL_DIR)
.assertLogRecords(l -> {
assertThat(l)
.anyMatch(s -> s.getMessage().equals("Running Quinoa package manager build command: %s") &&
((String) s.getParameters()[0])
.endsWith(computeBinary(INSTALL_DIR) + " run build"));
assertThat(l)
.anyMatch(s -> s.getMessage().equals("v18.18.0"));
.anyMatch(s -> s.getMessage().equals("v20.9.0"));
});

@Test
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/advanced-guides.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Quinoa can be configured to install NodeJS and NPM in the project directory:
[source,properties]
----
quarkus.quinoa.package-manager-install=true <1>
quarkus.quinoa.package-manager-install.node-version=18.18.0 <2>
quarkus.quinoa.package-manager-install.node-version=20.9.0 <2>
quarkus.quinoa.package-manager-install.npm-version=10.1.0 <3>
----

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
%angular.quarkus.quinoa.ignored-path-prefixes=/q,/bar/foo/baz
%angular.quarkus.quinoa.package-manager-install=true
%angular.quarkus.quinoa.package-manager-install.install-dir=target/
%angular.quarkus.quinoa.package-manager-install.node-version=18.18.0
%angular.quarkus.quinoa.package-manager-install.node-version=20.9.0
%angular.quarkus.quinoa.package-manager-install.yarn-version=1.22.19
%lit.quarkus.quinoa.ui-dir=src/main/ui-lit
%lit.quarkus.quinoa.build-dir=dist
Expand Down