1 | const Confidence = require('confidence');
|
2 |
|
3 | const misc = {
|
4 | port: 3001,
|
5 | cache: {
|
6 | serverCacheTime: 1,
|
7 | cacheControl: 1
|
8 | },
|
9 | logging: {
|
10 | good: {
|
11 | options: {
|
12 | reporters: {
|
13 | consoleReporter: [
|
14 | {
|
15 | module: 'good-squeeze',
|
16 | name: 'Squeeze',
|
17 | args: [{ log: '*', 'request-error': '*' }]
|
18 | },
|
19 | {
|
20 | module: 'white-out',
|
21 | args: [{
|
22 | password: 'remove',
|
23 | }]
|
24 | },
|
25 | {
|
26 | module: 'good-console',
|
27 | args: [{ format: '', utc: false }]
|
28 | },
|
29 | 'stdout'
|
30 | ]
|
31 | }
|
32 | }
|
33 | }
|
34 | },
|
35 | toolRuntimeConfig: {}
|
36 | }
|
37 |
|
38 | const store = new Confidence.Store(misc);
|
39 |
|
40 | module.exports.get = (key) => {
|
41 | return store.get(key)
|
42 | }
|
43 |
|
44 | module.exports.meta = (key) => {
|
45 | return store.meta(key)
|
46 | }
|