-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.js
47 lines (46 loc) · 1.58 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
require('dotenv').config();
const process = require('process');
const Package = require('./package.json');
module.exports = {
github: {
api: {
url: 'https://api.github.com',
accessToken: process.env.GITHUB_TOKEN, // Github Personal access token will be read from .env
// User-Agent header is mandated by github API.
userAgent: Package.name
},
repository: {
// Github repo name will be read from .env
name: process.env.GITHUB_REPO,
// Remote branch to sync notes to
branch: 'master',
// Base directory in the git tree to store notes.
markdownDir: '/markdown',
rawFilesDir: '/raw',
// Metadata file location. Not recommended to be changed after the first sync run
metadataFile: '.bgs_stats.json'
},
commit: {
// Username and Email for Git sync commits. You can use anything you prefer.
userName: 'Boostnote Github Sync',
userEmail: '[email protected]'
}
},
sync: {
enabled: true,
delay: 750,
modes: {
raw: false, // sync raw boostnote files
parsed: true // sync parsed Markdown files
}
},
watcher: {
enabled: true,
enumerateOnStartup: false,
localDirs: [
// Local boostnote directory. You can either load it from .env or
// configure here as an array if you have more than one directory
process.env.LOCAL_BOOSTNOTE_DIR
]
}
};