-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_util.js
More file actions
34 lines (31 loc) · 681 Bytes
/
Copy path_util.js
File metadata and controls
34 lines (31 loc) · 681 Bytes
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
'use strict';
var fs = require('fs');
module.exports = {
testSuite : function(){
var testSuite = fs.readdirSync(__dirname);
// in case there is priority
var testFirst = [];
var exclude = [
'_main.js',
'_util.js',
'gulpfile.js'
];
// use it also to omit _main & _util files
testFirst.concat(exclude).forEach(function(file){
testSuite.splice(testSuite.indexOf(file), 1);
});
testSuite.unshift.apply(testSuite, testFirst);
return testSuite;
},
whechProps : [
'name',
'cwd',
'which',
'runFromBin',
'localDir',
'globalDir',
'globalPackage',
'localPackage',
'configFile'
]
};