Skip to content

Commit

Permalink
Merge pull request #91 from nhsuk/add-splunk-logging
Browse files Browse the repository at this point in the history
Add splunk logging
  • Loading branch information
bradmorton1 authored Nov 15, 2019
2 parents 549d12c + e157615 commit c96532f
Show file tree
Hide file tree
Showing 10 changed files with 288 additions and 81 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,13 @@ If you need the link to use a different url, you can set this variable
POLICY_URL=/custom/policy/url/ npm run build:production
```

#### `LOG TO SPLUNK`

Set to `true` a logging URL will be hit when the banner shown, analytics are accepted or analytics are not accepted.
```sh
LOG_TO_SPLUNK=true npm run build:production
```

## Tests

To run the [Jest](https://jestjs.io/en/) tests
Expand Down
227 changes: 217 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,12 @@
"eslint-config-nhsuk": "^0.16.0",
"html-loader": "^0.5.5",
"http-server": "^0.11.1",
"husky": "^3.0.9",
"jest": "^24.5.0",
"jest-environment-jsdom": "^24.5.0",
"jest-puppeteer": "^4.1.0",
"jsdom": "^11.12.0",
"nhsuk-frontend": "^2.3.1",
"nhsuk-frontend": "^3.0.2",
"node-sass": "^4.11.0",
"npm-run-all": "^4.1.5",
"puppeteer": "^1.14.0",
Expand All @@ -56,5 +57,10 @@
"start-server-and-test": "^1.7.12",
"webpack": "^4.29.6",
"webpack-cli": "^3.3.0"
},
"husky": {
"hooks": {
"pre-push": "npm run lint && npm run test"
}
}
}
Loading

0 comments on commit c96532f

Please sign in to comment.