mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 21:57:22 +01:00
chore: upgrade babel to v6
This commit is contained in:
@@ -72,7 +72,7 @@ gulp.task('test:prepare:server', ['test:prepare:mongo'], () => {
|
||||
}
|
||||
});
|
||||
|
||||
gulp.task('test:prepare:build', (cb) => {
|
||||
gulp.task('test:prepare:build', ['build'], (cb) => {
|
||||
exec(testBin('grunt build:test'), cb);
|
||||
});
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ export var conf = nconf;
|
||||
* its tasks.
|
||||
*/
|
||||
export function kill(proc) {
|
||||
((pid) => {
|
||||
let killProcess = (pid) => {
|
||||
psTree(pid, (_, pids) => {
|
||||
if(pids.length) {
|
||||
pids.forEach(kill); return
|
||||
@@ -32,7 +32,9 @@ export function kill(proc) {
|
||||
}
|
||||
catch(e) { console.log(e) }
|
||||
});
|
||||
}(proc.PID || proc.pid));
|
||||
}
|
||||
|
||||
killProcess(proc.PID || proc.pid);
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user