-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
55 lines (43 loc) · 1.4 KB
/
config.js
File metadata and controls
55 lines (43 loc) · 1.4 KB
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
48
49
50
51
52
53
54
55
const osHomedir = require('os-homedir');
const os = require('os');
const os_name = os.type();
// var project_path = '../';
//project_path = project_path.replace(/^~/, osHomedir());
// if(os_name === 'Linux'){
// project_path = '/home/tomaszsapletta/devops-gui-projects';
// }
// project_path = 'C:\\WebstormProjects\\one';
// console.log('config.js project_path:', project_path);
console.log('config.js dirname:', __dirname);
module.exports = function () {
// var dir= '../'
// if (cd(dir).code !== 0) {
// echo('Error: Change DIR failed');
// exit(1);
// }
return {
username: 'tomaszsapletta',
// base path that will be used to resolve all patterns (eg. files, exclude)
// project_path: project_path,
// web server port
port: 3001,
testurl: 'http://localhost:8080',
// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: false,
// SYSTEM OS
os: os_name,
// dir_separator: os_name,
isCd: false,
// TODO, path generator, for each path or each folder in one step less
projectListPrivate: [
{
'url': 'project/private/' + 0,
'title': 'Current Folder',
'volume': '',
'path': './',
'domain': 'localhost',
'files': []
}]
}
};