Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbarbara committed Jul 11, 2021
1 parent 041cfba commit 79a71c3
Show file tree
Hide file tree
Showing 7 changed files with 6,341 additions and 10,813 deletions.
2 changes: 1 addition & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ checks:
threshold: 20
exclude_paths:
- coverage/**/*
- es/**/*
- esm/**/*
- lib/**/*
- node_modules/**/*
- test/**/*
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
coverage
esm
lib
coverage
node_modules
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

[![NPM version](https://badge.fury.io/js/react-web-session.svg)](https://www.npmjs.com/package/react-web-session) [![build status](https://travis-ci.org/gilbarbara/react-web-session.svg)](https://travis-ci.org/gilbarbara/react-web-session) [![Maintainability](https://api.codeclimate.com/v1/badges/d81d926e61fefdb7a9e3/maintainability)](https://codeclimate.com/github/gilbarbara/react-web-session/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/d81d926e61fefdb7a9e3/test_coverage)](https://codeclimate.com/github/gilbarbara/react-web-session/test_coverage)

> A React wrapper for [web-session](https://github.com/gilbarbara/web-session).
How many sessions does it take for a user to create an account or purchase something?
Now you can track these metrics!

Expand All @@ -18,15 +20,13 @@ a period of time (30 minutes by default) that is extended automatically upon use
- at midnight (based on your GA settings, not client timezone).
- campaign query change (utm or gclid)

> A React wrapper for [web-session](https://github.com/gilbarbara/web-session).
## Usage

```bash
npm install --save react-web-session
```

And require it in your component
And require it in your root component

```typescript jsx
import WebSession from 'react-web-session';
Expand Down
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = {
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'json'],
preset: 'ts-jest',
resetMocks: false,
setupFiles: ['<rootDir>/test/__setup__/setupFiles.ts'],
setupFiles: ['jest-date-mock', 'jest-localstorage-mock'],
setupFilesAfterEnv: ['jest-location-mock'],
testEnvironment: 'jsdom',
testEnvironmentOptions: {
Expand Down
Loading

0 comments on commit 79a71c3

Please sign in to comment.