Skip to content

Commit 42c84bd

Browse files
author
Artur Pryka
committed
remove global demo-config dependency
1 parent 842ebd9 commit 42c84bd

File tree

5 files changed

+13
-3
lines changed

5 files changed

+13
-3
lines changed

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@ Public CDN
2929

3030
[Login to Keen IO to create a project](https://keen.io/login?s=gh_js) and grab the **Project ID** and **Read Key** from your project's **Access** page.
3131

32+
To run **keen-analysis** on your localhost you need to grab your access keys and update `config.js` file.
33+
34+
```javascript
35+
const demoConfig = {
36+
projectId: 'YOUR_PROJECT_ID',
37+
readKey: 'YOUR_READ_KEY',
38+
writeKey: 'YOUR_WRITE_KEY',
39+
masterKey: 'YOUR_MASTER_KEY',
40+
};
41+
```
3242

3343
### Getting started
3444

File renamed without changes.

test/demo/index.node.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// NODE.js tests
2-
const demoConfig = require('./../../../demo-config');
2+
const demoConfig = require('./config');
33
const demoKeen = require('../../');
44
const demoTests = require('./demo-tests');
55

webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if (process.env.TARGET === 'node'){
1111

1212
let definePluginVars = {};
1313
if (process.env.NODE_ENV === 'development') {
14-
const demoConfig = require('../demo-config');
14+
const demoConfig = require('./config');
1515
definePluginVars = {
1616
webpackKeenGlobals: JSON.stringify({ demoConfig })
1717
};

webpack.modules.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const resolveAlias = {};
55

66
let definePluginVars = {};
77
if (process.env.NODE_ENV === 'development') {
8-
const demoConfig = require('../demo-config');
8+
const demoConfig = require('./config');
99
definePluginVars = {
1010
webpackKeenGlobals: JSON.stringify({ demoConfig })
1111
};

0 commit comments

Comments
 (0)