Skip to content

Commit

Permalink
feat: add usage tracking for when expressMode (#15721)
Browse files Browse the repository at this point in the history
Add tracking of express mode usage when dev-bundle  is checked.
  • Loading branch information
caalador committed Jan 23, 2023
1 parent d68ddca commit 37a7338
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

import com.vaadin.experimental.FeatureFlags;
import com.vaadin.flow.di.Lookup;
import com.vaadin.flow.internal.UsageStatistics;
import com.vaadin.flow.server.ExecutionFailedException;
import com.vaadin.flow.server.PwaConfiguration;
import com.vaadin.flow.server.frontend.scanner.ClassFinder;
Expand Down Expand Up @@ -102,6 +103,7 @@ public NodeTasks(Options options) {
// determine if we need a rebuild as the check happens immediately
// and no update tasks are executed before it.
if (!options.productionMode && options.isDevBundleBuild()) {
UsageStatistics.markAsUsed("flow/expressBuild", null);
if (TaskRunDevBundleBuild.needsBuild(options,
frontendDependencies, classFinder)) {
options.runNpmInstall(true);
Expand Down

0 comments on commit 37a7338

Please sign in to comment.