forked from angular-ui/ui-grid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.js
39 lines (37 loc) · 1.08 KB
/
shell.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
module.exports = function() {
var webdriverManagerPath = './node_modules/protractor/bin/webdriver-manager',
bowerPath = './node_modules/bower/bin/bower';
if (process.platform === 'win32') {
webdriverManagerPath = '.\\node_modules\\protractor\\bin\\webdriver-manager';
bowerPath = '.\\node_modules\\bower\\bin\\bower';
}
return {
// selenium no longer used
selenium: {
command: './selenium/start',
options: {
async: true
}
},
'protractor-install': {
command: 'node ' + webdriverManagerPath + ' update'
},
'protractor-start': {
command: 'node ' + webdriverManagerPath + ' start',
options: {
// apparently webdriver/selenium writes lots of trash on stderr, and the real output on stdout. No idea why....
stderr: false,
async: true,
execOptions: {
maxBuffer: 400*1024 // or whatever other large value you want
}
}
},
'bower-install': {
command: 'node ' + bowerPath + ' install'
},
'hooks-install': {
command: 'npm run init'
}
};
};