Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(lib): exporting metrics by default
This allows to require metrics easier than before by doing: ``` const metrics = require('pwmetrics/lib/metrics'); // { // TTFCP: "firstContentfulPaint", // TTFMP: "firstMeaningfulPaint", // TTFCPUIDLE: "firstCPUIdle", // TTI: "interactive", // SI: "speedIndex" // } ``` Contrary to the current way: ``` const metrics = require('pwmetrics/lib/metrics/metrics'); // { // METRICS: { // TTFCP: "firstContentfulPaint", // TTFMP: "firstMeaningfulPaint", // TTFCPUIDLE: "firstCPUIdle", // TTI: "interactive", // SI: "speedIndex" // } // } ``` The `readme.md` and `gulpfile.js` files have been updated too.
- Loading branch information