Skip to content

Commit

Permalink
add vaadin-usage-statistics to collect anonymous stats when the app r…
Browse files Browse the repository at this point in the history
…uns in the dev mode (#235)

Closes #32
  • Loading branch information
Viktor Lukashov authored Jul 20, 2018
1 parent f80e3a8 commit e9847d8
Show file tree
Hide file tree
Showing 3 changed files with 804 additions and 637 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"IE 11"
],
"dependencies": {
"@vaadin/vaadin-usage-statistics": "^2.0.0-alpha4",
"path-to-regexp": "2.2.0"
},
"devDependencies": {
Expand Down
5 changes: 4 additions & 1 deletion src/router-meta.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {usageStatistics} from '@vaadin/vaadin-usage-statistics/vaadin-usage-statistics.js';

// NOTE(web-padawan): Have to use an awkward IIFE returning class here
// to prevent this class from showing up in analysis.json & API docs.
/** @private */
Expand All @@ -7,8 +9,9 @@ const VaadinRouterMeta = (() => class extends HTMLElement {
}

static get version() {
return '0.3.0';
return '1.0.0-rc0';
}
})();

customElements.define(VaadinRouterMeta.is, VaadinRouterMeta);
usageStatistics();
Loading

0 comments on commit e9847d8

Please sign in to comment.