Skip to content

Commit 70ebbb4

Browse files
committed
fixing node dependencies
1 parent 58f412e commit 70ebbb4

File tree

5 files changed

+60
-4
lines changed

5 files changed

+60
-4
lines changed

app/js/searching/fuzzySearch.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ define(['require', 'jquery', 'data_store/get', 'searching/searchHelper'],
6363

6464
var fuzzySearch = function (data, str, isCaseSensitive, filterInterval) {
6565
searchHelper.searchByFunction(function (name, searchable) {
66-
return !str.trim() || fuzzy.match(str, name, null, filterInterval) || fuzzy.match(str, searchable, null, filterInterval);
66+
return !str.trim() ||
67+
fuzzy.match(str, name, null, filterInterval) ||
68+
fuzzy.match(str, searchable, null, filterInterval);
6769
}, data, isCaseSensitive, filterInterval);
6870
};
6971

build.node.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
var jsWatcher = hound.watch('./app/js');
1111

12-
var compileJSFiles = function() {
12+
var compileJSFiles = function(callback) {
1313
var compileJS = spawn('node', ['./r.js', '-o', 'require.build.js']);
1414
console.log('\n------------------- Start compiling RequireJS -------------------');
1515

@@ -23,6 +23,7 @@
2323

2424
compileJS.on('close', function(code) {
2525
console.log('------------------- Stop compiling RequireJS -------------------');
26+
if (callback != null) callback();
2627
});
2728
};
2829

@@ -48,7 +49,7 @@
4849

4950
var lessWatcher = hound.watch('./app/style');
5051

51-
var compileLESSFiles = function() {
52+
var compileLESSFiles = function(callback) {
5253
console.log('\n------------------- Start compiling LESS -------------------');
5354
exec('lessc ./app/style/main.less ./dist/main.css', (error, stdout, stderr) => {
5455
if (error) {
@@ -60,6 +61,7 @@
6061
if (stderr.trim())
6162
console.log('stderr: ' + stderr);
6263
console.log('------------------- Stop compiling LESS -------------------');
64+
if (callback != null) callback();
6365
});
6466
};
6567

@@ -79,4 +81,12 @@
7981
compileLESSFiles();
8082
});
8183

84+
85+
// init
86+
(function() {
87+
compileJSFiles(function() {
88+
compileLESSFiles();
89+
});
90+
}());
91+
8292
}());

dist/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2979,7 +2979,9 @@ define('searching/fuzzySearch',['require', 'jquery', 'data_store/get', 'searchin
29792979

29802980
var fuzzySearch = function (data, str, isCaseSensitive, filterInterval) {
29812981
searchHelper.searchByFunction(function (name, searchable) {
2982-
return !str.trim() || fuzzy.match(str, name, null, filterInterval) || fuzzy.match(str, searchable, null, filterInterval);
2982+
return !str.trim() ||
2983+
fuzzy.match(str, name, null, filterInterval) ||
2984+
fuzzy.match(str, searchable, null, filterInterval);
29832985
}, data, isCaseSensitive, filterInterval);
29842986
};
29852987

lib/node-hound/.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
lib-cov
2+
*.seed
3+
*.log
4+
*.csv
5+
*.dat
6+
*.out
7+
*.pid
8+
*.gz
9+
10+
pids
11+
logs
12+
results
13+
14+
npm-debug.log
15+
16+
node_modules
17+
tmp

lib/node-hound/package.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"author": "Michael Alexander <[email protected]> (http://michaelalexander.com.au)",
3+
"name": "hound",
4+
"description": "Cross platform directory tree watcher, focussed on reliability, speed, and simplicity.",
5+
"keywords": ["directory", "tree", "watch", "windows", "cross", "platform", "reliable", "simple", "fast"],
6+
"version": "1.0.5",
7+
"homepage": "https://github.com/gforceg/node-hound",
8+
"bugs": "https://github.com/gforceg/node-hound/issues",
9+
"repository": {
10+
"type": "git",
11+
"url": "git://github.com/gforceg/node-hound.git"
12+
},
13+
"main": "hound",
14+
"scripts": {
15+
"test": "node_modules/.bin/jasmine-node spec"
16+
},
17+
"dependencies": {},
18+
"devDependencies": {
19+
"jasmine-node": "*"
20+
},
21+
"optionalDependencies": {},
22+
"engines": {
23+
"node": ">=0.7.1"
24+
}
25+
}

0 commit comments

Comments
 (0)