Skip to content

Commit

Permalink
Merge pull request #197 from bcabanes/feat/exporting-metrics
Browse files Browse the repository at this point in the history
feat(lib): exporting metrics by default
  • Loading branch information
denar90 authored Nov 1, 2018
2 parents 6aa4bf1 + 466f79a commit 5b20626
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions lib/metrics/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { METRICS } from './metrics';

module.exports = METRICS;
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ module.exports = {
`pwmetrics-config.js`

```js
const METRICS = require('pwmetrics/lib/metrics/metrics');
const METRICS = require('pwmetrics/lib/metrics');

module.exports = {
url: 'http://example.com/',
Expand Down
2 changes: 1 addition & 1 deletion recipes/gulp/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/* eslint-disable no-console */
const gulp = require('gulp');
const PWMetrics = require('../../lib/');
const {METRICS} = require('../../lib/metrics/metrics');
const METRICS = require('../../lib/metrics');

/**
* Run pwmetrics
Expand Down

0 comments on commit 5b20626

Please sign in to comment.